Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

Can we use one workflow for multiple use case?

Avatar

Level 5
Hi All, I have a use case where one workflow is used to activate a list of pages . This workflow is getting triggered by a servlet api. Now we have another use case where a scheduler is running to modify some pages and those pages need to be activated. Can we use the same workflow for both use case to activate pages? Thanks
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @SwetaB,

 

Sure you can use that way. Workflow technically is a set of tasks configured together and executed together instead of manually doing it everytime.

 

Just make sure that, both workflow running time is not overlapped or you implement enough checks to see if page is already under workflow and wait till it gets published etc..

 

Are you using any approval mechanism in these workflow? If not pls evaluate to use Sling Jobs as they guarantee the execution.

View solution in original post

4 Replies

Avatar

Level 4

Yes, one AEM workflow can be designed and reused for multiple use casesif those use cases share similar process steps or logic. This is done using dynamic workflow models with conditional steps, process arguments, and configuration-driven behavior.

You design a generic workflow model and use:

  • Process step arguments to pass different logic

  • ECMA scripts or custom Java code that read metadata

  • Conditionally executed steps using workflow metadata 

Avatar

Level 5

Thank you @sanketd27011989 

Avatar

Correct answer by
Community Advisor

Hi @SwetaB,

 

Sure you can use that way. Workflow technically is a set of tasks configured together and executed together instead of manually doing it everytime.

 

Just make sure that, both workflow running time is not overlapped or you implement enough checks to see if page is already under workflow and wait till it gets published etc..

 

Are you using any approval mechanism in these workflow? If not pls evaluate to use Sling Jobs as they guarantee the execution.

Avatar

Level 5

Thank you @Shashi_Mulugu