Skip to content

Commit

Permalink
Allow to configure default abort parent behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Fanjul committed Mar 19, 2024
1 parent 9e77a4f commit de37a77
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public class SubProcessNode extends StateBasedNode implements Mappable, ContextC
private String processName;
private boolean waitForCompletion = true;
private boolean callActivity = false;
private static Boolean defaultAbortParent = Boolean.getBoolean("org.jbpm.abortParent");

private List<DataAssociation> inMapping = new LinkedList<DataAssociation>();
private List<DataAssociation> outMapping = new LinkedList<DataAssociation>();
Expand Down Expand Up @@ -238,7 +239,7 @@ public boolean isAbortParent() {

String abortParent = (String) getMetaData("customAbortParent");
if (abortParent == null) {
return true;
return defaultAbortParent == null ? true : defaultAbortParent;
}
return Boolean.parseBoolean(abortParent);
}
Expand Down

0 comments on commit de37a77

Please sign in to comment.