Invoke the workflow by http request | Community
Skip to main content
Level 2
January 19, 2023
Solved

Invoke the workflow by http request

  • January 19, 2023
  • 1 reply
  • 1374 views

Hello,

I would like to kindly ask you about my idea. So we are having our ERP when the new products are created. I want to integrate the process of article creation with our DAM (Assets). So I imagine it in the following steps.

1. Someone creates an article in ERP

2. ERP trigger a workflow in DAM (by HTTP request with SKU in the path to AEM)

3. Some groups in DAM (let's say Content Group) receive an email/push to fulfil the asset (it could be good to check if the asset with a specific SKU exists, if not - continue the workflow)

4. If the asset was uploaded, the workflow was finished. 

 

What do you think about that? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by malay_dube

Hi @pdabro ,

We have to create a custom launcher with proper event, where we need to configure the workflow path (the one which we want to invoke). Based on selected event launcher will get call and it internally call the workflow.

Please use below article for reference:
https://experienceleague.adobe.com/docs/experience-manager-64/administering/operations/workflows-starting.html?lang=en#:~:text=The%20Workflow%20Launcher%20monitors%20changes,already%20launched%20for%20specific%20nodes.

1 reply

Adobe Employee
January 19, 2023

Hi @pdabro ,
It's better to have the SKU path configured in properties (mandate if required).
We have the flexibility to create launcher to trigger workflow, try to leverage the OOTB feature.
Approach looks fine 🙂

pdabroAuthor
Level 2
January 19, 2023

Hello @malay_dube ! Thanks for your hint!

 

Please tell me 2 things : 

1. What do you mean by "SKU path configured in properties (mandate if required)"?

2. There is no default HTTP launcher in workflows? I have a cloud version and I never made any code changes. 

 

Sorry for the silly questions, I'm a newbie in AEM products, and it's really tricky to learn something on my own. Do you recommend some source of knowledge? I will try to make a OOTB feature on my own, but for now I don't even know how to start. 

 

thanks in advance!

malay_dubeAdobe EmployeeAccepted solution
Adobe Employee
January 19, 2023

Hi @pdabro ,

We have to create a custom launcher with proper event, where we need to configure the workflow path (the one which we want to invoke). Based on selected event launcher will get call and it internally call the workflow.

Please use below article for reference:
https://experienceleague.adobe.com/docs/experience-manager-64/administering/operations/workflows-starting.html?lang=en#:~:text=The%20Workflow%20Launcher%20monitors%20changes,already%20launched%20for%20specific%20nodes.