Пример #1
0
 /// <summary>
 /// Retrieves batch status.
 /// </summary>
 /// <param name="status"></param>
 /// <returns></returns>
 protected BatchStatus FindBatchStatus(FlowExecutionStatus status)
 {
     foreach (BatchStatus batchStatus in BatchStatus.Values)
     {
         if (status.Name.StartsWith(batchStatus.ToString()))
         {
             return(batchStatus);
         }
     }
     return(BatchStatus.Unknown);
 }
Пример #2
0
 /// <summary>
 /// @see IFlowExecutor#UpdateJobExecutionStatus .
 /// </summary>
 /// <param name="status"></param>
 public void UpdateJobExecutionStatus(FlowExecutionStatus status)
 {
     _execution.Status     = FindBatchStatus(status);
     ExitStatus            = ExitStatus.And(new ExitStatus(status.Name));
     _execution.ExitStatus = ExitStatus;
 }
Пример #3
0
 /// <summary>
 /// Custom constructor using a name and a flow execution status.
 /// </summary>
 /// <param name="name"></param>
 /// <param name="status"></param>
 public FlowExecution(string name, FlowExecutionStatus status)
 {
     Name   = name;
     Status = status;
 }