Skip to main content

[en] Knowledge Center

[en] Automated workflows....

[en] Automated workflows allow you to respond for specific events in RamBase and build simple notification systems or automatically create tasks for your team. ...

[en] Events are special types of some occurrences that can occur while working with RamBase modules. It can be updated status, person assigned as responsible, some item added or modified in a specific document. Only RamBase can add new events, contact support if you have any questions.

[en] To access automated workflows, you must use the Duties (DUTY) Create and maintain company workflows and Create and maintain company template workflows. The duties are not added to any system defined Roles (ROLE). Users must add these duties to their own company defined roles.

[en] Automated flows

[en] Automated flows make it possible to perform automated flow actions (described in the Actions section below) each time the specific event occurs. It is possible to add conditions that are checked before action is executed. All conditions are connected with “and” logical operator, which means that all must be true to perform action.

AAA_6.jpg

[en] Each flow must contain one event and one action, in case there is need to perform many actions, another automated flow should be created with the same event and conditions, but with a different action.

[en] There are few ways to create a new automated flow:

  1. [en] Using the Create custom flow button in the bottom left corner and enter the mandatory name and optional description.

    AAA_7.jpg
  2. [en] Using one of the automated flow templates (described in the Automated flow templates section below) listed in the Create flow tab.

    AAA_8.jpg
  3. [en] Use the New flow button in the Create flow tab which allows you to create empty flow from scratch.

    AAA_9.jpg

[en] Automated flows have their own statuses:

  • [en] Status 1 - Draft - The flow is created and can be edited.

  • [en] Status 4 - Active - The flow is active and every time the event occurs, the conditions will be checked and possibly action executed.

  • [en] Status 9 - Disabled - The flow can not be edited and events do not cause the conditions to be checked and the action will not be executed.

[en] Creating and activating automated flows

[en] To create and activate a new automated flow, follow the steps below:

  1. [en] Create a new automated flow and enter the name and description.

  2. [en] Select the event that will trigger this flow.

  3. [en] Add conditions for the event if necessary. List of available fields depends on the event itself, for events related to customers, fields will be retrieved from a resource that represents the customer. For events related to products, fields will be retrieved from the product resource and so on.

  4. [en] Choose what kind of action you want to execute, when event occurs and all the conditions are met.

  5. [en] Enter all mandatory action parameters. Remember, some parameters support macros.

  6. [en] After saving, activate the flow by clicking the switch next to the name in the flow list.

[en] Adding conditions

[en] Conditions can be created based on fields from the event detail object and their type. There are different operators available depending on the selected field type: text, numbers, values or date.

AAA_011.jpg

[en] To add a condition, just click the Add condition button and you will be able to select one of the available fields. Based on the type, you will get different operator lists and Condition input fields that support specific type (date or datetime picker, values, etc.). To delete a specific condition, just click on the trash can icon next to it. To undo the current changes, click the X icon.

[en] Selecting automated flow action

[en] Actions with their parameters were described earlier, so you can select any of them using the dropdown menu and provide all the required data to mandatory parameters so that the action can be executed.

[en] Next to the action dropdown menu and each parameter you can find a small info icon, when you hover the mouse over it, you will see tool tips with a short description.

AAA_4.jpg

[en] Next to the parameter field you will also find the X button, by pressing it all data in this field will be removed.

[en] Viewing execution log

[en] You can select the View execution log option in the Context menu to open the execution log popup window.

[en] All events occurrences related to the flow are listed, even if the criteria were not met. This means that this list shows how many times a specific event was triggered.

[en] Description of statuses:

  • [en] Status 1 - Draft - New job to check the conditions and probably execute the task has been created.

  • [en] Status 2 - In queue - The job is saved and queued to be performed.

  • [en] Status 3 - Processing - The job is being processed.

  • [en] Status 4 - Paused - The job is paused.

  • [en] Status 7 - Failed - The job failed and the action was not executed.

  • [en] Status 9 - Finished - The job is finished and at least the conditions were checked, if all were true, action was successfully executed.

[en] The Info column shows how many IMS/e-mails have been sent and how many failed (if any). If a batch has no information in this column, it means that there was no IMS/e-mail action for that batch.

[en] Activating and deactivating automated flows

[en] Only flows in Active status are considered to be executed. Newly created flow is in Draft status. To activate the flow, simply press the ON/OFF button next to the flow name that is visible in the All flows tab.

AAA_1.jpg

[en] Use the same switch to deactivate the flow, the status will be changed to Disabled. In case you want to modify the flow again (you can only modify the flows created by you), use the Open for edit option in the context menu.

[en] Saving as template

[en] It is also possible to save existing automated flow as a template (templates are described in more details in the next section). To do so, select the correct option from the context menu and a new dialog will be opened.

AAA_2.jpg

[en] In this dialog box, users are allowed to change the name and description of the flow, and they also can choose which event conditions and action parameters that will be copied. To copy the condition or parameter, the checkbox next to it should be checked.

[en] Actions

[en] Available actions in automated workflows are executed when the selected event occurs, and the criteria are met.

[en] Each action has its own parameters. Some might be required, and some are optional, to execute the action.

ACTION_1.jpg

[en] This is a list of all actions defined in RamBase with their parameters:

  1. [en] Send IMS - Sends message to one or more recipients using Internal Message Service. (Supports macros with .userId and .employeeId)

  2. [en] Create note - Creates note in the RamBase system.

  3. [en] Start task process - Starts a task process.

  4. [en] Send Teams message.

  5. [en] Create task - Creates a new task in RamBase.

  6. [en] Send e-mail - Sends e-mail to one or more recipients. (Supports macros with .userId and .employeeId)

[en] Some parameters support macros - this means that some properties of the object, which are related to the event, can be used. For example, you can start typing {{ (two curly brackets) to open the dialog with available properties list. Having such text in the field, which supports it, will cause it to be replaced with data contained in the object, for example having an e-mail title defined as follows:

[en] Status of the {{customer.name}} customer was changed

[en] Will cause e-mails sent by this action to have customer name instead of {{customer.name}} , i.e.:

[en] Status of the RamBase customer was changed

[en] if the status was changed for customer, whose name is RamBase.

AAA_010.jpg

Uwaga

[en] When sending IMS to more than one recipient, the recipients should be separated with a semicolon. (Recipient 1; Recipient 2 etc)

[en] Automated flow templates

[en] Automated flow templates are very similar to regular automated flows, but they are only used to create new flows. No automated flow templates are considered to be verified and executed when the event is triggered.

[en] Templates are created according to the same rules as automated flows (name, description, event, event conditions, action and action parameters) and can be used to prepare many workflows with the same event and conditions, but with different actions.

AAFLT_3.jpg

[en] Templates have following statutes:

  • [en] Status 1 - Draft - Template not yet completed, can not be used to create new workflows.

  • [en] Status 4 - Active - The template appears in the Create flow tab as a tile with icons related to the event name area and selected action.

  • [en] Status 9 - Disabled - The template is no longer used, and can not be used to create new workflows.

[en] Global automated flow templates

[en] Some templates are provided by RamBase and can not be modified or disabled, but they can be used to create new automated flows like regular templates. Templates like this have this additional information above the name:

AAFLT_2.jpg
[en] Creating new automated flow template

[en] There are two ways to create an automated flow template:

  1. [en] Create it from automated flow, as described in the Automated flows section above

  2. [en] Create it from scratch using the Create new template button below the templates list.

    AAFLT_1.jpg

[en] Users must provide name and optionally description. Rules for creating a template are the same as creating a regular flow, the same fields support macros.

[en] After saving and activating template (changing the status to 4 - Active) only from the context menu, it can be used to create automated flows.