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

How to get user's comments in the workflow activity by InfoEngine task?

Highlighted

How to get user's comments in the workflow activity by InfoEngine task?

Hi to all!

May be somebody have an example of task, that return the user's comments in the workflow activity?

Or which object cantain the comments attribute?

Thanks.

Tags (2)
2 REPLIES 2

Re: How to get user's comments in the workflow activity by InfoEngine task?

If you are open to use Java APIs, you may want to try something like below to get Routing History,


wt.fc.collections.WTArrayList auditCol = (wt.fc.collections.WTArrayList) wt.workflow.engine.WfEngineHelper.service.getVotingEvents((wt.workflow.engine.WfProcess)self.getObject(), null, null, null);
System.out.println("***Transition Expression: Audit = " + auditCol.toString());
java.util.Iterator auditEvents = auditCol.persistableIterator();
comments = "";
while( auditEvents.hasNext())
{
wt.workflow.engine.WfVotingEventAudit audit = (wt.workflow.engine.WfVotingEventAudit)auditEvents.next();
System.out.println("***Transition Expression: User vote = " + audit.getEventList());
System.out.println("***Transition Expression: User comment = " + audit.getUserComment());
comments += audit.getUserComment();
System.out.println("***Transition Expression: Complete Time = " + audit.getPersistInfo().getCreateStamp());
}
System.out.println("comments = " + comments);

Re: How to get user's comments in the workflow activity by InfoEngine task?

Thanks, Yogesh! It's not actually what I want, but I'll use it to solve my problem.