private void executeActionImpl(Action action, ExecutionContext executionContext) throws Exception { // set context action executionContext.setAction(action); try { UserCodeInterceptor userCodeInterceptor = UserCodeInterceptorConfig.getUserCodeInterceptor(); if (userCodeInterceptor != null) { userCodeInterceptor.executeAction(action, executionContext); } else { action.execute(executionContext); } } finally { // reset context action executionContext.setAction(null); } }
private void executeActionImpl(Action action, ExecutionContext executionContext) throws Exception { // set context action executionContext.setAction(action); try { UserCodeInterceptor userCodeInterceptor = UserCodeInterceptorConfig.getUserCodeInterceptor(); if (userCodeInterceptor != null) { userCodeInterceptor.executeAction(action, executionContext); } else { action.execute(executionContext); } } finally { // reset context action executionContext.setAction(null); } }
public boolean execute(JbpmContext jbpmContext) throws Exception { Token token = getToken(); ExecutionContext executionContext = new ExecutionContext(token); executionContext.setAction(action); executionContext.setEvent(action.getEvent()); Node node; if (token != null && (node = token.getNode()) != null) { node.executeAction(action, executionContext); } else { action.execute(executionContext); } return true; }
public boolean execute(JbpmContext jbpmContext) throws Exception { Token token = getToken(); ExecutionContext executionContext = new ExecutionContext(token); executionContext.setAction(action); executionContext.setEvent(action.getEvent()); Node node; if (token != null && (node = token.getNode()) != null) { node.executeAction(action, executionContext); } else { action.execute(executionContext); } return true; }