Call a Custom workflow on hit of activate button

Avatar

Avatar
Level 1
ranjitha29
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile

Avatar
Level 1
ranjitha29
Level 1

Likes

0 likes

Total Posts

1 post

Correct reply

0 solutions
View profile
ranjitha29
Level 1

25-08-2020

Hi all,

 

I have a query, on click of activate button, custom workflow should start. On page activation custom workflow should start. How can this be achieved?

 

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 3
Level 4
SundeepKatepally
Level 4

Likes

76 likes

Total Posts

76 posts

Correct reply

21 solutions
Top badges earned
Give Back 3
Boost 10
Boost 25
Boost 50
Affirm 10
View profile

Avatar
Give Back 3
Level 4
SundeepKatepally
Level 4

Likes

76 likes

Total Posts

76 posts

Correct reply

21 solutions
Top badges earned
Give Back 3
Boost 10
Boost 25
Boost 50
Affirm 10
View profile
SundeepKatepally
Level 4

25-08-2020

There are multiple ways

 

1) option1 : If you dont want acticate option , simply handle it via ACL by removing replicate access.

2) Option2: If you want the button to be shown, then overlay the libs/* node corresponding to libs and then write custom js to handle this. Custom js can directly call a servlet , which in-turn can initiate a model or directly invoke workflow (i am not sure whether this option will work or not.)

Answers (5)

Answers (5)

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

25-08-2020

Avatar

Avatar
Establish
MVP
Ravi_Pampana
MVP

Likes

197 likes

Total Posts

243 posts

Correct reply

75 solutions
Top badges earned
Establish
Contributor
Shape 1
Ignite 5
Ignite 3
View profile

Avatar
Establish
MVP
Ravi_Pampana
MVP

Likes

197 likes

Total Posts

243 posts

Correct reply

75 solutions
Top badges earned
Establish
Contributor
Shape 1
Ignite 5
Ignite 3
View profile
Ravi_Pampana
MVP

25-08-2020

Hi

 

I think you can add page activation listener and call the required logic to trigger in the listener.

 

https://helpx.adobe.com/uk/experience-manager/kb/ReplicationListener.html

Avatar

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

645 likes

Total Posts

606 posts

Correct reply

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

Avatar
Establish
MVP
BrianKasingli
MVP

Likes

645 likes

Total Posts

606 posts

Correct reply

239 solutions
Top badges earned
Establish
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
BrianKasingli
MVP

25-08-2020

@ranjitha29,

An additional non-hacky solution from the all of the other answers listed for this question is to edit ACL (group users); remove the "replicate" permission, which will remove the publish button from the UI. Next, give the "specific workflow" allow permission, so users can choose the workflow when they click on the +create button.

When the ACLs are configured properly, authors will be forced to run the workflow whenever they are trying to publish a page. 

BrianKasingli_0-1598390428049.png

 

Avatar

Avatar
Boost 250
MVP
Nikhil-Kumar
MVP

Likes

251 likes

Total Posts

262 posts

Correct reply

38 solutions
Top badges earned
Boost 250
Validate 1
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Boost 250
MVP
Nikhil-Kumar
MVP

Likes

251 likes

Total Posts

262 posts

Correct reply

38 solutions
Top badges earned
Boost 250
Validate 1
Ignite 3
Ignite 1
Give Back 5
View profile
Nikhil-Kumar
MVP

25-08-2020

@ranjitha29 

I assume you are able to select the custom workflow that you have created while activating the workflow. Is so simply activating a page won’t trigger your custom workflow. You need to add your custom workflow as part of activation trigger by going to properties. 


http://scottsdigitalcommunity.blogspot.ca/2013/09/creating-workflows-for-adobe-experience

 

You can also try using event listener while activation of page.

https://helpx.adobe.com/in/experience-manager/kb/ReplicationListener.html

 

 

Avatar

Avatar
Give Back 5
Employee
Andrew_Khoury
Employee

Likes

75 likes

Total Posts

93 posts

Correct reply

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

Avatar
Give Back 5
Employee
Andrew_Khoury
Employee

Likes

75 likes

Total Posts

93 posts

Correct reply

33 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile
Andrew_Khoury
Employee

25-08-2020

@ranjitha29 "Request for Activation" workflow model is automatically triggered if the user clicking activate doesn't have replication privileges under the path.

 

See here as well:

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-6-1-request-for-activa...