AEM 6.5 : How to add customization after selecting particular workflow to run ?

Avatar

Avatar
Validate 1
Level 1
malaya_ranjand4
Level 1

Likes

2 likes

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 1
malaya_ranjand4
Level 1

Likes

2 likes

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 1
View profile
malaya_ranjand4
Level 1

18-06-2020

Hi All,

 

Got one requirement to add below customization if we select a particular custom workflow (e.g. Test workflow) for page as well as assets.

  • One path brower to select a path 
  • One text field

malaya_ranjand4_0-1592464714239.png

How can we add customization to get those two field after selecting a particular workflow from dropdown.

 

Can you please help me to achieve this functionality.

 

@kautuk_sahni @Arun_Patidar @Vish_dhaliwal @Andrew_Khoury @Briankasingli 

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
Level 6
antoniom5495929
Level 6

Likes

91 likes

Total Posts

212 posts

Correct reply

39 solutions
Top badges earned
Establish
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Establish
Level 6
antoniom5495929
Level 6

Likes

91 likes

Total Posts

212 posts

Correct reply

39 solutions
Top badges earned
Establish
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
antoniom5495929
Level 6

19-06-2020

Hi @malaya_ranjand4 ,

I think that your requirement can be achieved in a very good way by using the Dialog Participant Steps.

 

In order to satisfy your requirement you need to:

1. Create a dialog which contains the element that you want to propose when the editor run the workflow

2. Open your workflow model

3. Add a Dialog Participant Step and configure it with the dialog created in 1.

4. Add the new data in order to be forwarded to the other steps

 

You can find in [0] an example on how to do this.

 

[0] http://experience-aem.blogspot.com/2019/04/aem-65-content-copy-using-workflow-dialog-participant-ste...

 

Thanks,

Antonio

Answers (4)

Answers (4)

Avatar

Avatar
Ignite 1
Level 3
khamat_bn
Level 3

Likes

31 likes

Total Posts

55 posts

Correct reply

12 solutions
Top badges earned
Ignite 1
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Ignite 1
Level 3
khamat_bn
Level 3

Likes

31 likes

Total Posts

55 posts

Correct reply

12 solutions
Top badges earned
Ignite 1
Give Back 3
Give Back
Boost 5
Boost 3
View profile
khamat_bn
Level 3

20-06-2020

Hi @malaya_ranjand4 ,

 

Can you brief your requirement that why you want to add these fields,

Instead of adding these field, you can achieve it by reading properties in the workflow implementation class.

Your requirement will lead to affect the structure of the workflow dialog. 

You can also see Dialog participant step here https://docs.adobe.com/content/help/en/experience-manager-65/developing/extending-aem/extending-work...

 

Happy Coding 🙂

~BK

Avatar

Avatar
Give Back 5
Employee
sunjot16
Employee

Likes

106 likes

Total Posts

164 posts

Correct reply

50 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile

Avatar
Give Back 5
Employee
sunjot16
Employee

Likes

106 likes

Total Posts

164 posts

Correct reply

50 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile
sunjot16
Employee

18-06-2020

You can try using variables in your workflow, and then add a Process Step to your workflow to use that information.

The following docs may be helpful:

https://docs.adobe.com/content/help/en/experience-manager-65/developing/extending-aem/extending-work...

 

https://docs.adobe.com/content/help/en/experience-manager-65/developing/extending-aem/extending-work...

 

If the values are selected just on front-end, you can create a JS code that reads the values from those selected fields and send it to your backend code(using xhr or FetchAPI) to set some variables, that then can be used in your Workflow.

 

 

I hope these help !!

 

Avatar

Avatar
Give Back 10
MVP
Varun_Shakya
MVP

Likes

124 likes

Total Posts

97 posts

Correct reply

24 solutions
Top badges earned
Give Back 10
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Give Back 10
MVP
Varun_Shakya
MVP

Likes

124 likes

Total Posts

97 posts

Correct reply

24 solutions
Top badges earned
Give Back 10
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile
Varun_Shakya
MVP

18-06-2020

This link will be helpful

 

https://docs.adobe.com/content/help/en/experience-manager-64/developing/extending-aem/customizing-co...

 

You can overlay this node

/libs/cq/gui/content/common/startbulkworkflows

and then make the changes according to the requirement.  write a script to hide/show the fields according to the selection.

 

 

Avatar

Avatar
Validate 1
Level 1
malaya_ranjand4
Level 1

Likes

2 likes

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 1
View profile

Avatar
Validate 1
Level 1
malaya_ranjand4
Level 1

Likes

2 likes

Total Posts

12 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 1
Give Back
Boost 1
View profile
malaya_ranjand4
Level 1

25-06-2020

By overlaying the /libs/cq/gui/content/common/startbulkworkflows I have achieved the require functionality.

Thank you all.