@Override public void notify(DelegateCaseExecution caseExecution) throws Exception { caseExecution.setVariable("var", "test"); }
public void notify(DelegateCaseExecution caseExecution) throws Exception { caseExecution.setVariable("listener", "listener-notified"); }
public void notify(DelegateCaseExecution caseExecution, String event) { String eventCounterName = event + "EventCounter"; Integer eventCounter = (Integer) caseExecution.getVariable(eventCounterName); if (eventCounter == null) { eventCounter = 0; } Integer counter = (Integer) caseExecution.getVariable("eventCounter"); if (counter == null) { counter = 0; } caseExecution.setVariable(event, true); caseExecution.setVariable(eventCounterName, eventCounter + 1); caseExecution.setVariable("eventCounter", counter + 1); caseExecution.setVariable(event+"OnCaseExecutionId", caseExecution.getId()); }
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; }
@Override public void notify(DelegateCaseExecution caseExecution) throws Exception { caseExecution.setVariable("businessKey", caseExecution.getBusinessKey()); caseExecution.setVariable("caseBusinessKey", caseExecution.getCaseBusinessKey()); }
public void notify(DelegateCaseExecution caseExecution) throws Exception { String eventName = caseExecution.getEventName(); caseExecution.setVariable(eventName, true); }
public void notify(DelegateCaseExecution caseExecution) throws Exception { String eventName = caseExecution.getEventName(); caseExecution.setVariable(eventName, true); }
public void notify(DelegateCaseVariableInstance variableInstance) throws Exception { if ("variable".equals(variableInstance.getName())) { if ("initial".equals(variableInstance.getValue())) { variableInstance.getSourceExecution().setVariable("variable", "listener-notified-1"); } else if ("manual-start".equals(variableInstance.getValue())) { variableInstance.getSourceExecution().setVariable("variable", "listener-notified-2"); }// else ignore } else { throw new RuntimeException("Unexpected invocation"); } }
public void notify(DelegateCaseVariableInstance variableInstance) throws Exception { invocations.add(variableInstance); if ("variable".equals(variableInstance.getName()) && "value1".equals(variableInstance.getValue())) { variableInstance.getSourceExecution().setVariable("variable", "value2"); } }
public void notify(DelegateCaseVariableInstance variableInstance) throws Exception { if (variableInstance.getName().equals("variable")) { if (variableInstance.getValue().equals("value1")) { variableInstance.getSourceExecution().setVariable("variable", "value2"); } else { // ignore } } else { throw new ProcessEngineException("unwanted invocation"); } }
@Override public void notify(DelegateCaseExecution caseExecution) throws Exception { caseExecution.setVariable("var", "test"); }
@Override public void notify(DelegateCaseExecution caseExecution) throws Exception { caseExecution.setVariable("businessKey", caseExecution.getBusinessKey()); caseExecution.setVariable("caseBusinessKey", caseExecution.getCaseBusinessKey()); }
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(DelegateCaseExecution caseExecution, String event) { String eventCounterName = event + "EventCounter"; Integer eventCounter = (Integer) caseExecution.getVariable(eventCounterName); if (eventCounter == null) { eventCounter = 0; } Integer counter = (Integer) caseExecution.getVariable("eventCounter"); if (counter == null) { counter = 0; } caseExecution.setVariable(event, true); caseExecution.setVariable(eventCounterName, eventCounter + 1); caseExecution.setVariable("eventCounter", counter + 1); caseExecution.setVariable(event+"OnCaseExecutionId", caseExecution.getId()); }
public void notify(DelegateCaseExecution caseExecution) throws Exception { String eventName = caseExecution.getEventName(); caseExecution.setVariable(eventName, true); }
public void notify(DelegateCaseExecution caseExecution) throws Exception { String eventName = caseExecution.getEventName(); caseExecution.setVariable(eventName, true); }
public void notify(DelegateCaseVariableInstance variableInstance) throws Exception { invocations.add(variableInstance); if ("variable".equals(variableInstance.getName()) && "value1".equals(variableInstance.getValue())) { variableInstance.getSourceExecution().setVariable("variable", "value2"); } }
public void notify(DelegateCaseVariableInstance variableInstance) throws Exception { if (variableInstance.getName().equals("variable")) { if (variableInstance.getValue().equals("value1")) { variableInstance.getSourceExecution().setVariable("variable", "value2"); } else { // ignore } } else { throw new ProcessEngineException("unwanted invocation"); } }