Flowable 6.6.0 BPMN用户指南 -9 表单 - 9.3 外部表单渲染

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

  • BPMN用户指南 第一部分 - 中文PDF精编版
  • BPMN用户指南 第二部分 - 中文PDF精编版
  • BPMN用户指南 第三部分 - 中文PDF精编版
  • 应用程序指南 - 中文PDF精编版
  • 应用程序指南 - 中英对照PDF精编版
  • 应用程序指南 - Eclipse设计器中文PDF精编版
  • 表单用户指南 - 中文PDF精编版
  • 事件注册表用户指南 - 中文PDF精编版

《Flowable 6.6.0 BPMN用户指南》

1. 入门

2. 配置

3 The Flowable API

4 Flowable 6.6.0 BPMN用户指南 - (4)Spring集成

5 Spring Boot

6 部署

7 BPMN 2.0简介

8 BPMN 2.0的构造

9 表单(Forms)

9.1 表单定义
9.2 表单属性
9.3 外部表单渲染(External form rendering)


有关Flowable的更多文档,参见:

《Flowable文档大全》


9.3 外部表单渲染(External form rendering)

The API also allows for you to perform your own task form rendering outside of the Flowable Engine. These steps explain the hooks that you can use to render your task forms yourself.

Essentially, all the data that’s needed to render a form is assembled in one of these two service methods: StartFormData FormService.getStartFormData(String processDefinitionId) and TaskFormdata FormService.getTaskFormData(String taskId).

API还允许您在Flowable引擎之外执行自己的任务表单渲染。这些步骤解释了可以用来自己呈现任务表单的钩子。

本质上,呈现表单所需的所有数据都被组合在这两个服务方法之一中:StartFormData FormService.getStartFormData(String processDefinitionId) 和
TaskFormdata FormService.getTaskFormData(String taskId)。

Submitting form properties can be done with ProcessInstance FormService.submitStartFormData(String processDefinitionId, Map properties) and void FormService.submitTaskFormData(String taskId, Map properties)

可以使用
ProcessInstance FormService.submitStartFormData(String processDefinitionId, Map properties) 和
void FormService.submitTaskFormData(String taskId, Map properties)
提交表单属性。

To learn about how form properties map to process variables, see Form properties
You can place any form template resource inside the business archives that you deploy (in case you want to store them versioned with the process). It will be available as a resource in the deployment, which you can retrieve using: String ProcessDefinition.getDeploymentId() and InputStream RepositoryService.getResourceAsStream(String deploymentId, String resourceName); This could be your template definition file, which you can use to render/show the form in your own application.
若要了解表单属性如何映射到流程变量,请参阅表单属性(Form properties)。

您可以在所部署的业务存档中(以防您希望将它们与不同版本的流程一起存储)放置表单模板资源。它将作为部署中的资源使用,您可以使用:
String ProcessDefinition.getDeploymentId()和
InputStream RepositoryService.getResourceAsStream(String deploymentId, String resourceName)访问这些资源;您可以使用您的模板定义文件在自己的应用程序中呈现/展示表单。

You can use this capability of accessing the deployment resources beyond task forms for any other purposes as well.

The attribute

为了完成其他目标,您也可以使用此功能访问任务表单以外的部署资源。
String FormService.getStartFormData(String processDefinitionId).getFormKey() 和 String FormService.getTaskFormData(String taskId).getFormKey() API可获取

你可能感兴趣的:(#,BPMN用户指南(9-18))