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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

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

AntonBagryanov
12-Amethyst

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.

2 REPLIES 2

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);

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

Announcements


Top Tags