-
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.
Fix issue with other than Exception type errors
- Loading branch information
1 parent
4a37a88
commit 1a8d994
Showing
5 changed files
with
79 additions
and
2 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
25 changes: 25 additions & 0 deletions
25
...le-engine/src/test/java/org/flowable/engine/test/api/v6/ServiceTaskErrorTestDelegate.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,25 @@ | ||
/* 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.engine.test.api.v6; | ||
|
||
import org.flowable.engine.delegate.DelegateExecution; | ||
import org.flowable.engine.delegate.JavaDelegate; | ||
|
||
public class ServiceTaskErrorTestDelegate implements JavaDelegate { | ||
|
||
@Override | ||
public void execute(DelegateExecution execution) { | ||
throw new Error(); | ||
} | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
...t/resources/org/flowable/engine/test/api/v6/Flowable6Test.testProcessWithError.bpmn20.xml
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,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions | ||
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" | ||
xmlns:flowable="http://flowable.org/bpmn" | ||
targetNamespace="Examples"> | ||
|
||
<process id="processWithError"> | ||
|
||
<startEvent id="theStart" /> | ||
<sequenceFlow id="flow1" sourceRef="theStart" targetRef="theTask" /> | ||
|
||
<userTask id="theTask" name="The famous task" /> | ||
<sequenceFlow id="flow2" sourceRef="theTask" targetRef="serviceTask" /> | ||
|
||
<serviceTask id="serviceTask" flowable:class="org.flowable.engine.test.api.v6.ServiceTaskErrorTestDelegate" /> | ||
|
||
<sequenceFlow id="flow3" sourceRef="serviceTask" targetRef="theEnd" /> | ||
|
||
<endEvent id="theEnd" /> | ||
|
||
</process> | ||
|
||
</definitions> |