/// <summary>
 /// Initializes a new instance of the <see cref="LinkDefinition"/> class.
 /// </summary>
 /// <param name="source">The source.</param>
 /// <param name="target">The target.</param>
 /// <param name="name">The name.</param>
 /// <param name="description">The description.</param>
 /// <param name="script">The script.</param>
 public LinkDefinition(StepDefinitionId source, StepDefinitionId target, string name, string description, ScriptDefinition script)
 {
     Source      = source;
     Target      = target;
     Name        = name;
     Description = description;
     Script      = script;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StepHandlerDefinition"/> class.
 /// </summary>
 /// <param name="stepHandlerType">Type of the step handler.</param>
 /// <param name="script">The script.</param>
 /// <param name="iocName">Name of the ioc.</param>
 /// <param name="classFullName">Full name of the class.</param>
 public StepHandlerDefinition(StepHandlerTypeEnum stepHandlerType,
                              ScriptDefinition script,
                              string iocName,
                              string classFullName)
 {
     StepHandlerType = stepHandlerType;
     Script          = script;
     IocName         = iocName;
     ClassFullName   = classFullName;
 }
Exemple #3
0
        public void Visit(ScriptDefinition scriptDefinition)
        {
            string s = $"{scriptDefinition.Lang}|{scriptDefinition.Script}";

            _sb.Append(s);
            if (scriptDefinition.Imports != null)
            {
                _sb.Append(string.Join("|", scriptDefinition.Imports));
            }
            if (scriptDefinition.References != null)
            {
                _sb.Append(string.Join("|", scriptDefinition.References));
            }
        }
 /// <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;
 }