refresh(...) - these methods return the latest (and
complete) variables for the specified process or task.
Attention: This method was introduced in SDK version 1.3.
refresh
Process refresh(Process process) - returns the latest (and
complete) variables for the specified process.
Attention: This method was introduced in SDK version 1.3.
Parameters
- Process process
- The process object to refresh.
Returns
Returns the updated Process object.
Exception
Throws an SkyVaultServiceException if the operation cannot be completed.
Example
// refresh meta data if required if (!process.hasAllVariables()) { Log.d(TAG, "Refreshing process..."); workflowService.refresh(process); }
refresh
Task refresh(Task task) - returns the latest (and
complete) variables for the specified task.
Attention: This method was introduced in SDK version 1.3.
Parameters
- Task task
- The task object to refresh.
Returns
Returns the updated Task object.
Exception
Throws an SkyVaultServiceException if the operation cannot be completed.
Example
// refresh meta data if required if (!task.hasAllVariables()) { Log.d(TAG, "Refreshing task..."); workflowService.refresh(task); }