Пример #1
0
 public virtual void Activate(ITaskExecutionContext ctx, ProcessDef processDef, IProcessScriptRuntime scriptRuntime)
 {
     Context = ctx;
     ProcessDefinition = processDef;
     TaskDefinition = processDef.GetRequiredTask(this.TaskId);
     ScriptRuntime = scriptRuntime;
     if (TaskDefinition == null) throw new Exception("Task not found in process definition: " + this.TaskId);
 }
Пример #2
0
 public virtual void Activate(ITaskExecutionContext ctx, ProcessDef processDef, IProcessScriptRuntime scriptRuntime)
 {
     Context           = ctx;
     ProcessDefinition = processDef;
     TaskDefinition    = processDef.GetRequiredTask(this.TaskId);
     ScriptRuntime     = scriptRuntime;
     if (TaskDefinition == null)
     {
         throw new Exception("Task not found in process definition: " + this.TaskId);
     }
 }