cancel
Showing results for 
Search instead for 
Did you mean: 

activiti 6.0 and BpmnJsonConverter

tammamf
Champ in-the-making
Champ in-the-making
Hi

I am trying to move my project from activiti 5.21.0 to 6.0.0.Beta2.
I used activiti5compatinility packages to solve compiler problem without having to change my project logic
however my project uses BpmnJsonConverter  in different scenarios
as in this piece of code

         JsonNode editorNode = new ObjectMapper().readTree(repositoryService.getModelEditorSource(modelId));
         BpmnJsonConverter jsonConverter = new BpmnJsonConverter();



the problem is BpmnJsonConverter is not found in any activiti 6 libraries, is there any work around for that?

thank you

1 REPLY 1

tammamf
Champ in-the-making
Champ in-the-making
the full use of the code above is:

JsonNode editorNode = new ObjectMapper().readTree(repositoryService.getModelEditorSource(modelId));
BpmnJsonConverter jsonConverter = new BpmnJsonConverter();
BpmnModel model = jsonConverter.convertToBpmnModel(editorNode);
byte[] bpmnBytes = new BpmnXMLConverter().convertToXML(model);