Toggle menu

completeTask

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 

NameTypeDescription
objectTypeStringIf supplied, will be compared with the type of any stored object to verify that they are the same
taskIdStringID of the task being completed
userIdStringName of the user completing the task; must match the current task assignee
proxyUserIdStringName of the logged in user if assisting another user via the Assited Service template (userId holds the name of the user being proxied)
variablesObjectUpdated workflow variables, may be null or empty
fileReferencesObjectMap 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
replaceExistingFilesbooleanTrue 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
historyRecordingObjectSee Recording History
userId and taskId are required
Last modified on March 10, 2020

Share this page

Facebook icon Twitter icon email icon

Print

print icon