Description
A ResourceDefinition is a dynamic resource that can take different values according to relations with the model.
A ResourceDefinition contains resources (such as GenericResource or BogResource). It has
- A default resource. If no extra resource is added, it will act as a classic resource.
- Extra resources added manually for each value that can be taken. A value can be defined by the relation to one or several items in the model.
Behaviour in strategies:
TODO.
Configuration via the ResourceDefinition itself:
Configuration via the model:
Implementation
- Drag and drop a ResourceDefinition from the palette in a ResourceFolder
- Set the ord of the default resource
- Add extra resources:
- Drag and drop Resource from the palette in the ResourceDefinition
- Set the ord of the overridden resource
- Choose the items of the model and/or the predicate that will match the resource. You can decide to group the model items to form AND/OR conditions
- Order is important (except for default resource)
- Aspects; Definitions and Nodes can be chosen as model
In a Resource,
- if both the predicate and the Model are empty, the resource will be ignored
- if the predicate is empty, only the Model will be taken into account
- if the model is empty, only the predicate will be taken into account
- if both the model and the predicate have a value, both will be taken into account
The predicate is a neql. The slots supports SFormats