Skip to content

Commit

Permalink
fix bug: Failed to resume stopped workflow instance
Browse files Browse the repository at this point in the history
  • Loading branch information
privking committed Apr 18, 2024
1 parent 9437d27 commit 1546e9d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public RecoverExecuteFunction(CommandService commandService) {
@Override
public RecoverExecuteResult execute(RecoverExecuteRequest request) throws ExecuteRuntimeException {
ProcessInstance workflowInstance = request.getWorkflowInstance();
if (!workflowInstance.getState().isPause()) {
if (!(workflowInstance.getState().isPause()|| workflowInstance.getState().isStop())) {
throw new ExecuteRuntimeException(
String.format("The workflow instance: %s state is %s, cannot recovery", workflowInstance.getName(),
workflowInstance.getState()));
Expand Down

0 comments on commit 1546e9d

Please sign in to comment.