...
completeAssignment(baseUrl, activityId, redirect)
Description
Chinese |
---|
描述 |
Completes an assignment with a specific process instance id & activity instance id
Chinese |
---|
用特定流程实例ID和活动实例ID完成分配 |
Parameters
Chinese |
---|
参数 |
baseUrl - base URL of Joget Workflow, e.g., 'http://localhost/jw'
Chinese baseUrl - Joget Workflow的基本URL,例如 'http://localhost/jw'
activityId - activity instance id of the assignment to be completed
Chinese activityId - 要完成的分配的活动实例标识
redirect - a URL to redirect to after the assignment is completed (optional)
Chinese redirect - 分配完成后重定向到的URL(可选)
Sample code
Chinese |
---|
示例代码 |
Code Block | ||
---|---|---|
| ||
AssignmentManager.completeAssignment('http://localhost/jw', '1_1_activity', 'http://localhost/completed.jsp'); |
...
Sample code
Chinese |
---|
示例代码 |
Code Block | ||
---|---|---|
| ||
var callback = { success : function(response){ //response.username if(response.username != "roleAnonymous"){ console.log("Username is " + response.username); }else{ console.log("User is anonymous"); } } }; AssignmentManager.getCurrentUsername('http://localhost/jw', callback); |
...