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 transitions?

ptc-4896214
7-Bedrock

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

Hi!

I need to check if the comment field is filled. I have this code, but it can only be used outside the transitions.

wt.fc.collections.WTCollection auditCol = wt.workflow.engine.WfEngineHelper.service.getVotingEvents((wt.workflow.engine.WfProcess)self.getObject(), null, null, null);

java.util.Iterator auditEvents = auditCol.persistableIterator();

comments= "";

while( auditEvents.hasNext()){

wt.workflow.engine.WfVotingEventAudit audit = (wt.workflow.engine.WfVotingEventAudit)auditEvents.next();

comentario = audit.getUserComment();

break;

}

if(comments.length() > 0){

throw new wt.util.WTException(new Throwable(new String("Você selecionou a opção Sem Comentário. O campo COMMENTS deve estar vazio!")));

}

Thanks!

0 REPLIES 0
Announcements


Top Tags