Versions Compared

Key

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

Table of Contents

Assume that the process definition id is CRM#1#newpkg1_wp1, the username & password is admin, and the base URL of 假设流程定义ID为CRM#1#newpkg1_wp1,用户名和密码为admin,基本URL为  http://localhost:8080/jw/.

Start a Process

开启一个流程

通过使用JSON By using JSON API /json/workflow/process/start/(*:processDefId)

Info
titleMethod Call

Please note that one must use POST to make such particular JSON API call.请注意,必须使用POST来进行特定的JSON API调用

Sample Call:

Code Block
/web/json/workflow/process/start/CRM:1:newpkg1_wp1?j_username=admin&j_password=admin

...

Code Block
{"activityId":"2122_2117_CRM_newpkg1_wp1_newpkg1_wp1_act1","processId":"2117_CRM_newpkg1_wp1"}

NOTE: workflow variables can be set when starting a process by passing additional parameters into the URL, e.g., 注意:通过将其他参数传递到URL来启动流程时,可以设置工作流变量,例如  var_ticketId=123456&var_relatedTo=network.

Complete the Assignment with Variables

完成赋值与变量

通过使用JSON API  By using JSON API /json/workflow/assignment/completeWithVariable/(*:activityId)

...

Code Block
{"activityId":"2122_2117_CRM_newpkg1_wp1_newpkg1_wp1_act1","assignment":"org.joget.workflow.model.WorkflowAssignment@1b99f74","processId":"2117_CRM_newpkg1_wp1","status":"completed"}

Abort a Process

中止一个流程

通过使用JSON API  By using JSON API /json/workflow/process/abort/(*:processId)

...