Business rules are an important component of your intelligent process automation. They are used in several elements of a process and help you to control the business logic. In Bizagi, you can automate any process, whether it is structured, unstructured, complex, or simple. Therefore, Bizagi Studio provides a full set of functions and expressions available to fulfill your business requirements.
It is important to recognize the source of the information you are using in a business rule and what you intend to do in the rule. Identifying this beforehand helps you to look up the right function that fulfills any of your requirements.
There are four categories, or purposes, how functions or expressions:
Data model: These expressions are used to get, set, or obtain information based on attributes hold within entities that are part of a data model. The access method is through Xpaths, which let you navigate through the relationships at different levels. For example, using these expressions, you can get the client associated with a purchase. Refer to XPaths functions.
Non-related entities or parameter entities: This functions that let you consult values of entities not found through Xpaths that means that they are not related within the data model. In this category, you can also find functions to iterate or get information from parameter entities. For example, you can get the Area Code of a Country registered in a parameter entity. Refer to Access entities not related to the data model.
Case or task: This set of functions are built to obtain information related to a case or a task in expressions. For example, if you need to get the case creator or the estimated duration of a task. These functions are usually preceded by the object Me, which gives context where the expression is located. That is, that Bizagi knows the process, case, and task where the expression is executed, and therefore can query any of the contextualized information. Refer to Me object.
Non contextualized: Using these functions, you can manipulate variables in expressions. For example, you can calculate values using math expressions, manipulate files, operating dates, or get information that cannot be obtained from Xpaths or the Me object, that is, non-contextualized information. Refer to CHelper.