1 person found this helpful
Rejections do not trigger the exit event.
An exit event script is evaluated when a revision has completed the step's approval requirements and the step's extra exit conditions are met.http://docs.oracle.com/cd/E21043_01/doc.1111/e10978/c05_workflows.htm#CSMRC645
The answer is to put your email code in the entry event of the step that the workflow rejects back to.
Here is a good article about workflow rejection in WebCenter Content (UCM):https://blogs.oracle.com/kyle/entry/dealing_with_rejection_made_ea
I tried putting the script in the Entry event of the workflow step ,but still same observation in the logs :
resourceloader/7 08.01 12:57:17.353 IdcServer-35197 not loading page REDIRECT_TEMPLATE because it is up to date with timestamp 1324323808000 >mail/6 08.01 12:57:17.355 send email queue background mail thread starting >mail/6 08.01 12:57:17.355 send email queue Background mail thread active -- 1 packages remain >resourceloader/7 08.01 12:57:17.356 send email queue not loading page WF_REJECT_MAIL because it is up to date with timestamp 1355857834000 –
I tried creating another workflow with 2 steps:1st step to notify the docAuthor in case of rejection else move to next step.In the next step ,I am handling the approval part and if the content item is rejected ,i'm moving it back to the notify step.All the script in both steps is in Entry event ,but still the same issue email template is not getting called.
This is the output in the logs:
>resourceloader/7 08.02 06:46:54.437 IdcServer-2236 not loading page REDIRECT_TEMPLATE because it is up to date with timestamp 1324323808000
>resourceloader/7 08.02 06:46:54.438 IdcServer-2236 Checked resources files and 0 out of 110 have changed and it required 0 milliseconds to do the check
>mail/6 08.02 06:46:54.439 send email queue background mail thread starting
>mail/6 08.02 06:46:54.439 send email queue Background mail thread active -- 1 packages remain
>resourceloader/7 08.02 06:46:54.439 send email queue not loading page WF_REJECT_MAIL because it is up to date with timestamp 1355857834000
>resourceloader/7 08.02 06:46:54.440 send email queue Skipping resource file check because it is too soon since the last one
1 person found this helpful
The step that triggers the rejection email need to be an edit/review step, not just a review step.
If i make it a review/edit step ,the content item needs approval twice i.e. its again in review status after rejection, i need to chnage the status of the content to edit as i need to process the content after its in edit status.
that's ok, you can tell the first step to send the rejection email and skip though to the next step.
I tired that but its sending 2 rejection emails one OOTB email and one custom email even after using :<$wfSet("wfJumpEntryNotifyOff", "1")$> in the first step as well as second step.
Can anyone please guide me what is the correct way of getting this working????
This is not yet resolved.Can anyone provide any inputs.
I think you've got all the info you need to resolve your issue. There's been another thread on a similar topic: Notifications Issue in Workflow
(see also the referenced links)
Also, where exactly are you stuck?
I followed the following sequence of steps :
- Created a criteria workflow .
- Added following steps : -Reject Notification step(Edit/reveiw Step)-- added the condition -if wfAction like reject --notify the author with the custom template else move to next step
-Approval step-(Edit/reveiw Step)-- in this reviewer is notified for the approval.
Now I'm stuck in --when the reviewer rejects the content both custom and OOTB mails are being sent though I have used <$wfSet("wfJumpEntryNotifyOff", "1")$> in each step.
Now I'm not able to figure out what exactly needs to be done to suppress the OOTB notification.