Date: Fri, 29 Mar 2024 08:10:20 +0000 (UTC) Message-ID: <1616330708.140458.1711699820469@ip-10-0-0-39.us-west-2.compute.internal> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_140457_1478444829.1711699820465" ------=_Part_140457_1478444829.1711699820465 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Assume that the process definition id is CRM#1#newpkg1_wp1, the use= rname & password is admin, and the base URL of http://loc= alhost:8080/jw/.
By using JSON API /json/workflow/process= /start/(*:processDefId)
Method Call
Please note that one must use POST to make such particular JSON API call= .
Sample Call:
/web/js= on/workflow/process/start/CRM:1:newpkg1_wp1?j_username=3Dadmin&j_passwo= rd=3Dadmin
Sample Result:
{"activ= ityId":"2122_2117_CRM_newpkg1_wp1_newpkg1_wp1_act1","processId":"2117_CRM_n= ewpkg1_wp1"}
NOTE: workflow variab= les can be set when starting a process by passing additional parameters int= o the URL, e.g., var_ticketId=3D123456&var_relatedTo=3Dnet= work.
By using JSON API /json/= workflow/assignment/completeWithVariable/(*:activityId)
Method Call
Please note that one must use POST to make such particular JSON API call= .
Sample Call:
/web/js= on/workflow/assignment/completeWithVariable/2122_2117_CRM_newpkg1_wp1_newpk= g1_wp1_act1?var_ticketId=3D123456&var_relatedTo=3Dnetwork&j_usernam= e=3Dadmin&j_password=3Dadmin
Sample Result:
{"activ= ityId":"2122_2117_CRM_newpkg1_wp1_newpkg1_wp1_act1","assignment":"org.joget= .workflow.model.WorkflowAssignment@1b99f74","processId":"2117_CRM_newpkg1_w= p1","status":"completed"}
By using JSON API /json/workflow/process/ab= ort/(*:processId)
Method Call
Please note that one must use POST to make such particular JSON API call= .
Sample Call:
/web/js= on/workflow/process/abort/2117_CRM_newpkg1_wp1?j_username=3Dadmin&j_pas= sword=3Dadmin
Sample Result:
{"id":"= 2117_CRM_newpkg1_wp1","status":"aborted"}