示例#1
0
 ///  <summary>
 /// Constructor
 /// </summary>
 /// <param name="name">variable name</param>
 /// <param name="description">variable description</param>
 /// <param name="variableType">variable type</param>
 /// <param name="handler">a handler that can be use to validate or to provide list of possibel values</param>
 public VariableDefinition(
     string name,
     string description,
     VariableTypeEnum variableType,
     StepHandlerDefinition handler,
     ConstraintDefinition constraints)
 {
     Name              = name;
     Description       = description;
     VariableType      = variableType;
     HandlerDefinition = handler;
     Constraints       = constraints;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="StepDefinition"/> class.
 /// </summary>
 /// <param name="id">The identifier.</param>
 /// <param name="stepId">The step identifier.</param>
 /// <param name="description">The description.</param>
 /// <param name="name">The name.</param>
 /// <param name="isStart">if set to <c>true</c> [is start].</param>
 /// <param name="isEnd">if set to <c>true</c> [is end].</param>
 /// <param name="potentialOwners">The potential owners.</param>
 /// <param name="businessManagers">The business managers.</param>
 /// <param name="onEntry">The on entry.</param>
 /// <param name="onExit">The on exit.</param>
 /// <param name="actions">The actions.</param>
 /// <param name="varMaps"></param>
 /// <param name="stepHandler"></param>
 public StepDefinition(Guid id, string stepId, string description, string name,
                       bool isStart, bool isEnd,
                       SecurityDefinition[] potentialOwners,
                       SecurityDefinition[] businessManagers,
                       ScriptDefinition onEntry,
                       ScriptDefinition onExit,
                       ActionDefinition[] actions,
                       VariableMapDefinition[] varMaps,
                       StepHandlerDefinition stepHandler)
 {
     Id               = id;
     StepId           = stepId;
     Description      = description;
     Name             = name;
     IsStart          = isStart;
     IsEnd            = isEnd;
     PotentialOwners  = potentialOwners;
     BusinessManagers = businessManagers;
     OnEntry          = onEntry;
     OnExit           = onExit;
     Actions          = actions;
     VariablesMap     = varMaps;
     StepHandler      = stepHandler;
 }
示例#3
0
 public void Visit(StepHandlerDefinition stepHandlerDefinition)
 {
     stepHandlerDefinition.Script?.Accept(this);
     _sb.Append(
         $"{stepHandlerDefinition.ClassFullName}|{stepHandlerDefinition.IocName}|{stepHandlerDefinition.StepHandlerType}");
 }