Skip to content

Commit 8cc16a5

Browse files
Don't check for satisfied sentries for changing case instance state, only for migration
1 parent 49e2367 commit 8cc16a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/flowable-cmmn-engine/src/main/java/org/flowable/cmmn/engine/impl/runtime/AbstractCmmnDynamicStateManager.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,10 @@ protected void executeRemoveWaitingForRepetitionPlanItemInstances(CaseInstanceCh
566566
protected void executeVerifySatisfiedSentryParts(CaseInstanceChangeState caseInstanceChangeState,
567567
CaseInstanceEntity caseInstance, String originalCaseDefinitionId, CommandContext commandContext) {
568568

569+
if (caseInstanceChangeState.getCaseDefinitionToMigrateTo() == null) {
570+
return;
571+
}
572+
569573
SentryPartInstanceEntityManager sentryPartInstanceEntityManager = cmmnEngineConfiguration.getSentryPartInstanceEntityManager();
570574
List<SentryPartInstanceEntity> sentryPartInstances = sentryPartInstanceEntityManager.findSentryPartInstancesByCaseInstanceId(caseInstance.getId());
571575
if (sentryPartInstances.isEmpty()) {

0 commit comments

Comments
 (0)