forked from flowable/flowable-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dbmSpringBoot3.1.3
- Loading branch information
Showing
12 changed files
with
252 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 71 additions & 0 deletions
71
...s/org/flowable/cmmn/test/runtime/ExitCriteriaTest.testStageExitCriteriaWithCondition.cmmn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions xmlns="http://www.omg.org/spec/CMMN/20151109/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:flowable="http://flowable.org/cmmn" xmlns:cmmndi="http://www.omg.org/spec/CMMN/20151109/CMMNDI" xmlns:dc="http://www.omg.org/spec/CMMN/20151109/DC" xmlns:di="http://www.omg.org/spec/CMMN/20151109/DI" xmlns:design="http://flowable.org/design" targetNamespace="http://flowable.org/cmmn"> | ||
<case id="conditionStage" flowable:initiatorVariableName="initiator"> | ||
<casePlanModel id="onecaseplanmodel1" name="Case plan model"> | ||
<planItem id="planItemreferenceStage" name="Reference stage" definitionRef="referenceStage"></planItem> | ||
<planItem id="planItemstageToBeClosedConditionally" name="Stage to be closed conditionally" definitionRef="stageToBeClosedConditionally"> | ||
<exitCriterion id="exitCriterion1" sentryRef="sentryexitCriterion1"></exitCriterion> | ||
</planItem> | ||
<sentry id="sentryexitCriterion1" flowable:triggerMode="onEvent"> | ||
<extensionElements> | ||
<design:stencilid><![CDATA[ExitCriterion]]></design:stencilid> | ||
</extensionElements> | ||
<planItemOnPart id="sentryOnPartexitCriterion1" sourceRef="planItemcloseStage"> | ||
<standardEvent>complete</standardEvent> | ||
</planItemOnPart> | ||
<ifPart id="sentryIfPart_exitCriterion1"> | ||
<condition><![CDATA[${cmmnEngineConfiguration.getCmmnRuntimeService().createPlanItemInstanceQuery().caseInstanceId(planItemInstance.caseInstanceId).planItemDefinitionId('dummyCase').planItemInstanceStateActive().count() == 0}]]></condition> | ||
</ifPart> | ||
</sentry> | ||
<stage id="referenceStage" name="Reference stage" flowable:includeInStageOverview="true"> | ||
<extensionElements> | ||
<design:stencilid><![CDATA[ExpandedStage]]></design:stencilid> | ||
</extensionElements> | ||
<planItem id="planItemdummyCase" name="Dummy case" definitionRef="dummyCase"> | ||
<itemControl> | ||
<repetitionRule flowable:counterVariable="repetitionCounter"> | ||
<extensionElements></extensionElements> | ||
</repetitionRule> | ||
</itemControl> | ||
<entryCriterion id="entryCriterion1" sentryRef="sentryentryCriterion1"></entryCriterion> | ||
</planItem> | ||
<planItem id="planItemtriggerDummyCase" name="Trigger dummy case" definitionRef="triggerDummyCase"> | ||
<itemControl> | ||
<repetitionRule flowable:counterVariable="repetitionCounter"> | ||
<extensionElements></extensionElements> | ||
</repetitionRule> | ||
</itemControl> | ||
</planItem> | ||
<sentry id="sentryentryCriterion1"> | ||
<extensionElements> | ||
<design:stencilid><![CDATA[EntryCriterion]]></design:stencilid> | ||
</extensionElements> | ||
<planItemOnPart id="sentryOnPartentryCriterion1" sourceRef="planItemtriggerDummyCase"> | ||
<standardEvent>occur</standardEvent> | ||
</planItemOnPart> | ||
</sentry> | ||
<caseTask id="dummyCase" name="Dummy case" flowable:fallbackToDefaultTenant="true" flowable:sameDeployment="true"> | ||
<caseRefExpression><![CDATA[dummyCase]]></caseRefExpression> | ||
</caseTask> | ||
<userEventListener id="triggerDummyCase" name="Trigger dummy case" /> | ||
</stage> | ||
<stage id="stageToBeClosedConditionally" name="Stage to be closed conditionally" flowable:includeInStageOverview="true"> | ||
<extensionElements> | ||
<design:stencilid><![CDATA[ExpandedStage]]></design:stencilid> | ||
</extensionElements> | ||
<planItem id="planItemcloseStage" name="Close stage" definitionRef="closeStage"></planItem> | ||
<planItem id="planItemhumanTask2" name="Human task" definitionRef="humanTask2"></planItem> | ||
<sentry id="sentryentryCriterion2"> | ||
<extensionElements> | ||
<design:stencilid><![CDATA[EntryCriterion]]></design:stencilid> | ||
</extensionElements> | ||
<planItemOnPart id="sentryOnPartentryCriterion2" sourceRef="planItemcloseStage"> | ||
<standardEvent>complete</standardEvent> | ||
</planItemOnPart> | ||
</sentry> | ||
<humanTask id="closeStage" name="Close stage" flowable:assignee="${initiator}" /> | ||
<humanTask id="humanTask2" name="Human task" flowable:assignee="${initiator}" /> | ||
</stage> | ||
</casePlanModel> | ||
</case> | ||
</definitions> |
16 changes: 16 additions & 0 deletions
16
...les/flowable-cmmn-engine/src/test/resources/org/flowable/cmmn/test/runtime/dummyCase.cmmn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions xmlns="http://www.omg.org/spec/CMMN/20151109/MODEL" | ||
xmlns:dc="http://www.omg.org/spec/CMMN/20151109/DC" | ||
xmlns:di="http://www.omg.org/spec/CMMN/20151109/DI" | ||
xmlns:cmmndi="http://www.omg.org/spec/CMMN/20151109/CMMNDI" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
targetNamespace="http://flowable.org/cmmn"> | ||
|
||
<case id="dummyCase" name="Dummy Case"> | ||
<casePlanModel id="myPlanModel" name="My CasePlanModel"> | ||
<planItem id="planItemcompleteDummyCase" name="Complete dummy case" definitionRef="completeDummyCase" /> | ||
<humanTask id="completeDummyCase" name="Complete dummy case" /> | ||
</casePlanModel> | ||
</case> | ||
|
||
</definitions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.