I have a requirement that when a Flow Action is started I need to throw a message to the user if a mutually exclusive Flow Action is already running. The mutually exclusive list of Flow Action is changeable by the end user.
To meet the requirement I’m thinking to built a declare rule that can run and be invoked whenever a flow action is started by the end user. Is there any way I can achieve this objective in pega.
***Updated by moderator: Lochan to add Categories***
Sounds like an interesting problem, but I am having a hard time understanding what you mean by "if a flow action is running". What you mean by this will be crucial to finding a solution. A flow action is used to present a UI and apply pre actions, data validation and post actions to the data in the section it displays, saying it is running has no technical meaning. When a flow action is about to be displayed it will run any pre-actions, but once it is displayed to the user they could just either switch to a different flow action or cancel out. The server has no way to know if you are still looking at the form and intend to submit it or if you have abandoned it. Once you submit the form validation is done and if it passes validation post actions are run. The time between it being shown and being submitted (if it ever is) is what I assume you mean by running, the problem is the end user can abandon it and never submit, so maybe you would need a time out period?
Hopefully this can help you clarify what you need to do, if you post a clarification I'll see if I can help more.