In JBPM 3 plugin for Eclipse, bendpoints are represented using four integers:
<transition name="">
<label x="5" y="-10"/>
<bendpoint w1="36" h1="-37" w2="43" h2="39"/>
</transition>
In the source code, there is a class called Bendpoint
, which stores two Dimension
objects whose values are represented by w1, h1, w2 and h2. This seems to come from Eclipse GEF.
In JBPM 4 plugin for Eclipse, bendpoints are represented by two integers:
<transition name="" g="200,100:5,-10" />
In the source code, there is not such a Bendpoint class. The values are now stored in a simpler Point
class.
How can I convert JBPM 3 bendpoints to JBPM 4 format?
Note: the above code is just an example. I don't know what JBPM 3 values will be like in JBPM 4.