Add configurable DSS in order to block the execution of flows in DraftMode from QA env
Last week I posted a question in the community forum to understand if there is a clean way to block the execution of the flows in Draft Mode not only in production, but also in other lower environments.
The conclusion is that there is not a simple way as this control is hardcoded in the function:
ID: FlowFUA • flowMethodBody RS: Pega-ProcessEngine:08-06-01
at line 343 where there is the following condition:
if (!(flowDefinitionPage.getProperty(".pyDraftModeON").toBoolean() == true && (!hasProcessData || tools.getProperty("pxProcess.pzProductionLevel").getStringValue().equals("5"))))
I think it would be very useful to have a configurable parameter here in place of the hardcoded value 5 (which corresponds to the production level). In this way we will be able to intercept wrong flow configurations also in other environment different from production.
What do you think?