You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

Start a process

Sample Call:

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

Sample Result:

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

Accept the assignment

Sample Call:

/web/json/workflow/assignment/accept/2122_2117_CRM_newpkg1_wp1_newpkg1_wp1_act1?j_username=admin&j_password=admin


Sample Result:

{"assignment":"org.joget.workflow.model.WorkflowAssignment@12944ac","status":"accepted"}

Complete the assignment with variables

Sample Call:

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

Sample Result:

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

  • No labels