简体   繁体   English

Eclipse的JBPM 3插件和Eclipse的JPBM 4插件中的折弯点有什么区别?

[英]What is the difference between bendpoints in JBPM 3 plugin for Eclipse and JPBM 4 plugin for Eclipse?

In JBPM 3 plugin for Eclipse, bendpoints are represented using four integers: 在Eclipse的JBPM 3插件中,折点使用四个整数表示:

<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. 在源代码中,有一个名为Bendpoint的类,该类存储两个Dimension对象,其值分别由w1,h1,w2和h2表示。 This seems to come from Eclipse GEF. 这似乎来自Eclipse GEF。

In JBPM 4 plugin for Eclipse, bendpoints are represented by two integers: 在Eclipse的JBPM 4插件中,折点由两个整数表示:

<transition name="" g="200,100:5,-10" />

In the source code, there is not such a Bendpoint class. 在源代码中,没有这样的Bendpoint类。 The values are now stored in a simpler Point class. 现在,这些值存储在一个更简单的Point类中。

How can I convert JBPM 3 bendpoints to JBPM 4 format? 如何将JBPM 3折点转换为JBPM 4格式?

Note : the above code is just an example. 注意 :以上代码仅是示例。 I don't know what JBPM 3 values will be like in JBPM 4. 我不知道JBPM 4中的JBPM 3值会是什么样。

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: 因此,在完成折弯之后,将如下所示填充折点:

<bendpoint w1="36" h1="-37" w2="43" h2="39"/>

This bendpoint informs you of 2 coordinates (w1,h1) and (w2,h2). 该折点会通知您两个坐标(w1,h1)和(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! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM