Exemplo n.º 1
0
 protected internal override ActivityExecutionStatus Execute(WorkflowInstanceContext context)
 {
     foreach (var activity in children)
     {
         context.RunProgramStatement(activity, this.ContinueAt);
     }
     return(ActivityExecutionStatus.Executing);
 }
Exemplo n.º 2
0
 public void ContinueAt(WorkflowInstanceContext context, object value)
 {
     logger.Debug("Sequence::ContinueAt");
     // If we've run all the statements, we're done
     if (++currentIndex == children.Count)
     {
         CloseActivity(context);
     }
     else // Else, run the next statement
     {
         context.RunProgramStatement(children[currentIndex], ContinueAt);
     }
 }
Exemplo n.º 3
0
 protected internal override ActivityExecutionStatus Execute(WorkflowInstanceContext context)
 {
     logger.Debug("Sequence::Execute");
     currentIndex = 0;
     // Empty statement block
     if (children.Count == 0)
     {
         //CloseActivity(context);
         return(ActivityExecutionStatus.Closed);
     }
     else
     {
         context.RunProgramStatement(children[0], ContinueAt);
         return(ActivityExecutionStatus.Executing);
     }
 }