Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hi,
I need to check whether the APPROVERS & REVIEWRS are selected before a promotion request is created. I am trying to write an event listener for this. I tried the PRE_STORE, POST_STORE, INSERT, PRE_INSERT events on promotionNotice object. But however, I am not able to get the members selected in the listener code. It is always retuning empty lists. Is there any other specific events on Promotion objects to listen to ?
Instead of event listener, have you thought about adding conditional robot (in promotion workflow) that checks for selected participant(s) for APPROVERS & REVIEWRS roles? Following post would help.
http://portal.ptcuser.org/p/fo/st/post=119216&anc=p119216#p119216
Hi,
You can try with validators.
Use beforeVK call @create promotion action.xml
MKR
Hello Praseeth,
we have simillar requirement, can you please provide info how did you achieve this, is it the code goes in postprocess delagte class.
any input is highly appreciated.
Thanks
Sughosh