Beispiel #1
0
 protected void flow(string from, string to, Action act)
 {
     _curFlow = new FlowDef {
         From = from, To = to
     };
     act();
     _currentCompositeTask.AddFlow(_curFlow);
     _curFlow = null;
 }
Beispiel #2
0
        protected void flow(string from, string to, SC.IDictionary options)
        {
            var fd = new FlowDef
            {
                From           = from,
                To             = to,
                IsCancelling   = GetOption(options, "cancelling", false),
                Label          = GetOption(options, "label", (string)null),
                SourcePortType = GetOption(options, "sourcePort", TaskOutPortType.Out),
                TargetPortType = GetOption(options, "targetPort", TaskInPortType.In),
                EvalOrder      = GetOption(options, "evalOrder", 0)
            };

            _currentCompositeTask.AddFlow(fd);
        }