You are here

getEndedAt

public GregorianCalendar getEndedAt() Returns the timestamp (in the session's locale) of when the process was completed, or null if not yet completed.
Attention: This method was introduced with SDK version 1.3.

Parameters

None

Returns

Returns a GregorianCalendar object representing the time a process was completed. The timestamp is returned in the format determined by the session locale. Note, null is returned if the process has not yet been completed.

Example


  // get processes
  List<Process> processes = workflowService.getProcesses();
  
  Log.d(TAG, "Processes...");
  for (Process process : processes){
    
    if (process.getEndedAt()!=null){
      Log.d(TAG, "endedAt: "+process.getEndedAt().getTime().toGMTString());
    }
    else{
      Log.d(TAG, "endedAt: not yet complete!");
    }
  
  } // end for each process

      

Would result in output such as the following:


endedAt: not yet complete!