-
Notifications
You must be signed in to change notification settings - Fork 0
Finding instances
To update or read data in the class model, it is first necessary to find the relevant instances. In fact, figuring out how to specify exactly the instances you want (or don’t want) is the most challenging aspect of writing an activity.
The approach you take depends on where your search starts. There are a handful of potential starting points. For example, you might want to select a subset of instances within a known class. Or you might have a set of instances of some class already and want to traverse from those across one or more relationships to find related instances in the same or some other class. Finally, you might start from an assigner state machine and want to select one or more instances that it manages.
Let’s explore how to proceed from each possible origin.
Copyright 2020, 2021, 2022, 2023, 2025 © Leon Starr under MIT Open Source License
- Why they are problematic
- Instance attribute creation values
- Boolean values
- Special values
- Enumerated values
- Action block
- Statement
- Single line action
- Multiple dependent actions on a single line
- An action spread across multiple lines
- A conditional group of single line actions
- Comments
- Finding instances
- Attribute access
- Creation and deletion
- Subclass migration
- Creating a table from a class
- Creating a table with a definition
- Converting a table into a class
- Set operations on tables
- Set comparisons on tables
- Join
- Rename
- Extend
- Aggregation
- Rank
- Image
- Input values
- Signatures and name doubling
- Output values
- Execution order
- Sequential execution
- Conditional execution
- Signals
- Scrall has no for_each action
- Iteration