cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

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

snandiwada
4-Participant

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

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?

2 REPLIES 2

Does this work for you?

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

snandiwada
4-Participant
(To:jmomber)

Hi Jamie,

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

Top Tags