Used to indicate that the specified user has completed the assigned task and supply any updated workflow variables.
The Complete Task Action field type makes use of this function.
Parameters
Name | Type | Description |
---|---|---|
objectType | String | If supplied, will be compared with the type of any stored object to verify that they are the same |
taskId | String | ID of the task being completed |
userId | String | Name of the user completing the task; must match the current task assignee |
proxyUserId | String | Name of the logged in user if assisting another user via the Assited Service template (userId holds the name of the user being proxied) |
variables | Object | Updated workflow variables, may be null or empty |
fileReferences | Object | Map of field names to file reference objects. The supplied files will be referenced by the workflow and remain available until it completes. For an example see the startProcess function |
replaceExistingFiles | boolean | True by default. If this property is true, files named in the "fileReferences" parameter replace any existing files provided under that name which will no longer be referenced by the workflow. Otherwise the new file and and any previous files referenced under that name will be kept |
historyRecording | Object | See Recording History |
userId and taskId are required |
Last modified on March 10, 2020