Example #1
0
        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");
        }
Example #2
0
        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);
            }
        }
Example #3
0
 public virtual void notify(DelegateTask delegateTask)
 {
     delegateTask.setVariableLocal("var", "foo");
 }