updateVariables - update the variables for the task or
process.
Attention: These methods were introduced in 1.4.
updateVariables
public Task updateVariables(Task task, Map<String,
Serializable> variables) - update the variables for a given process. If the
variable doesn't exist yet, it will be created.
Attention: This method was introduced in SDK version 1.4.
Parameters
- Task task
- The task the variables for which will be updated.
- Map<String, Serializable> variables
- The variables to be udpated.
Returns
Returns the updated Task object.
Exception
Throws an SkyVaultServiceException if the operation cannot be completed.
Example
// Prepare Variable variables.clear(); variables.put(WorkflowModel.PROP_COMMENT, COMMENT_1); // UPDATE TASK VARIABLES Task taskUpdated = workflowService.updateVariables(taskRefreshed, variables);
updateVariables
public Process updateVariables(Process process, Map<String,
Serializable> variables) - update the variables for a given process. If the
variable doesn't exist yet, it will be created.
Attention: This method was introduced in SDK version 1.4.
Parameters
- Process process
- The process the variables for which will be updated.
- Map<String, Serializable> variables
- The variables to be udpated.
Returns
Returns the updated Process object.
Exception
Throws an SkyVaultServiceException if the operation cannot be completed.