Package org.syrup.helpers

Examples of org.syrup.helpers.WorkflowImpl


                ResultImpl r = new ResultImpl(context, true, true, null, context.in_1_link().content());

                // [TODO: optimize by prefabricating the NetworkImpl]
                NetworkImpl network = new NetworkParser().parse(replaceWorkflow.getBytes());
                // Returns the Workflow.
                return new WorkflowImpl(r, network);
            }
            else
            {
                throw new Exception("first input needs to be full");
            }
View Full Code Here


                Data d = context.in_1_link().content();
                // Parses first input.
                NetworkImpl i = new NetworkParser().parse(d.bytes());
                ResultImpl r = new ResultImpl(context, true, false, null, null);
                // Returns the Workflow.
                WorkflowImpl impl =  new WorkflowImpl(r, i);
                Utils.validate(impl);
                return impl;
            }
            else
            {
View Full Code Here

                    else
                    {
                        // [TODO: optimize by prefabricating the NetworkImpl]
                        NetworkImpl network = new NetworkParser().parse(replaceWorkflow.getBytes());
                        // Returns the Workflow.
                        return new WorkflowImpl(new ResultImpl(context, true, true, new DataImpl(head.getBytes()), null), network);
                    }
                }
                else
                {
                    // [TODO: optimize by prefabricating the NetworkImpl]
                    NetworkImpl network = new NetworkParser().parse(replaceWorkflow.getBytes());
                    // Returns the Workflow.
                    return new WorkflowImpl(new ResultImpl(context, true, true, context.in_1_link().content(), null), network);
                }
            }
            else
            {
                throw new Exception("first input needs to be full");
View Full Code Here

            {
                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;
            }
View Full Code Here

TOP

Related Classes of org.syrup.helpers.WorkflowImpl

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.