Expand my Community achievements bar.

SOLVED

Custom Participant Step and Workflow Branching

Avatar

Level 10

Hello,

Based on the requirement i have the workflow attached below.

Questions i have are:

1. At the step: Review (Custom participant step returning dynamic group name) as shown in the snapshot, could i avoid sending notifications to user's email ID(user or users belonging to the group), but still have task notification in AEM Inbox?

2. At the branching step, along with Approve, could i have a step "Cancel", which in turn does nothing but takes it back to previous step, i.e "Review" (above). Doing this i would still like to have the task notification generated above in user's AEM inbox pushing it to "Review " stage.

Please let me know.

Thanks,

Nicole

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi,

The dynamic participant step has an option in the dialog for sending an email or not - is this what you are looking for?

As for programatically jumping back in a workflow, as of CQ 5.6.0 there is a new workflow process step called the "goto step".  In this step you can select a step that you'd like to jump to, conditionally if a script returns true.  You can see the docs here [0].  Hopefully this helps.

Will

[0] https://dev.day.com/docs/en/cq/current/workflows/wf-ref.html#Goto Step

View solution in original post

7 Replies

Avatar

Correct answer by
Employee

Hi,

The dynamic participant step has an option in the dialog for sending an email or not - is this what you are looking for?

As for programatically jumping back in a workflow, as of CQ 5.6.0 there is a new workflow process step called the "goto step".  In this step you can select a step that you'd like to jump to, conditionally if a script returns true.  You can see the docs here [0].  Hopefully this helps.

Will

[0] https://dev.day.com/docs/en/cq/current/workflows/wf-ref.html#Goto Step

Avatar

Level 10

For your first question -- you want to avoid sending an email - but instead you want to send a task notification? This sounds like something you can customize using a custom step and the Workflow APIs. However - i have not personally coded this use case in a workflow. 

TO answer your 2nd question -- AEM does support stepping back in a workflow - see this topic:

http://dev.day.com/docs/en/cq/5-3/administering/working_with_workflows/workflow.html#Performing Step Back on a Participant step

I will also get the Eng team to look at this question too. 

Avatar

Level 10

Will McGauley wrote...

Hi,

The dynamic participant step has an option in the dialog for sending an email or not - is this what you are looking for?

As for programatically jumping back in a workflow, as of CQ 5.6.0 there is a new workflow process step called the "goto step".  In this step you can select a step that you'd like to jump to, conditionally if a script returns true.  You can see the docs here [0].  Hopefully this helps.

Will

[0] https://dev.day.com/docs/en/cq/current/workflows/wf-ref.html#Goto Step

 

 

Yes but since i have customized the participant step to pick up groups dynamically , hence i am wondering if programmatically there is a way to avoid sending notification. Since am no longer using OOTB dynamic participant step i wouldn't have the "notify" checkbox.

I tried adding "GOTO step" but when i add it in place of "Reject" step (Reject step shown in previously attached snapshot), or if i add it after the Reject Step, it doesn't give me the "Review step" as options in dropdown, but what i can see in dropdown is "Reject" if "Goto" step is next after Reject, infact i would like to see the Review step from where the branching has occurred.

Please let me know if i haven't explained clearly.

Thanks for help Will

Regards,

Nicole

Avatar

Level 10

Anyone with suggestions.

As per snapshot attached above ,would like to step back from Reject to Review Content Participant step, Is it possible?  If not, is it possible to have the reject step do nothing and still have the task in user's inbox in AEM instance, more like "Cancel"(do nothing, and retain task in AEM instance inbox)

Is it possible at participant step to programmatically disable task notifications/node transition email to user's private mail box still retaining task notification in AEM inbox?

Please let me know. Suggestions are welcome.

Regards,

Avatar

Level 10

smacdonald2008 wrote...

For your first question -- you want to avoid sending an email - but instead you want to send a task notification? This sounds like something you can customize using a custom step and the Workflow APIs. However - i have not personally coded this use case in a workflow. 

TO answer your 2nd question -- AEM does support stepping back in a workflow - see this topic:

http://dev.day.com/docs/en/cq/5-3/administering/working_with_workflows/workflow.html#Performing Step Back on a Participant step

I will also get the Eng team to look at this question too. 

 


Thank you Scott, I am hoping to find a solution where i could block the "task notification email" from being sent to the users from the custom dynamic participant step [Reviewer] the moment we land up in step 2 [Review]. Would be helpful if you could help me find a solution.

The subject of the email generated is Workflow notification: NodeTransition , The hostname and port comes from the configuration set in "Day CQ Workflow Email Notification Service" in felix console . The below email is generated for the users as part of node transition . If OOTB participant step is used, i see a way to block the notification unchecking the checkbox.

Also i hear from Sham "The user's inbox is not meant to be programmatically accessible. CQ does not provide a public API for accessing to inboxes". It would be heavy to follow the workaround mentioned.

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

 

Regarding question 2, Is there any alternative to achieve it? When i try to step back from Reject step, i see no path to Review.

Regards,

Nicole

Email as received with subject " Workflow notification: NodeTransition"

------------------------------------------------------------------------------------
 Time: Wed Oct 02 14:11:32 EDT 2013
 Step: Review
 User: XXX (XXX)
 Workflow: Email Workflow
 -------------------------------------------------------------------------------------

Page: http://localhost:4502/content/campaigns/geometrixx/scott-recommends.html

 -------------------------------------------------------------------------------------
 View the overview in your http://localhost:4502/inbox
 -------------------------------------------------------------------------------------
 This is an automatically generated message. Please do not reply.

Avatar

Level 1

I found this post while researching a similar issue.  I would like to create a workflow that has a Goto Step inside of an AND split.  The Goto step needs to target a step outside of the AND split but the step that I want to choose does not come up in the Goto step drop-down. Did you ever find a solution?

Similarly, if there were a "Terminate Workflow" step I think I could make use of it to a) kick off a sub-workflow and then b) terminate the parent workflow, thus exiting the AND split.  I'm thinking about raising a ticket for support, but I was curious if you found a solution.

Thanks!