Exemple #1
0
 public OrCondition Build()
 {
     return(new OrCondition
     {
         Conditions = new List <ICondition>(BuildableUtils.Build(_conditions))
     });
 }
 /// <summary>
 ///     An immutable <see cref="SubStateMachine" /> object.
 /// </summary>
 /// <returns></returns>
 public SubStateMachine Build()
 {
     return(new SubStateMachine
     {
         StartAt = _startAt,
         Comment = _comment,
         States = BuildableUtils.Build(_stateBuilders)
     });
 }
Exemple #3
0
 /// <summary>
 ///     An immutable <see cref="Branch" /> object.
 /// </summary>
 /// <returns></returns>
 public Branch Build()
 {
     return(new Branch
     {
         StartAt = _startAt,
         Comment = _comment,
         States = BuildableUtils.Build(_stateBuilders)
     });
 }
Exemple #4
0
 /**
  * @return An immutable {@link StateMachine} object that can be transformed to JSON via {@link StateMachine#toJson()}.
  */
 public StateMachine Build()
 {
     return(new StateMachineValidator(new StateMachine
     {
         Comment = _comment,
         StartAt = _startAt,
         TimeoutSeconds = _timeoutSeconds,
         States = BuildableUtils.Build(_states)
     }).Validate());
 }
Exemple #5
0
 /**
  * @return An immutable {@link ChoiceState} object.
  */
 public ChoiceState Build()
 {
     return(new ChoiceState
     {
         Comment = _comment,
         DefaultStateName = _defaultStateName,
         Choices = BuildableUtils.Build(_choices).ToList(),
         InputPath = _inputPath,
         OutputPath = _outputPath
     });
 }
Exemple #6
0
 /**
  * @return An immutable {@link ParallelState} object.
  */
 public override ParallelState Build()
 {
     return(new ParallelState()
     {
         Comment = _comment,
         Branches = BuildableUtils.Build(_branches),
         InputPath = _inputPath,
         ResultPath = _resultPath,
         OutputPath = _outputPath,
         Transition = _transition.Build(),
         Retriers = BuildableUtils.Build(_retriers),
         Catchers = BuildableUtils.Build(_catchers)
     });
 }
Exemple #7
0
 /**
  * @return An immutable {@link TaskState} object.
  */
 public override TaskState Build()
 {
     return(new TaskState
     {
         Resource = _resource,
         InputPath = _inputPath,
         ResultPath = _resultPath,
         OutputPath = _outputPath,
         Comment = _comment,
         TimeoutSeconds = _timeoutSeconds,
         HeartbeatSeconds = _heartbeatSeconds,
         Transition = _transition.Build(),
         Retriers = BuildableUtils.Build(_retriers),
         Catchers = BuildableUtils.Build(_catchers)
     });
 }
Exemple #8
0
 /**
  * @return An immutable {@link ParallelState} object.
  */
 public override MapState Build()
 {
     return(new MapState
     {
         Comment = _comment,
         Iterator = _iterator.Build(),
         ItemsPath = _itemsPath,
         MaxConcurrency = _maxConcurrency,
         InputPath = _inputPath,
         ResultPath = _resultPath,
         OutputPath = _outputPath,
         Parameters = _parameters,
         ResultSelector = _resultSelector,
         Transition = _transition.Build(),
         Retriers = BuildableUtils.Build(_retriers),
         Catchers = BuildableUtils.Build(_catchers)
     });
 }