Skip to content

Commit

Permalink
impl
Browse files Browse the repository at this point in the history
Issue imixs#191
  • Loading branch information
rsoika committed Feb 20, 2023
1 parent f65e64e commit cebcd30
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ private void addSignals(final BPMNModel model, final DataBuilder dataBuilder, fi
// the id is used to find the signal in the bpmn model later
dataBuilder.addData("id", bpmnSignal.getId());
}
dataBuilder.closeArrayBuilder();
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ public void buildPropertiesForm(final BPMNElement bpmnElement, final DataBuilder
}

}

}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,15 @@ public DataBuilder addObject() {
* Helper Method to close an open array builder. The method adds an existing
* arrayObjectBuilder.
*/
private void closeArrayBuilder() {
public void closeArrayBuilder() {
if (arrayObjectBuilder != null) {
if (arrayObjectBuilder != null) {
arrayBuilder.add(arrayObjectBuilder.build());
arrayObjectBuilder = null;

}
rootBuilder.add(arrayName, arrayBuilder);
rootBuilder.add(arrayName, arrayBuilder.build());
arrayBuilder = null;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ void applyBPMNExtensions(final GModelElement elementNode, final BPMNElement bpmn
if (extension.handlesBPMNElement(bpmnElement)) {
// add JSONForms Schemata
extension.buildPropertiesForm(bpmnElement, dataBuilder, schemaBuilder, uiSchemaBuilder);
dataBuilder.closeArrayBuilder();

// if the extension is not a Default Extension then we add the extension css
// class
Expand Down

0 comments on commit cebcd30

Please sign in to comment.