Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EventSubProcess for error treatment should not be searched in children #3756

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
*/
public interface FlowElementsContainer {


//Custom PROTOOLS:
FlowElement getFlowElement(String flowElementId, boolean searchRecursive);

FlowElement getFlowElement(String id);

Collection<FlowElement> getFlowElements();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,26 @@ public class SubProcess extends Activity implements FlowElementsContainer {
protected List<Artifact> artifactList = new ArrayList<>();
protected List<ValuedDataObject> dataObjects = new ArrayList<>();


//Custom PROTOOLS:
@Override
public FlowElement getFlowElement(String flowElementId, boolean searchRecursive) {
if (searchRecursive) {
return flowElementMap.get(flowElementId);
} else {
return findFlowElementInList(flowElementId);
}
}
protected FlowElement findFlowElementInList(String flowElementId) {
for (FlowElement f : flowElementList) {
if (f.getId() != null && f.getId().equals(flowElementId)) {
return f;
}
}
return null;
}
//END CUSTOM

@Override
public FlowElement getFlowElement(String id) {
FlowElement foundElement = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ protected static void executeCatch(Map<String, List<Event>> eventMap, DelegateEx
String refActivityId = refId.substring(0, refId.indexOf('#'));
String refProcessDefinitionId = refId.substring(refId.indexOf('#') + 1);
if (parentExecution.getProcessDefinitionId().equals(refProcessDefinitionId) &&
currentContainer.getFlowElement(refActivityId) != null) {
currentContainer.getFlowElement(refActivityId,false) != null) {
marcberger marked this conversation as resolved.
Show resolved Hide resolved

matchingEvent = getCatchEventFromList(events, parentExecution);
String errorCode = getErrorCodeFromErrorEventDefinition(matchingEvent);
Expand Down