Complete( ) methodWhen the work for a task has been completed, you can mark the task as complete. A task can be marked complete even if it is not in the active state.If the Task has an associated DataSlot array as a result of previously calling the GetDataSlots( ) method on the Task, Complete( ) sends the values for output and input/output dataslots to the SBM Server. On the server, the dataslot assignment occurs first; if it is successful, the task is marked as complete.
Return type:
Access:
Applies to:
Complete ( )
If the method succeeds, it returns TRUE and the process continues. While the task is removed from the user's assigned list on the SBM Server when it is completed, any local list of assigned tasks must be refreshed to remove the task.If the method fails—for example, if the task is not assigned or if there is an error updating one or more of the dataslots—it raises a BPM error.
© 2012 Progress Software Corporation and/or its subsidiaries or affiliates. |