Examples of ResultImpl


Examples of org.syrup.helpers.ResultImpl

     */
    public Result execute(Context context)
    {
        try
        {
            ResultImpl im = null;

            if (Utils.isFull(context.in_1_link()))
            {
                im = new ResultImpl(context, true, true, context.in_1_link().content(), null);

            }
            if (Utils.isFull(context.in_2_link()))
            {
                im = new ResultImpl(context, true, true, context.in_2_link().content(), null);
                // [TODO: optimize by prefabricating the NetworkImpl]
                NetworkImpl i = new NetworkParser().parse(nullWorkflow.getBytes());
                // Returns the Workflow.
                return new WorkflowImpl(im, i);
            }
            else
            {
                return im;
            }
        }
        catch (Throwable e1)
        {
            return new ResultImpl(context, true, true, null, org.syrup.helpers.Utils.manageError(logger, e1, "Concat error"));
        }
    }
View Full Code Here

Examples of org.syrup.helpers.ResultImpl

     */
    public Result execute(Context context)
    {
        try
        {
            ResultImpl im = null;

            if (Utils.isFull(context.in_1_link()))
            {
                return new ResultImpl(context, false, true, context.in_1_link().content(), null);
            }
            else
            {
                throw new Exception("first input must be filled");
            }
        }
        catch (Throwable e1)
        {
            return new ResultImpl(context, true, true, null, org.syrup.helpers.Utils.manageError(logger, e1, "Concat error"));
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.