Skip to main content

Veritran Docs

Invoke a Screens Flow

Invoking a screen-type interface allows you to use the screens flows of a module in the screens of a parent app or module. Screens flows are represented by interfaces, and are invoked from the screens editor.

To be able to invoke a screens flow from the screens editor, previously create the interface that represents it and link the module to the parent app or module. The instructions below set an example on how to invoke a screens flow from the parent app but apply if you are invoking the flow from either an app or another module.

In this example, you need to reuse an onboarding screens flow. The flow includes three screens. You will invoke the first screen of this onboarding screens flow from the Sign in button that appears in the parent app screen. Then, you will define that the user must be reidrected to the GoldBank app home page when they click on the Ready to start! label that appears in the last screen of the screens flow. To achieve the redirection, you will set a message in the interface configuration that asks the parent app to execute an action: that action will be to show the home page of the GoldBank app.

  1. Go to Apps & Modules. Click Modules to open the tab.

    message_interface_COMP_INTER.gif
  2. Find the Login_module module and click on the module card to be redirected to the Overview.

  3. Click Screens. The three screens that are part of the screens flow are Onboarding Step, Onboarding Step 2 and Onboarding Step 3. The three screens are linked between them so when the user clicks on the right arrow, they are taken to the next screen.

  4. Find the Onboarding Step 3 screen and double click on the screen card to open the screens editor.

  5. Go to the left panel and click Treeview to open the tab. Find the TxtLbl_Start component and click it to select it in the canvas.

  6. Go to the right panel and then click Actions to open the tab.

  7. Go to the Events & Actions section. In the OnClick attribute, click the vertical three dot icon. The Create New Link modal opens, where you can invoke the screen flow interface message set, that will allow you to set an action to occur when the user clicks on the Ready to start label. Refer to the instructions below to learn how to invoke the message.

    1. In the Select link type drop-down menu, click the arrow and select Interface Message.

    2. In the Select Message field, click the arrow and select Onboarding_interface@Onboarding_interface: SHOW NEXT.

  8. Go to the saving options and click Save and close. Complete the Commit message with the description Changes to Start label component and click Save and close. Then, click Close in the confirmation message to go to the Screens page.

  9. Go to the Overview and click Apps & Modules. Then, click Apps to open the tab.

  10. Find the GoldBank app and click on the app card.

  11. In the Overview, click Settings (Overview > Settings).

    Note

    Enabling dependencies allows you to use the module’s content in the screens editor for the app selected. To learn more about dependencies, read Settings.

    DEPENDENCIES.gif
  12. Click Dependencies to open the tab.

  13. Find the Login_module module and click the toggle switch to link it to the GoldBank app.

  14. Click Save & Close to save changes and be redirected to the Overview.

  15. In the Overview, click Screens. Find the Sign in screen and click Design or double click the screen card.

    Note

    You can also access the screens of the app in Branch Edition > Screens.

    SCREEN_INTERFACE_STEP_2.gif
  16. Once the screens editor opens, go to the left panel. Click Treeview . The treeview tab contains a list of all the components in the screen.

  17. Click Button to select the Sign in button component.

  18. Go to the right panel and then click Actions to open the tab.

  19. Go to the Events & Actions section. In the OnClick attribute, click the vertical three dot icon. The Create New Link modal opens, where you can invoke the screens flow and configure it according to the parameters set when you created the interface that represents the flow. Refer to the instructions below to learn how to invoke the screens flow.

    1. In the Select link type drop-down menu, click the arrow and select Module Screen.

    2. The Link to Module modal opens in the Target tab. This modal contains three tabs: the Target tab contains the modules linked as dependencies to the parent app; the Inputs & Outputs tab contains the Inputs, Outputs, Events and Messages parameters configured in the interface representing the screens flow; the Find the Login_module module and click it.

      Note

      The Link to Module modal contains three tabs:

      • Target tab: contains the modules linked as dependencies to the parent app.

      • Inputs & Outputs tab: contains the Inputs, Outputs, Events and Messages parameters configured in the interface.

      • On Next tab: allows you to set actions to be triggered after the screens flow finishes. This tab must not be configured.

    3. Go to the Use default settings checkbox and unselect it, so you can configure the screen interface settings.

    4. Go to the Inputs & Outputs tab and click Messages. For this example, you will only work on the Messages tab.

      Important

      Event parameters must not be configured for screens flows.

    5. Go to the SHOWNEXT parameter. As configured In the Messages Mapping field, you must enter the syntax that represents the app screen that will be shown once the screens flow finishes. For this example, enter VV01|contents1:S004. Now, when the user clicks on the Ready to start! label mentioned above, the interface message will be triggered, that will in turn invoke the screen defined in this parameter.

    6. Click Ready to link.

Best practice

As a best practice, modules - and therefore, their content (either configured components or screens flows) - should not have a theme applied. Hence, when the module's content is invoked in the screens editor, the configured component or screens flow. Applying a theme to a module affects the reusable nature of the module.