Ejemplo n.º 1
0
 internal void SetInitializedSubstate(ActivityExecutor executor)
 {
     this.substate = Substate.Initialized;
     if (executor.ShouldTrackActivityStateRecordsExecutingState && executor.ShouldTrackActivity(this.Activity.DisplayName))
     {
         executor.AddTrackingRecord(new ActivityStateRecord(executor.WorkflowInstanceId, this, this.state));
     }
     if ((this.Activity.RuntimeArguments.Count > 0) && TD.InArgumentBoundIsEnabled())
     {
         for (int i = 0; i < this.Activity.RuntimeArguments.Count; i++)
         {
             Location        location;
             RuntimeArgument argument = this.Activity.RuntimeArguments[i];
             if (ArgumentDirectionHelper.IsIn(argument.Direction) && this.environment.TryGetLocation(argument.Id, this.Activity, out location))
             {
                 string str = null;
                 if (location.Value == null)
                 {
                     str = "<Null>";
                 }
                 else
                 {
                     str = "'" + location.Value.ToString() + "'";
                 }
                 TD.InArgumentBound(argument.Name, this.Activity.GetType().ToString(), this.Activity.DisplayName, this.Id, str);
             }
         }
     }
 }
Ejemplo n.º 2
0
 public static bool IsIn(Argument?argument) => ArgumentDirectionHelper.IsIn(argument?.Direction);
 public static bool IsIn(Argument argument)
 {
     return(ArgumentDirectionHelper.IsIn(argument.Direction));
 }