Package org.syrup.helpers

Examples of org.syrup.helpers.ResultImpl


                if (context.in_1_link().from().task() != null)
                {
                    if (((PTask) context.in_1_link().from().task()).done())
                    {
                        return new ResultImpl(context, true, true, new DataImpl(i1), new DataImpl(i1));
                    }
                    else
                    {
                        return new ResultImpl(context, true, true, new DataImpl(i1), null);
                    }
                }
                else
                {
                    return new ResultImpl(context, true, true, new DataImpl(i1), new DataImpl(i1));
                }
            }
            else
            {
                throw new Exception("first input needs to be full");
            }
        }
        catch (Throwable e1)
        {
            return new ResultImpl(context, true, true, null, org.syrup.helpers.Utils.manageError(logger, e1, "Concat error"));
        }
    }
View Full Code Here


     */
    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

     */
    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

Related Classes of org.syrup.helpers.ResultImpl

Copyright © 2018 www.massapicom. 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.