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

发布于 2024-08-15 06:18:56 字数 609 浏览 2 评论 0原文

在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

秋日私语 2024-08-22 06:18:56

实际上,弯曲点与弯曲点的弯曲点有关。如果您签入插件,则当您在过渡中进行弯曲时,弯曲点只会填充在文件中。否则,不会添加任何弯曲点。

因此,在进行弯曲后,将按如下方式填充弯曲点:

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

该弯曲点告知您 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:

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

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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文