Skip to main content

Veritran Docs

Procesos

[en] In the Veritran platform, a process is a sequence of steps where each step performs a specific logic operation. Processes allow you to add logic to the front-end of your app.

[en] Some of the operations performed by processes include:

  • [en] Assigning a value to a register and obtaining a value from a register.

  • crear condicionales (if, else, then);

  • crear iteraciones (while, for, for each);

  • realizar operaciones matemáticas;

  • gestionar matrices;

  • realizar operaciones con strings.

  • llamar API;

  • invocar transacciones.

[en] By combining these operations, processes make it possible for your app to perform different kinds of actions, from validating the user and password in a login process, to executing a money transfer or calculating the interest rate of a term deposit.

Los procesos pueden invocarse desde componentes, otros procesos —tanto legacy como lambda— y errores. Consulta el artículo Invoca un proceso para obtener más información.

Tipos de procesos

Actualmente, existen dos tipos de procesos disponibles en Veritran Studio:

  • Procesos lambda: estos procesos se construyen en el editor de procesos lambda mediante el uso del lenguaje de programación visual (VPL). Consulta el artículo Procesos lambda para obtener más información.

  • Procesos legacy: estos procesos se construyen utilizando el método de formulario. Consulta el artículo Procesos legacy para obtener más información.

    Importante

    [en] While legacy processes are still available in Studio, you should use the Lambdas feature to create processes.

[en] To access the list of processes (Lambdas and Legacy) of the branch you are working on, click Processes in the Overview shortcuts or go to Branch Edition > Processes.

processes_page_nav.gif

[en] The Processes page opens in the Lambda processes tab, where you can see the list of lambda processes already created, create new processes, and edit or perform other actions on existing ones. This navigation guide is focused on the Lambda processes tab, but the same information applies to the Legacy processes tab. To search for a lambda process in the list, use the search bar and search by name, description or tag.

[en] There are three main actions you can perform from this page: Import, export and create a lambda process. If it fits your project requirements, you may import a lambda process previously created in another environment instead of creating it from scratch, thus saving you a significant amount of time. You can export lambdas individually or in bulk, and then import them into another environment. To select and export lambda processes in bulk, click the checkbox to the left of each lambda process name and then click Export selected, within the vertical three-dot icon next to the creation button. The file will be downloaded to your device in XML format and can then be imported into another environment with the Import lambda process option. Lastly, you can create a lambda process by clicking + New lambda process.

[en] Click the vertical three-dot icon next to a lambda process to display a set of additional actions. From here, you can edit the lambda process, delete it or export it individually. You can also create a replica of the selected lambda process with the Duplicate option. You may duplicate a lambda process if it is similar to the one you need to build and modifying the copy results faster than creating a new process from scratch. Lastly, you can open the lambda process commit history from the History option to visualize the different versions of that lambda process, and roll back to any previous version or download it.

[en] Once you create a process, you need to invoke it from another entity or feature to execute it. Depending on the process aim, you may invoke it from a screen component, from another lambda or legacy process, from a module interface or from an app error handler. For example, you may invoke a process from a screen button to add the action to be executed when tapping that button. Refer to the list below to learn how to invoke a lambda or legacy process from each entity or feature:

  • Componentes: para invocar un proceso desde un componente del editor de pantallas, haz clic en el componente en el canvas. Dirígete al panel derecho y haz clic en la pestaña Actions. Luego, dirígete al evento desde donde deseas desencadenar el proceso y haz clic en los tres puntos verticales. Se abre el modal Create new link. Haz clic en la flecha hacia abajo y selecciona Process o Lambda. Cuando aparezca el menú desplegable nuevo, haz clic en la flecha hacia abajo y selecciona el proceso legacy o lambda que necesites.

    Nota

    Los procesos legacy o lambda disponibles en el modal Create new link son aquellos creados para la app en la que estás trabajando.

  • Procesos lambda: para invocar un proceso de un proceso lambda ya creado, agrega un bloque Next al canvas. Para obtener más información, consulta el artículo Editor de procesos lambda.

  • Procesos legacy: para invocar un proceso para ejecutarlo luego de que se ejecute ese proceso, define el proceso que se ejecutará en el campo Next ubicado en el panel Basic Info. Para invocar un proceso para ejecutarlo luego de que se ejecute cualquiera de los pasos de otro proceso, define el proceso en el campo Next para cada paso. Para obtener más información, consulta el artículo Crea o edita un proceso.

  • [en] Modules interfaces: To invoke a process from a module interface, select the process from the On load process drop-down menu in the General tab of the interface parameters. The process is executed immediately after the interface loads. You can also invoke a process from the module messages or events. To learn more, read Interfaces.Interfaces

  • Errores: para invocar un proceso que se ejecutará luego de que ocurra un error, dirígete a los ajustes de la rama dentro de tu app o módulo. Luego, dirígete a la sección Errors y establece el proceso que necesites en el campo Next. Para establecer un proceso legacy, introduce la expresión P(legacyprocessname), y para establecer un proceso lambda, introduce la expresión Z(lambdaname). Para obtener más información, consulta el artículo Settings.