-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call lifecycle listener for stage child plan item instances on termin…
…ate and exit
- Loading branch information
1 parent
c7904de
commit be6593b
Showing
4 changed files
with
97 additions
and
0 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
28 changes: 28 additions & 0 deletions
28
...-engine/src/test/java/org/flowable/cmmn/test/listener/TestTerminateLifecycleListener.java
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,28 @@ | ||
/* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.flowable.cmmn.test.listener; | ||
|
||
import org.flowable.cmmn.api.runtime.PlanItemInstanceState; | ||
|
||
public class TestTerminateLifecycleListener extends AbstractTestLifecycleListener { | ||
|
||
@Override | ||
public String getSourceState() { | ||
return PlanItemInstanceState.ENABLED; | ||
} | ||
|
||
@Override | ||
public String getTargetState() { | ||
return null; | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...e/cmmn/test/listener/PlanItemInstanceLifecycleListenerTest.testTerminateCaseInstance.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,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions xmlns="http://www.omg.org/spec/CMMN/20151109/MODEL" | ||
targetNamespace="http://flowable.org/cmmn"> | ||
<case id="testManualActivation" name="testManualActivation"> | ||
<casePlanModel id="casePlanModel"> | ||
|
||
<planItem id="planItemStage" definitionRef="stage1"/> | ||
<planItem id="planItemTaskA" definitionRef="taskA"> | ||
<itemControl> | ||
<manualActivationRule></manualActivationRule> | ||
</itemControl> | ||
</planItem> | ||
|
||
<stage id="stage1"> | ||
<planItem id="planItemTaskB" name="Task B" definitionRef="taskB"> | ||
<itemControl> | ||
<manualActivationRule></manualActivationRule> | ||
</itemControl> | ||
</planItem> | ||
|
||
<humanTask id="taskB" name="Task B"/> | ||
</stage> | ||
|
||
<humanTask id="taskA" name="Task A" /> | ||
</casePlanModel> | ||
</case> | ||
</definitions> |