Flowable 6.6.0 Eclipse设计器 - 5.扩展Flowable设计器 - 5.1定制调色板概述

Flowable 6.6.0 用户指南相关文档下载

有关Flowable文档的其他资料,参见:

《Flowable文档大全》


《Flowable 6.6.0 Eclipse设计器》

1 安装(Installation
2 Flowable 设计器编辑器特性(Flowable Designer editor features)
3 Flowable设计器BPMN 特性(Flowable Designer BPMN features)
4 Flowable设计器部署特性(Flowable Designer deployment features)
5 扩展Flowable设计器(Extending Flowable Designer)

5 扩展Flowable设计器(Extending Flowable Designer)

You can extend the default functionality offered by Flowable Designer. This section documents which extensions are available, how they can be used and provides some usage examples. Extending Flowable Designer is useful in cases where the default functionality doesn’t suit your needs, you require additional capabilities or have domain-specific requirements when modeling business processes. Extension of Flowable Designer falls into two distinct categories: extending the palette and extending output formats. Each of these extension types requires a specific approach and different technical expertise.

您可以扩展Flowable Designer提供的默认功能。本节说明可用哪些扩展,如何使用,并提供一些使用示例。在默认功能不适合您的需要、您需要其他功能或在建模业务流程时具有特定于领域的需求时, Flowable设计器扩展非常有用。Flowable设计器的扩展分为两个不同的类别:扩展调色板和扩展输出格式。每种扩展类型都需要特定的方法和不同的技术专长。

Note
Extending Flowable Designer requires technical knowledge and, more specifically, knowledge of programming in Java. Depending on the type of extension you want to create, you might also need to be familiar with Maven, Eclipse, OSGi, Eclipse extensions and SWT.

注意
扩展Flowable Designer需要技术知识,更具体地说,需要Java编程知识。根据您想要创建扩展类型,您可能还需要熟悉Maven、Eclipse、OSGi、Eclipse扩展和SWT。

5.1 定制调色板(Customizing the palette)

You can customize the palette that is offered to users when modeling processes. The palette is the collection of shapes that can be dragged onto the canvas in a process diagram and is displayed to the right-hand side of the canvas. As you can see in the default palette, the default shapes are grouped together (these are called “drawers”) for Events, Gateways and so on. There are two options built-in to Flowable Designer to customize the drawers and shapes in the palette:

您可以在建模流程时提供给用户自定义的调色板。调色板是可以在流程图中拖到画布上并显示在画布右侧的形状的集合。正如您在默认调色板中看到的,默认形状被组合在一起(这些形状称为“抽屉”),用于事件、网关等。Flowable Designer内置两个选项,用于自定义调色板中的抽屉和形状:

  • Adding your own shapes / nodes to existing or new drawers
  • Disabling any or all of the default BPMN 2.0 shapes offered by Flowable Designer, with the exception of the connection and selection tools
  • 将您自己的形状/节点添加到现有或新的抽屉中
  • 禁用一个或所有的Flowable Designer提供的默认BPMN 2.0形状,连接和选择工具(connection and selection tool)除外
    In order to customize the palette, you create a JAR file that is needs to be added to every installation of Flowable Designer (more on how to do that later). Such a JAR file is called an extension. By writing classes that are included in your extension, Flowable Designer understands which customizations you wish to make. In order for this to work, your classes should implement certain interfaces. There is an integration library available with those interfaces and base classes to extend, which you should add to your project’s classpath.

为了定制调色板,您需要创建一个JAR文件,该文件需要添加到每个Flowable设计器的安装中(稍后将详细介绍如何进行此操作)。这样的JAR文件称为扩展(extension)。通过编写您的扩展中包含的类,Flowable设计器了解您希望进行哪些自定义。为了使其工作,您的类应该实现某些接口。有一个集成库可用于扩展这些接口和基类,您应该将其添加到项目的classpath中。

You can find the code examples listed below in source control with Flowable Designer. Take a look in the examples/money-tasks directory in the flowable-designer repository of Flowable’s source code.

您可以在使用Flowable设计器的源代码管理中找到下面列出的代码示例。在Flowable’s 源代码(source code)的flowable-designer存储库中查看examples/money-tasks目录。

Note
You can setup your project in whichever tool you prefer and build the JAR with the build tool of your choice. For the instructions below, a setup is assumed with Eclipse Mars or Neon, using Maven (3.x) as build tool, but any setup should enable you to create the same results.

注意
您可以在您喜欢的任何工具中设置项目,并使用您选择的构建(build)工具构建JAR。对于下面的说明,假设使用Eclipse Mars或Neon进行设置,使用Maven(3.x)作为构建工具,但是任何设置都应该保证您能创建相同的结果。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

月满闲庭

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值