Skip to content

Commit

Permalink
Use PlanItemDefinitionExport for exporting the main plan model and al…
Browse files Browse the repository at this point in the history
…low extending from StageExport
  • Loading branch information
filiphr committed Nov 7, 2023
1 parent 6d60b2f commit 7b7f353
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import org.flowable.cmmn.converter.export.CaseExport;
import org.flowable.cmmn.converter.export.CmmnDIExport;
import org.flowable.cmmn.converter.export.DefinitionsRootExport;
import org.flowable.cmmn.converter.export.PlanItemDefinitionExport;
import org.flowable.cmmn.converter.export.StageExport;
import org.flowable.cmmn.converter.export.TextAnnotationExport;
import org.flowable.cmmn.converter.util.PlanItemDependencyUtil;
Expand Down Expand Up @@ -294,7 +295,7 @@ public byte[] convertToXML(CmmnModel model, String encoding) {

Stage planModel = caseModel.getPlanModel();

StageExport.getInstance().writePlanItemDefinition(model, planModel, xtw);
PlanItemDefinitionExport.writePlanItemDefinition(model, planModel, xtw);

// end case element
xtw.writeEndElement();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public static StageExport getInstance() {
return instance;
}

private StageExport() {
protected StageExport() {
}

@Override
Expand Down

0 comments on commit 7b7f353

Please sign in to comment.