We are using a screen flow for one part of our application. Primarily we want the TreeNavigation structure but don't want to use the TreeNavigation7 harness due to the fact that we have a lot of customizations done to our Perform harness.
What we want to do is use the Perform harness as start harness of our screen flow, and have the tree navigation conditionally added into that harness (by adding the TreeNavigation7 section in the side list of the pyCaseMainInner). That way, we can use the same harness throughout the application (for perform views) but only show the tree navigating part when we're currently in a screen flow.
I've tried using the pzIsScreenFlow, the pyIsPerformScreenFlow, I've even tried modifying them and creating my own when rules to validate this since we don't want to use the default harnesses for screenflows but with no success. All of the rules I can find regarding this seems to be adjusted to Pega 7 and earlier, and not executable in Pega 8.
In short terms - in Pega 8, is there a way to validate in runtime if we're currently in a screenflow (that will be executable from pyCaseMainInner)?
Or, is it possible to implement the tree navigation part ONLY when in a screenflow, without using the TreeNavigation7 harness?
***Edited by Moderator Marissa to update Platform Capability tags****
Yes, that is correct and that is what I've done. I have set the start harness to Perform, but I want to specify in the Perform harness when to show the TreeNavigation section and when not to.
The start harness of my screenflow is changed to Perform
In the pyCaseMainInner used in the Perform harness I've added the section TreeNavigation7 in the right menu
If I have the visibility condition of that section to Always I can see and use the tree navigation. But then it's always visible when in a Perform harness and I want to have some sort of when rule or expression on when it should be visible.
So, in Pega 8, is there a way to know in runtime if we're currently in a screenflow? Or is there another way to show the TreeNavigation7 section (inside the perform harness), ONLY when in a screenflow?