public void execute(DelegateExecution execution) throws Exception { List<String> list = (List<String>) execution.getVariable("listVar"); execution.removeVariable("listVar"); // implicitly update the previous list, should update the variable value list.add(NEW_ELEMENT); }
public void execute(DelegateExecution execution) throws Exception { if (execution.getVariable("listVar") != null) { execution.removeVariable("listVar"); execution.setVariable("listVar", "stringValue"); } else if (execution.getVariable("foo") != null) { execution.removeVariable("foo"); execution.setVariable("foo", "secondValue"); } } }
public void execute(DelegateExecution execution) throws Exception { execution.setVariable("foo", "value"); execution.removeVariable("foo"); execution.setVariable("foo", "bar"); }
public void execute(DelegateExecution execution) throws Exception { List<String> list = (List<String>) execution.getVariable("listVar"); execution.removeVariable("listVar"); // implicitly update the previous list, should update the variable value list.add(NEW_ELEMENT); }
public void execute(DelegateExecution execution) throws Exception { execution.setVariable("foo", "value"); execution.removeVariable("foo"); execution.setVariable("foo", "bar"); }
public void execute(DelegateExecution execution) throws Exception { if (execution.getVariable("listVar") != null) { execution.removeVariable("listVar"); execution.setVariable("listVar", "stringValue"); } else if (execution.getVariable("foo") != null) { execution.removeVariable("foo"); execution.setVariable("foo", "secondValue"); } } }