Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
How to get the name of person rejecting the group task in email notification URL Task
sbhalla
We have a group task where user either approves or rejects the task.
If any member of group task rejects the task, control goes to a URL Task to send email notification to author about rejection.
How to get the Name of the person rejecting the task in email notification to author?
Find more posts tagged with
Comments
Adam Stoller
The owner of the grouptask should be available to the program used for sending the email notification. This would be the owner's userid.
If you want their actual name - that's more a question of how the program was coded - (Perl, Java / CSSDK) and perhaps the OS on which the program is running.
However, if you're using OOTB code - it
should
retrieve that information for you. Are you not seeing this behavior? If not, please describe, in detail, what you are seeing.
You might take a look at
this
before responding...
sbhalla
Hi,
I have added screenshot of workflow.
There are three levels of review (Review Group 1, Review Group2 , Review Group3).
If any of the reviewer rejects the task, email notification will be sent to user.
Requirement is that name of the reviewer should be sent in the email notification to the user when rejection happens.
Thanks,
Sonal
Rick Poulin
You could get that information from the job's event history. So in the CSSDK, CSWorkflow#getEvents() would give you the same information that you see when you go to a job instance and go Change Properties > Advanced. Go backwards in the array (starting from the end) until you find the transition that activated the current task and the getUser() on that event will give you the info you seek. (and if not, go back a little bit more until you find the first grouptask and then getOwner() on that).