Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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 @@ -161,7 +161,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) {

matchingEvent = getCatchEventFromList(events, parentExecution);
String errorCode = getErrorCodeFromErrorEventDefinition(matchingEvent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public DeploymentResourceResponse getDeploymentResource(@ApiParam(name = "deploy
restApiInterceptor.accessDeploymentById(deployment);
}

String pathInfo = request.getPathInfo();
String resourceName = pathInfo.replace("/repository/deployments/" + deploymentId + "/resources/", "");
String ressourceURI = request.getRequestURI();
String resourceName = ressourceURI.replace(request.getContextPath()+"/repository/deployments/" + deploymentId + "/resources/", "");

List<String> resourceList = repositoryService.getDeploymentResourceNames(deploymentId);

Expand Down