Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

在 活动匹配到表单

有两种映射活动的方法。第二种方法是映射到外部表单。该功能允许将进程的活动映射到Joget Workflow外部托管的页面。

当受理人从收件箱中打开作业,而不是查看通常的Joget工作流表单时,会显示一个指向活动映射中定义的外部表单的iFrame。在加载iFrame时,关于赋值的许多有用信息将作为请求参数传递。

将从Joget Workflow传入外部表单的参数:

In Map Activities to Forms, there are two ways of mapping an activity. Mapping to External Form is the second way. This feature allows one to map a process's activity to a page hosted externally outside of Joget Workflow.

When an assignment is opened by the assignee from the Inbox, instead of viewing the usual Joget Workflow's form, a iFrame will be shown pointing to the External Form defined in the activity mappings. A number of useful information about the assignment will be passed over as request parameter when the iFrame is loaded.

Parameters that will be passed into external form from Joget Workflow:

  • appId
  • appVersion
  • processId
  • processVersion
  • activityId
  • processRequesterId
  • username

...

Figure 1: Inbox showing assignment that is mapped to External Form

It is important to note that from this point onward, Joget Workflow will no longer has control over the content of the form nor in control of the workflow process anymore. The external page must now handle the form retrieval / validation / saving by itself.

要注意,从这一点开始,Joget Workflow将不再控制表单的内容,也不再控制工作流程。外部页面现在必须自己处理表单检索/验证/保存。

然后,需要调用由Joget Workflow提供的必要API来完成分配,以便转到工作流程过程中的下一个节点。请参阅  JSON API集成| 完成赋值与变量One will then need to invoke the necessary API offered by Joget Workflow to complete the assignment in order to move on to the next node in the workflow process. See JSON API Integration | Complete the Assignment with Variables