You are here

getVariables

public Map<String, Property> getVariables() - returns a map of all available variables for the task.
Attention: This method was introduced with SDK version 1.3.

Parameters

None

Returns

Returns a Map<String, Property> map representing all variables.

Example


  // get variables
  if (!task.hasAllVariables()){
   
   workflowService.refresh(task);
   
  }
  
  Map <String, Property> variables = new HashMap<String, Property>(); 
  variables = task.getVariables();
  for (Map.Entry<String, Property> v : variables.entrySet()){
     Log.d(TAG, "map key: "+v.getKey());                           		
  }

      

Would result in output such as the following: