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); }
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); } }