Implementing dialog participant step




I have implemented a workflow.

I have used an OR SPLIT having 2 branches.

in branch 2 i am using dialog participant step.

When ever the workflow takes the second branch ... i want to show a aem prompt saying "Exception occured " and will end the workflow.

For this purpose ... I took an example dialog that exists under apps/geometrics-outdoors/<component>/dialog.

I created a clientlib and in the js file i wrote a logic for CQ alert prompt .

My idea is , When the dialog participant step triggers, it will execute the alert prompt.

But my dialog participant step is not triggering and there is no message in error log too.

The workflow is in running state forever.

How to handle this issue.

Does the dialog needs to be present under /etc/workflow/dialogs as there is an helpx doc.