STWProcess Stack
The ProcessStack is a class that holds all data and information about a specific process. Also this Stack helps developer to launch all operations offered by the SmartMS SDK and register on all events related to this process.
Properties
The ProcessForm contains all information (Data & metaData) related to the process form (Sections, widgets, data, AutoRouting rules ..)
Functions
Cancels the current process.
Saves and completes the current process to the given recipients.
Creates a new draft copy of the current process. The copy will contain all values of the original process except signatures.
Gets the history of the process. The history contains: 1-All the process versions 2-Called processes started by current process 3-All escalation done
Gets the list of participants in the given processes.
Loads the process history for the given version. PS: It is recommended to save process before calling this methode if the process is currently in DisplayMode.EDIT mode, To not lose data entered by user.
Loads last data entered in a completed process using same template and same data entered in the given widget.
Marks the current process as read. This operation will be synchronized with other client Apps.
Requests to release the control on the current process.
Resets data in all widgets
Saves the process locally and synchronises new values with other clients like web App connected to the same account.
Saves the given ProcessOptions locally. PS: This operation is allowed only at process initialization step (version =0)
Stops the planed repetition of current process
Saves and Submits the current process to the given recipients.
Subscribes to the specific eventTypes, in the lifecycle of lifecycleOwner.
Requests to take the lead on the current process.