cherry-pick [improve-#13045] after a submit failure, stop the processInstance to avoid an endless loop
#13051
This commit is contained in:
parent
f4fae98d67
commit
ff5fecdfd5
|
|
@ -71,7 +71,7 @@ public class WorkflowStartEventHandler implements WorkflowEventHandler {
|
||||||
}
|
}
|
||||||
} else if (WorkflowSubmitStatue.FAILED == workflowSubmitStatue) {
|
} else if (WorkflowSubmitStatue.FAILED == workflowSubmitStatue) {
|
||||||
logger.error(
|
logger.error(
|
||||||
"Failed to submit the workflow instance, will resend the workflow start event: {}",
|
"Failed to submit the workflow instance, will resend the workflow start event: {}",
|
||||||
workflowEvent);
|
workflowEvent);
|
||||||
WorkflowStateEvent stateEvent = WorkflowStateEvent.builder()
|
WorkflowStateEvent stateEvent = WorkflowStateEvent.builder()
|
||||||
.processInstanceId(processInstance.getId())
|
.processInstanceId(processInstance.getId())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue