...
- 在 匹配活动到表单 标签页, 列出了所有流程中的活动.
- 在每个活动, 点击 增加/编辑表单 从弹出的本应用所有表单列表中选择1个表单.
![worddav6a3477a2543daabe14d02309a0f84644.png](/community/plugins/servlet/confluence/placeholder/unknown-attachment?locale=en_GB&version=2)
- 或则, 点击 创建新表单 创建 Travel Approval Form. 在此表单中, 添加一个 子表单 元素, 用于显示之前提交的表单, 添加一个 单选项 元素获取审批结果.
![](/community/download/attachments/27362229/form-new.png?version=1&modificationDate=1488375980000&api=v2)
- 配置子表单, 选择已创建的表单.
![](/community/download/attachments/27362229/form-subform.png?version=1&modificationDate=1488376039000&api=v2)
- 配置 status 单选项, 提供 Approved 和 Rejected 选项.
![worddav3c8a6d300fef7725c3bac5af549158d7.png](/community/plugins/servlet/confluence/placeholder/unknown-attachment?locale=en_GB&version=2)
- 为了决定流程分支走向, 不要忘记一个重要的设置, 即在 高级选项 中将 工作流变量名 写入. 这样, 表单中用户填入的值将会传递给工作流变量 status , 从而决定流程分支的走向.
![worddav632bdcac8c2b2b03d9a1696da9ac82ba.png](/community/plugins/servlet/confluence/placeholder/unknown-attachment?locale=en_GB&version=2)
- 当审批表单所有配置完成, 后可以得到如下页面:
![](/community/download/attachments/27362229/form-complete.png?version=1&modificationDate=1488376160000&api=v2)
Mapping Tools to Plugins
匹配工具到插件
- 在 匹配工具到插件 标签页, 您可以将插件配置到流程的工具节点(例如配置1个邮件发送工具)In the Map Tools to Plugins tab, you can map tools defined in the process to plugins.
![](/community/download/attachments/27362229/pmap-tool.png?version=1&modificationDate=1488375443000&api=v2)
- For each tool, click on Add/Edit Plugin to select and configure a plugin在每个工具节点, 点击 增加/编辑插件 选择1个插件并配置.
![worddav26706297d39176f980c7fc3b6a3a66a7.png](/community/plugins/servlet/confluence/placeholder/unknown-attachment?locale=en_GB&version=2)
Test Driving the Process
测试流程
- 您可以点击顶部的 运行流程 按钮测试流程To perform a test run on a process, click on the Run Process button along the top of the App design process page.
![worddavafec83e6f720176ff2ae62b51c2915c9.png](/community/plugins/servlet/confluence/placeholder/unknown-attachment?locale=en_GB&version=2)
Incorporating the Process into the Userview
将流程放入用户界面
- 在应用设计页面, 点击已有的用户界面, 启动用户界面设计器In the App design page, click on the name of an existing userview to launch the Userview Builder.
- Drag a Run Process element into a menu category. This menu element allows the user to start a process from the userview拖拽 启动流程 元素到菜单类中. 此菜单用于最终用户从用户界面启动流程.
![](/community/download/attachments/27362229/pb-runprocess.png?version=1&modificationDate=1488376513000&api=v2)
- Click on Properties of the Run Process element and select the process to run点击启动流程菜单的 属性 选择流程名称.
![](/community/download/attachments/27362229/pb-runprocess-edit.png?version=1&modificationDate=1488376499000&api=v2)
- Drag an Inbox element into a menu category. This menu element provides the user with an inbox to manage their assigned workflow tasks拖拽1个 任务箱 元素到菜单类中. 此菜单用于最终用户打开流程中指定给自己的任务.
![](/community/download/attachments/27362229/pb-inbox.png?version=1&modificationDate=1488376484000&api=v2)
- Save the userview, and you will be able to run and perform assigned tasks in the published userview保存用户界面, 您可以从已发布应用的用户界面中查看效果.
![](/community/download/attachments/27362229/uv.png?version=1&modificationDate=1488376472000&api=v2)
{"serverDuration": 127, "requestCorrelationId": "a63569f6f7d99417"}