|
|
@ -208,13 +208,11 @@ public class WorkerFailoverService { |
|
|
|
@Nullable ProcessInstance processInstance, |
|
|
|
@Nullable ProcessInstance processInstance, |
|
|
|
TaskInstance taskInstance) { |
|
|
|
TaskInstance taskInstance) { |
|
|
|
if (processInstance == null) { |
|
|
|
if (processInstance == null) { |
|
|
|
// This case should be happened.
|
|
|
|
|
|
|
|
log.error( |
|
|
|
log.error( |
|
|
|
"Failover task instance error, cannot find the related processInstance form memory, this case shouldn't happened"); |
|
|
|
"Failover task instance error, cannot find the related processInstance form memory, this case shouldn't happened"); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
if (taskInstance == null) { |
|
|
|
if (taskInstance == null) { |
|
|
|
// This case should be happened.
|
|
|
|
|
|
|
|
log.error("Master failover task instance error, taskInstance is null, this case shouldn't happened"); |
|
|
|
log.error("Master failover task instance error, taskInstance is null, this case shouldn't happened"); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|