Screen Flow in Pega
Screen Flow is used when we have to capture large amount of data. We can divide large content into smaller separate screen and we can integrate those separate screen into a Screen Flow.
Configuring Screen Flow is easy task. Lets see how to do that.
Creating Screen Flow:
There are two type of Flow
We can click in +Create select Process-> Flow to open a new instance rule.
In Apply to provide the class name in which we want to create the flow and in Label provide the Flow Name.
On Clicking the link "Remove additional configuration options" Below layout will display. There we have select "Standard template for screen flows" to create screen flow.
In Screen flow flow action will be in assignment not in connector, lets check that.
I clicked on the assignment(Perform Task) in the pop-up you can see the flow action name. So this flow is confirmed as screen flow :)
Added fresh 4 assignments . Lets add flow action in each assignment.
Added flow action in each assignment and saved the flow.
Normally after processing each assignment a commit operation will be performed . This will write multiple time to db when user switch between assignments while processing the flow.
There is a option to write to db only on completing the flow. That option will be there in start shape of the screen flow.
In the above Image you can see "Save on last Step". If you checked this the data will commit to db on last step. It is best practice to check "Allow errors" when checking "Save on last step".
Lets run the flow and view the UI of the screen flow.
Here is the screen flow that we expected.😊.
Lets change the Harness of screen Flow from TabbedScreenFlow to TreeNavigation7 and check the UI Difference.
Lets check its UI.
I learnt Screen Flow today. Hope you also understand about this. Thank you for reading :)