用于 Eclipse 的 JBPM 3 插件和用于 Eclipse 的 JPBM 4 插件中的弯曲点有什么区别?
在 Eclipse 的 JBPM 3 插件中,弯曲点用四个整数表示:
<transition name="">
<label x="5" y="-10"/>
<bendpoint w1="36" h1="-37" w2="43" h2="39"/>
</transition>
在源代码中,有一个名为 Bendpoint
的类,它存储两个 Dimension
对象,其值由w1、h1、w2 和 h2。这似乎来自 Eclipse GEF。
在Eclipse的JBPM 4插件中,弯曲点由两个整数表示:
<transition name="" g="200,100:5,-10" />
在源代码中,没有这样的Bendpoint类。这些值现在存储在更简单的 Point
类中。
如何将 JBPM 3 弯点转换为 JBPM 4 格式?
注意:上面的代码只是一个示例。我不知道 JBPM 3 的值在 JBPM 4 中会是什么样。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上,弯曲点与弯曲点的弯曲点有关。如果您签入插件,则当您在过渡中进行弯曲时,弯曲点只会填充在文件中。否则,不会添加任何弯曲点。
因此,在进行弯曲后,将按如下方式填充弯曲点:
该弯曲点告知您 2 个坐标 (w1,h1) 和 (w2,h2)。第一个与事务的起始节点相关,第二个与事务的目的地节点相关。
我希望这对你有帮助。祝你好运!
Actually, the bendpoint is related to the bendpoints of a bendpoint. If you check in the plugin, the bendpoint is only filled in the file, when you make a bend in the transition. Otherwise, no bendpoint is added to it.
So, after you have made a bend, a bendpoint is filled like the following:
This bendpoint informs you of 2 coordinates (w1,h1) and (w2,h2). The first is related to the origin node of the transation, and the second is related to the destin node of the transation.
I hope this helps you. Good luck!