Assignments
This page details the Assignments endpoints and the actions they support. It provides sample URLs and results for quick reference, along with further instructions on how to use each endpoint.
web/json/workflow/assignment/accept/(*:activityId)
Accept an assigned assignment.
- User Role: Anyone (Including anonymous)
- Method: HTTP POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodactivityId
- Activity instance id
- Sample URL:
http://localhost:8080/jw/web/json/workflow/assignment/accept/879_223_crm_process1_approve_proposal
- Sample Result:
web/json/workflow/assignment/complete/(*:activityId)
Completes an assigned assignment.
- User Role: Anyone (Including anonymous)
- Method: HTTP POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodactivityId
- activity instance id
- Sample URL:
http://localhost:8080/jw/web/json/workflow/assignment/complete/879_223_crm_process1_approve_proposal
- Sample Result:
web/json/workflow/assignment/completeWithVariable/(*:activityId)
Completes an assigned assignment with the option to set workflow variables.
- User Role: Anyone (Including anonymous)
- Method: HTTP POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodactivityId
- activity instance idvar_*
- (Optional) parameters prefixed with "var_" used to set workflow variable
- Sample URL:
http://localhost:8080/jw/web/json/workflow/assignment/completeWithVariable/879_223_crm_process1_approve_proposal?var_status=Sent
- Sample Result:
web/json/workflow/assignment/list
Retrieves all assignments of the current logged in user.
- User Role: Anyone (Including anonymous)
- Method: HTTP GET/POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodpackageId
- (Optional) App Definition IdprocessDefId
- (Optional) Process definition Id with versionprocessId
- (Optional) Process instance idsort
- (Optional) column name to be sorteddesc
- (Optional) Boolean value to determine whether to sort by ascending or descending order (true equals to descending)start
- (Optional) where rows start fromrows
- (Optional) number of rows per page
- Sample URL:
http://localhost:8080/jw/web/json/workflow/assignment/list?rows=3&packageId=crm
- Sample Result:
web/json/workflow/assignment/list/count
Retrieves the number of assignments of the current logged in user.
- User Role: Anyone (Including anonymous)
- Method: HTTP GET/POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodpackageId
- (Optional) App Definition IdprocessDefId
- (Optional) Process definition Id with versionprocessId
- (Optional) Process instance id
- Sample URL:
http://localhost:8080/jw/web/json/workflow/assignment/list/count?packageId=crm
- Sample Result:
web/json/workflow/assignment/list/accepted
Retrieves all accepted assignments of the current logged in user.
- User Role: Anyone (Including anonymous)
- Method: HTTP GET/POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodprocessId
- (Optional) Process instance idsort
- (Optional) column name to be sorteddesc
- (Optional) Boolean value to determine whether to sort by ascending or descending order (true equals to descending)start
- (Optional) where rows start fromrows
- (Optional) number of rows per page
- Sample URL:
http://localhost:8080/jw/web/json/workflow/assignment/list/accepted?rows=3
- Sample Result:
web/json/workflow/assignment/list/accepted/count
Retrieves the number of accepted assignments of current logged in user.
- User Role: Anyone (Including anonymous)
- Method: HTTP GET/POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this method
- Sample URL:
http://localhost:8080/jw/web/json/workflow/assignment/list/accepted/count
- Sample Result:
web/json/workflow/assignment/list/accepted/process
Retrieves processes list based on accepted assignment of current logged in user.
- User Role: Anyone (Including anonymous)
- Method: HTTP GET/POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this method
- Sample URL:
http://localhost:8080/jw/web/json/workflow/assignment/list/accepted/process
- Sample Result:
web/json/workflow/assignment/list/pending
Retrieves all pending assignments of the current logged in user.
- User Role: Anyone (Including anonymous)
- Method: HTTP GET/POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodprocessId
- (Optional) Process instance idsort
- (Optional) column name to be sorteddesc
- (Optional) Boolean value to determine whether to sort by ascending or descending order (true equals to descending)start
- (Optional) where rows start fromrows
- (Optional) number of rows per page
- Sample URL:
http://localhost:8080/jw/web/json/workflow/assignment/list/pending
- Sample Result:
web/json/workflow/assignment/list/pending/count
Retrieves the number of all pending assignments of the current logged in user.
- User Role: Anyone (Including anonymous)
- Method: HTTP GET/POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this method
- Sample URL:
http://localhost:8080/jw/web/json/workflow/assignment/list/pending/count
- Sample Result:
web/json/workflow/assignment/list/pending/process
Retrieves process list based on pending assignments of the current logged in user.
- User Role: Anyone (Including anonymous)
- Method: HTTP GET/POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this method
- Sample URL:
http:/localhost:8080/jw/web/json/workflow/assignment/list/pending/process
- Sample Result:
web/json/workflow/assignment/process/view/(*:processId)
Retrieves process information based on available assignment of the current logged in user.
- User Role: Anyone (Including anonymous)
- Method: HTTP GET/POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodprocessId
- Process instance id
- Sample URL:
http://localhost:8080/jw/web/json/workflow/assignment/process/view/208_crm_process1
- Sample Result:
web/json/workflow/assignment/withdraw/(*:activityId)
Withdraws an accepted assignment.
- User Role: Anyone (Including anonymous)
- Method: HTTP POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodactivityId
- activity instance id
- Sample URL:
http://localhost:8080/jw/web/json/workflow/assignment/withdraw/879_223_crm_process1_approve_proposal
- Sample Result:
web/json/workflow/assignment/variable/(*:activityId)/(*:variable)
Sets value of workflow variable of an assignment.
- User Role: Anyone (Including anonymous)
- Method: HTTP POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodactivityId
- activity instance idvariable
- workflow variable to set valuevalue
- value of workflow variable
- Sample URL:
http://localhost:8080/jw/web/json/workflow/assignment/variable/843_208_crm_process1_send_proposal/status?value=test
- Sample Result:
web/json/workflow/assignment/view/(*:activityId)
Retrieves information of an assignment.
- User Role: Anyone (Including anonymous)
- Method: HTTP GET/POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodactivityId
- activity instance id
- Sample URL:
http://localhost:8080/jw/web/json/workflow/assignment/view/843_208_crm_process1_send_proposal
- Sample Result: