/** * returns the expression text for this task listener. Comes in handy if you want to * check which listeners you already have. */ public String getExpressionText() { return expression.getExpressionText(); }
public void notify(DelegateTask delegateTask) { delegateTask.getExecution().setVariable("greeting", "Hello from " + greeter.getValue(delegateTask.getExecution())); delegateTask.getExecution().setVariable("shortName", shortName.getValue(delegateTask.getExecution())); delegateTask.setVariableLocal("myTaskVariable", "test"); }
@Override public void mapOutputVariables(DelegateExecution superExecution, VariableScope subInstance) { superExecution.setVariable("targetOrderId",subInstance.getVariable("orderId"),"SubProcess_1"); } }
public void execute(DelegateExecution execution) throws Exception { String variableName = (String) counterName.getValue(execution); Object variable = execution.getVariable(variableName); if(variable == null) { execution.setVariable(variableName, (Integer) 1); } else { execution.setVariable(variableName, ((Integer)variable)+1); } }
public void execute(DelegateExecution execution) throws Exception { Object shouldThrowError = execution.getVariable("shouldThrowError"); if (shouldThrowError != null) { throw new BpmnError("error"); } } }
public void notify(DelegateTask delegateTask) { DelegateExecution execution = delegateTask.getExecution(); String newKeyValue = (String) execution.getVariable(BUSINESS_KEY_VARIABLE); execution.setProcessBusinessKey(newKeyValue); }
public void notify(DelegateExecution execution) throws Exception { Integer counter = (Integer) execution.getVariable("executionListenerCounter"); if (counter == null) { counter = 0; } execution.setVariable("subExecutionListenerCounter", ++counter); }
public void notify(DelegateExecution execution) throws Exception { String variableName = (String) varName.getValue(execution); execution.setVariable(variableName, "Event: " + execution.getEventName()); }
@Override public void execute(DelegateExecution execution) throws Exception { String newKeyValue = (String) execution.getVariable(BUSINESS_KEY_VARIABLE); execution.setProcessBusinessKey(newKeyValue); }
@Override public void execute(DelegateExecution execution) throws Exception { SerializableVariable variable = (SerializableVariable) execution.getVariable("var1"); } }
public void execute(DelegateExecution execution) { Object result = expression.getValue(execution); execution.setVariable("result", result); }
public void notify(DelegateCaseExecution caseExecution) { caseExecution.setVariable("greeting", "Hello from " + greeter.getValue(caseExecution)); caseExecution.setVariable("helloWorld", helloWorld.getValue(caseExecution)); caseExecution.setVariable("prefix", prefix.getValue(caseExecution)); caseExecution.setVariable("suffix", suffix.getValue(caseExecution)); // kind of workaround to pass through the test greeter = null; helloWorld = null; prefix = null; suffix = null; }
public void notify(DelegateTask delegateTask) { delegateTask.setVariable("greeting", "Hello from " + greeter.getValue(delegateTask)); delegateTask.setVariable("helloWorld", helloWorld.getValue(delegateTask)); delegateTask.setVariable("prefix", prefix.getValue(delegateTask)); delegateTask.setVariable("suffix", suffix.getValue(delegateTask)); // kind of workaround to pass through the test greeter = null; helloWorld = null; prefix = null; suffix = null; }
@Override public void execute(DelegateExecution execution) throws Exception { invocationCounter++; execution.setVariable("invocationCounter", invocationCounter); }
public void notify(DelegateExecution execution) throws Exception { Integer counter = (Integer) execution.getVariable("executionListenerCounter"); if (counter == null) { counter = 0; } execution.setVariable("executionListenerCounter", ++counter); }
@Override public void mapOutputVariables(DelegateExecution superExecution, VariableScope subInstance) { superExecution.setVariable("targetOrderId",subInstance.getVariable("orderId"),"SubProcess_2"); } }
@Override public void mapOutputVariables(DelegateExecution execution, VariableScope subInstance) { execution.setVariable("TestOutputVar", "outValue"); } }
/** * returns the expression text for this execution listener. Comes in handy if you want to * check which listeners you already have. */ public String getExpressionText() { return expression.getExpressionText(); } }
/** * returns the expression text for this execution listener. Comes in handy if you want to * check which listeners you already have. */ public String getExpressionText() { return expression.getExpressionText(); }
/** * Returns the expression text for this execution listener. Comes in handy if you want to * check which listeners you already have. */ public String getExpressionText() { return expression.getExpressionText(); }