Skip to main content

Lesson 4: Workflow Rules

In this section, we will delve into the automation features of Steedos, exploring how to use workflow rules to automate tasks. We will go through a practical case – creating a workflow rule that sends reminders to assignees (Assignees) when a task (such as the Todos object) is created, modified, or deleted.

Objectives

  • Understand the basic concepts and applications of workflow rules.
  • Learn how to create and manage workflow rules in Steedos.
  • Master the skills of automating task notifications using workflow rules.

Introduction to Workflow Rules

Workflow rules in Steedos are a powerful automation tool that allows users to automatically perform predefined actions based on specific conditions. These rules are key to improving efficiency, ensuring data consistency, and automating repetitive tasks.

Definition and Importance

  • Definition: Workflow rules are business logic based on a set of conditions, triggering one or multiple actions, such as updating fields, sending emails, creating tasks, etc., when these conditions are met.
  • Importance: They greatly simplify daily tasks, reduce the need for manual handling, and ensure the accuracy and consistency of business processes.

Features

  • Automating Tasks: Automatically perform common business tasks, such as data updates, record creation, and sending notifications.
  • Condition-Based Triggers: Triggered based on changes in record fields, specific dates, or even results of formulas.
  • Action Execution: Perform various actions, including sending email notifications, updating fields of records, or creating new records.

Comparison Between Workflow Rules and Triggers

  • Workflow Rules are relatively simple and suitable for direct condition-action models.
  • Triggers are more appropriate for complex business logic that requires coding.

Application Scenarios

  • Data Management: Such as automatically updating the status or fields of records.
  • Notifications and Reminders: Such as automatically sending reminder emails to relevant personnel before task deadlines.
  • Business Rule Execution: Such as automatically assigning tasks or resources based on specific conditions.

Workflow rules are the cornerstone of automation in Steedos, applicable to a variety of business scenarios, from simple data updates to complex business logic processing. Understanding and mastering workflow rules are crucial for effectively using the Steedos platform.

Steps to Create a Workflow Rule

  • Choose the object and start creating the rule.
  • Define the trigger conditions.
  • Set up actions (such as sending emails, creating tasks, etc.).

Practical Case: Task Reminder Workflow Rule

  • Scenario Description:

    • When tasks of the Todos object are created or modified, it is necessary to send reminder emails to the assignees.
    • Note that standard workflow rules do not support triggering on record deletion.
  • Practical Steps:

    1. Enter Settings:

      • Access the Settings area from the Steedos main interface.
      • Create the Todos object.
    2. Create a New Workflow Rule:

      • In the Workflow Rules section, select New.
      • Choose the Todos object.
    3. Set Rule Conditions:

      • Rule Name: For example, Todo Assignment Notification.
      • API Name: For example, todo_assignment_notification.
      • Evaluation Criteria: Choose “created, and every time editing results in the conditions being met”.
      • Rule Condition: Use the formula TRUE, meaning any creation or editing operation will trigger the rule.
    4. Add Notification Action:

      • Check Workflow Notification, click New to create a new workflow notification.
      • API Name: For example, todo_assignment_notification.
      • Display Name: For example, Todo Assignment Notification.
      • Choose the Todos object.
      • Set the notification title formula: "You have a new task".
      • Set the notification body formula: name.
      • Choose the assigned user, click User field on the object, select the Assignees field as the message recipient.
    5. Save and Activate the Rule:

      • In the Immediate Actions of the workflow rule, select the newly created Workflow Notification.
      • Enable the workflow rule.
      • Save after confirming the settings.
    6. Test the Rule:

      • Test in the development environment if the message is sent correctly when creating and modifying Todos records.

Conclusion

Through this lesson, you will be able to understand and apply workflow rules in Steedos to enhance the automation and efficiency of business processes. Remember that practical operation is the best way to learn, so it is strongly recommended to practice the content of this lesson in a development environment.

Post-Lesson Exercise

  • Create a new Todos task in the development environment and observe whether the expected email reminder is received.
  • Try modifying the workflow rule, adding new conditions, such as triggering the reminder only when the assignee is not yourself.