Skip to content

Commit

Permalink
[FIX] Fix cannot recover a stopped workflow instance (apache#15880)
Browse files Browse the repository at this point in the history
  • Loading branch information
privking authored Apr 19, 2024
1 parent 285c5a8 commit e66441a
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 e66441a

Please sign in to comment.