How to perform an action on multiple business objects

Aware IM Rule Language is the language of rules only – it does not include variables or loops as programming languages do. Consequently, it is not possible to iterate over business objects. How can then an action be performed on several business objects? The answer is that any action is automatically performed on all objects that are in the current context. The context usually contains objects found by a query, so the action is performed on all found objects. For example,

FIND Account WHERE Account.Balance < 100
Account.State='CLOSED' 

The second action that changes the state of the account to CLOSED will be performed on all objects found by the FIND action and so all accounts with balances less than 100 will be closed.

  • Last modified: 2022/12/15 05:06