|
|
|
@ -63,12 +63,12 @@ public class WorkflowStartEventHandler implements WorkflowEventHandler {
|
|
|
|
|
CompletableFuture.supplyAsync(workflowExecuteRunnable::call, workflowExecuteThreadPool) |
|
|
|
|
.thenAccept(workflowSubmitStatue -> { |
|
|
|
|
if (WorkflowSubmitStatue.SUCCESS == workflowSubmitStatue) { |
|
|
|
|
// submit failed will resend the event to workflow event queue
|
|
|
|
|
logger.info("Success submit the workflow instance"); |
|
|
|
|
if (processInstance.getTimeout() > 0) { |
|
|
|
|
stateWheelExecuteThread.addProcess4TimeoutCheck(processInstance); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
// submit failed will resend the event to workflow event queue
|
|
|
|
|
logger.error("Failed to submit the workflow instance, will resend the workflow start event: {}", |
|
|
|
|
workflowEvent); |
|
|
|
|
workflowEventQueue.addEvent(workflowEvent); |
|
|
|
|