Displaying Modal Dialog conditionally doesn't work neither with 'Launch-Local Action' nor with the activity(ProcessAction).
We have a requirement to display modal dialog conditionally, to display we have configured 'Launch-Local Action' with the when rule(when rule checks only for flag) and before launch-local action we are calling an activity wherein we are setting the flag. With this configuration it is not working, so we thought to go with the activity approach, so we are calling "ProcessAction" OOTB activity with the required parameters but that is also not working.
Please let me know if anyone has tried calling "ProcessAction" activity?
Below is the screenshot of configuration.
Thanks in advance!!
***Edited by Moderator Marissa to update categories***
Today only, I was facing a similar situation of restricting the flow action to get executed conditionally.
You can configure it in multiple ways,
As far my understanding you're launching modal dialog from click of a button,
Solution 1:- How about restricting visibility of this button, but challenge here setting the value of flag as you're doing it through an activity before.
Solution 2:- Configure an event "Run Activity" before "Local Action" event in your action set from where you intend to launch modal dialog. In the "Run Activity", configure your activity but please verify the value of your flag in clipboard whether it's available or not(You can verify by just having "Run Activity" event first time and then configure both events i.e "Launch Action" and "Run Activity").
The only problem, you may face is the context of your flag property, please check it whether all are under the same context or not, as "Run Activity" event run in present context while "Launch Action" executes in the context mentioned in "Using Page" field, if I am not wrong
Your local action for sure is referring to a flow action, you can restrict the flow action availability by adding "When" condition having flag value under "Security" tab of the flow action rule.
But make sure, you have the flag value populated before the flow action execution.
Hope it helps in implementing your requirement, kindly notify if it does by marking this post as answered/helpful for tracking purpose.
I have tried calling the flowaction through processaction activity by passing the parameters as per your screenshots and when i changed the "streamtype" value to "Rule-HTML-Section" the flow action is executed and it is working fine.Can you please update the streamtype parameter value to "Rule-HTML-Section" and try once.
If the flag can be set earlier , then the visiblity condition can be added to the button from where you are trying to launch the localAction else on click of the button only sometimes it will open the modal dialog(according to the usecase) and sometimes not.