This shows you the differences between two versions of the page.
| |
| docs:7000_glossary:context [2022/09/01 06:21] – created - external edit 127.0.0.1 | docs:7000_glossary:context [2022/09/02 05:41] (current) – ↷ Page moved from docs:7000_glossary:context to 7000_glossary:context administrator |
|---|
| ====== Context ====== | |
| |
| The context is a working area containing relevant [[docs:7000_glossary:business_object|business objects]] and [[docs:7000_glossary:notification|notifications]] that [[docs:7000_glossary:aware_im|Aware IM]] maintains in the [[docs:7000_glossary:operation_mode|operation mode]] for the purpose of [[docs:7000_glossary:rule_evaluation|rule evaluation]] and displaying of information. The initial content of the context depends on the configuration element. For example, for [[docs:7000_glossary:rule|rules]] attached to a [[docs:7000_glossary:business_object|business object]] the context contains a single [[docs:7000_glossary:object_type_and_object_instance|instance]] of the object when the rules are evaluated. For [[docs:7000_glossary:process|processes]] the initial context is determined by the [[docs:7000_glossary:process_input|process input]]. More objects can be added to the context following execution of [[docs:7000_glossary:action|actions]] that create new business objects or [[docs:7000_glossary:query|retrieve]] them from the [[docs:7000_glossary:object_storage|storage]]. | |
| |
| Note that rules do not distinguish between different [[docs:7000_glossary:object_type_and_object_instance|instances]] of objects of the same [[docs:7000_glossary:object_type_and_object_instance|type]]. If there are multiple instances in the context the rule action will be executed on each of the instances. For example, consider the following process: | |
| |
| <code aim>FIND Loan WHERE Loan.DueDate < CURRENT_DATE | |
| Loan.State = 'Late' </code> | |
| |
| |
| |
| The first rule will find all overdue loans and place them in the context. The second rule will change the state of each loan in the context. | |
| |
| |
| |