I am using the Camunda BPMN Model API to read some BPMN XML files. When trying to access the Source and Target of an Association I sometimes get a ClassCastException. The reason for this is that there are some text annotations in the files that I have and TextAnnotation is not supported by the Camunda BPMN Model API. There might be some other cases as well, I haven't tested out with all the possible elements.
Do you perhaps have a plan to support it in some future releases or I can provide a pull request for it? I haven't done anything, but it seems that it won't be too complicated to do it.
Thanks
Filip Hrisafov
I will provide the pull request. I finished the TextAnnotation element, I used the reference and the pull request. I also created tests for it.
In the meantime, I also saw this CAM-2561 and I wanted to implement that as well. I hope that I would finish it by the end of the week and send you the pull request.
There are things which were a bit confusing for me, but I looked at how some other elements are implemented and I am following them. In the meantime do you perhaps some codeformatter that I can use?
Cheers
I used the eclipse settings from the camunda BPM platform for the formatting of the code.
I finished the implementation for the CAM-2561 feature request, I only need to add tests to it. The branch I am working on is here https://github.com/filiphr/camunda-bpmn-model/tree/feature-additionalBpmnStructs. I hope that it is fine. I had some doubts about the DataInputRef and DataOutputRef, I looked at the EventDefinitionRef from the ThrowEventImpl to do it same as there, without an interface. Let me know if I need to change it. I would appreciate if you can point me to some bpmn files with MultiInstanceLoopCharacteristics, so I can write the tests for it.
I am also not sure with the text element for the textAnnotation, should I add a field in the textAnnotationImpl or how to do it? Currently the field is not used anywhere in the class.
Thanks for the help
Cheers
Filip
P.S. I reposted, since I realized, that my email was in my signature in the previous posts. Sorry for the mix up
On Tuesday, October 7, 2014 11:28:56 PM UTC+2, Sebastian Menski wrote: