Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Table of Contents

Assume that the process definition id is CRM#1#newpkg1_wp1, the username & password is admin, with and the base URL of http://localhost:8080/jw/.

Start a

...

Process

Sample Call:

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

Sample Result:

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., eg  var_ticketId=123456&var_relatedTo=network.

...

Complete the

...

Assignment with Variables

Sample Call:

Code Block
/web/json/workflow/assignment/acceptcompleteWithVariable/2122_2117_CRM_newpkg1_wp1_newpkg1_wp1_act1?var_ticketId=123456&var_relatedTo=network&j_username=admin&j_password=admin


Sample Result:

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

...

Abort a Process

Sample Call:

Code Block
/web/json/workflow/assignmentprocess/completeWithVariableabort/2122_2117_CRM_newpkg1_wp1_newpkg1_wp1_act1?var_ticketId=123456&var_relatedTo=network&j_username=admin&j_password=admin

Sample Result:

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