ExecutorService executor = processEngine.getExecutorService();
if(Constants.ACT_AUTO_CALL_SYN.equalsIgnoreCase(invokePattern)) {
//同步调用可以返回运行结果,前提是要设置返回运行结果。
try {
executor.execute(new Callable<Object>() {
public Object call() throws Exception {
if(Constants.ACT_TRANSACTION_JOIN.equalsIgnoreCase(transactionType)) {
action.execute(processDefine, processInstance);
} else {
executeLogicInNewTransaction(processDefine, processInstance, action);