Monitoring
This page details the Monitoring 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/monitoring/activity/abort/(*:processId)/(*:activityDefId)
Aborts an activity of a process instance.
- User Role: Admin
- Method: HTTP POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodprocessId
- process instance idactivityDefId
- activity definition id
- Sample URL:
http://localhost:8080/jw/web/json/monitoring/activity/abort/208_crm_process1/send_proposal
- Sample Result:
web/json/monitoring/activity/list
Retrieves a list of all activities.
- User Role: Admin
- Method: HTTP GET/POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodprocessId
- (Optional) process instance id for filteringsort
- (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/monitoring/activity/list?processId=116_hr_expense_process1
- Sample Result:
web/json/monitoring/activity/reassign
Reassigns a user to replace another user assigned to an assignment.
- User Role: Admin
- Method: HTTP POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodusername
- username that will replace the assigned userreplaceUser
- username of an existing assignee of the assignmentactivityId
- activity instance id of the assignment
- Sample URL:
http://localhost:8080/jw/web/json/monitoring/activity/reassign?activityId=841_206_crm_process1_send_proposal&username=admin&replaceUser=cat
- Sample Result:
web/json/monitoring/activity/reevaluate
Reevaluates an activity.
- User Role: Admin
- Method: HTTP POST
- Parameters:
activityId
- activity instance id to be reevaluated
- Sample URL:
http://localhost:8080/jw/web/json/monitoring/activity/reevaluate?activityId=841_206_crm_process1_send_proposal
web/json/monitoring/activity/start/(*:processId)/(*:activityDefId)
Starts an activity in a running process instance.
- User Role: Admin
- Method: HTTP POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodprocessId
- process instance idactivityDefId
- activity definition idabortCurrent
- (Optional) true or false value to abort all the running activities in the process instance
- Sample URL:
http://localhost:8080/jw/web/json/monitoring/activity/start/116_hr_expense_process1/verify_claim
- Sample Result:
web/json/monitoring/activity/variable/(*:activityId)/(*:variable)
Sets value to a workflow variable to a running activity instance.
- User Role: Admin
- Method: HTTP POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodactivityId
- activity instance idvariable
- workflow variable namevalue
- workflow variable value
- Sample URL:
http://localhost:8080/jw/web/json/monitoring/activity/variable/474_116_hr_expense_process1_approve_claim/status?value=test
- Sample Result:
web/json/monitoring/activity/view/(*:activityId)
Retrieves information of an activity instance.
- User Role: Admin
- 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/monitoring/activity/view/474_116_hr_expense_process1_approve_claim
- Sample Result:
web/json/monitoring/completed/process/list
Retrieves a list of all completed process instances.
- User Role: Admin
- Method: HTTP GET/POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodpackageId
- (Optional) App/ package idprocessId
- (Optional) process instance id for filteringprocessName
- (Optional) process name for filteringsort
- (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/monitoring/completed/process/list?rows=3
- Sample Result:
web/json/monitoring/process/copy/(*:processId)/(*:processDefId)
Copies the state and workflow variables of a running process instance to start a new process instance.
- User Role: Admin
- Method: HTTP POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodprocessId
- process instance idprocessDefId
- process definition id to start a new process (replace "#" to ":")abortCurrent
- (Optional) true or false value to abort the current running process instance after start a new process instance
- Sample URL:
http://localhost:8080/jw/web/json/monitoring/process/copy/116_hr_expense_process1/hr_expense:1:process1
- Sample Result
web/json/monitoring/process/variable/(*:processId)/(*:variable)
Sets a value to workflow variable of a process instance.
- User Role: Admin
- Method: HTTP POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodprocessId
- process instance idvariable
- workflow variable namevalue
- workflow variable value
- Sample URL:
http://localhost:8080/jw/web/json/monitoring/process/variable/224_crm_process1/status?value=test
- Sample Result:
web/json/monitoring/process/view/(*:processId)
Retrieves information of a process instance.
- User Role: Admin
- 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/monitoring/process/view/224_crm_process1
- Sample Result:
web/json/monitoring/running/activity/complete
Completes a running activity.
- User Role: Admin
- Method: HTTP POST
- Parameters:
processDefId
- process definition id (replace "#" to ":")processId
- process instance idactivityId
- activity instance id
- Sample URL:
http://localhost:8080/jw/web/json/monitoring/running/activity/complete?processDefId=crm:3:process1&processId=224_crm_process1&activityId=885_224_crm_process1_approve_proposal
web/json/monitoring/running/activity/reassign
Reassigns a user to replace another user assigned to an assignment.
- User Role: Admin
- Method: HTTP POST
- Parameters:
processDefId
- process definition id (replace "#" to ":")processId
- process instance idactivityId
- activity instance idusername
- username that will replace the assigned userreplaceUser
- username of an existing assignee of the assignment
- Sample URL:
http://localhost:8080/jw/web/json/monitoring/running/activity/reassign?processDefId=crm:3:process1&processId=227_crm_process1&activityId=890_227_crm_process1_approve_proposal&username=cat&replaceUser=admin
web/json/monitoring/running/process/list
Retrieves a list of all running process instances.
- User Role: Admin
- Method: HTTP GET/POST
- Parameters:
callback
- (Optional) a function (in JavaScript) to call back after invoking this methodpackageId
- (Optional) app/package idprocessId
- (Optional) process instance idprocessName
- (Optional) process nameversion
- (Optional) process versionsort
- (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/monitoring/running/process/list?packageId=crm&rows=3
- Sample Result:
web/json/monitoring/user/reevaluate
Reevaluates all assignments of a user.
- User Role: Admin
- Method: HTTP POST
- Parameters:
username
- user to be reevaluate
- Sample URL:
http://localhost:8080/jw/web/json/monitoring/user/reevaluate?username=cat