Skip to main content
1-Visitor
May 19, 2017
Question

How to get the timestamp for Set state on an object through API?

  • May 19, 2017
  • 1 reply
  • 3415 views

Lifecycle history table displays the action, actor name, date in Routing history tab.
Action and actor name are obtained through the following code.

QueryResult LCHistoryList =LifeCycleHelper.service.getHistory((LifeCycleManaged) epm);

if(LCHistoryList.hasMoreElements())

  {

   LifeCycleHistory lct=(LifeCycleHistory)LCHistoryList.nextElement();

   String action=lct.getAction();

   String actorName=lct.getActorName();

   Timestamp createDate =lct.getCreateTimeStamp();

  }

  

Timestamp object createDate fetched is always null.

Can you please help me how to fetch the timestamp from LifeCycleHistory object?

1 reply

12-Amethyst
May 26, 2017

Does this work for you?

Timestamp ts = lct.getPersistInfo().getCreateStamp();

1-Visitor
May 31, 2017

Hi Jamie,

This method lct.getCreateTimeStamp(); is working for me now. Actually, the problem is with invoking method server.