public String getName() returns the name of the
task.
Attention: This method was introduced with SDK version 1.3.
Parameters
None
Returns
Returns a String representing the name of the task.
Example
// get all tasks Log.d(TAG, "Tasks..."); List<Task> tasks = workflowService.getTasks(); // for each task for (Task task : tasks){ Log.d(TAG, "identifier: "+task.getIdentifier()); Log.d(TAG, "processIdentifier: "+task.getProcessIdentifier()); Log.d(TAG, "processDefinitionIdentifier: "+task.getProcessDefinitionIdentifier()); Log.d(TAG, "key: "+task.getKey()); Log.d(TAG, "startedAt: "+task.getStartedAt().getTime().toGMTString()); if (task.getEndedAt()!=null){ Log.d(TAG, "endedAt: "+task.getEndedAt().getTime().toGMTString()); } else{ Log.d(TAG, "endedAt: task not yet complete!"); } Log.d(TAG, "dueAt: "+task.getDueAt().getTime().toGMTString()); Log.d(TAG, "description: "+task.getDescription()); Log.d(TAG, "priority: "+task.getPriority()); Log.d(TAG, "assigneeIdentifier: "+task.getAssigneeIdentifier()); Log.d(TAG, "name: "+task.getName()); Log.d(TAG, "hasAllVariables: "+task.hasAllVariables()); } // end for each task
Would result in output such as the following:
Tasks... identifier: 74 processIdentifier: 30 processDefinitionIdentifier: activitiAdhoc:1:4 key: wf:adhocTask startedAt: 30 Oct 2013 09:32:26 GMT endedAt: task not yet complete! dueAt: 25 Dec 2013 00:00:00 GMT description: Read over this and write a new editor. priority: 1 assigneeIdentifier: admin name: Adhoc Task hasAllVariables: false