public virtual void notify(DelegateTask delegateTask) { delegateTask.Execution.setVariable("greeting", "Hello from " + greeter.getValue(delegateTask.Execution)); delegateTask.Execution.setVariable("shortName", shortName.getValue(delegateTask.Execution)); delegateTask.setVariableLocal("myTaskVariable", "test"); }
public virtual void notify(DelegateTask delegateTask) { if (this.expression != null && this.expression.getValue(delegateTask) != null) { // get the expression variable string expression = this.expression.getValue(delegateTask).ToString(); // this expression will be evaluated when completing the task delegateTask.setVariableLocal("validationRule", expression); } }
public virtual void notify(DelegateTask delegateTask) { delegateTask.setVariableLocal("var", "foo"); }