17.1.3.1 Activity Template
Topic Version | 1 | Published | 09/11/2015 | |
For Standard | RESQML v2.0.1 |
An activity template provides the semantics of the activity. The Title (or name) provides the type of activity, for example, “GenericCreationActivity” (see Figure 17.1.3.4-1 ). It also contains a list of parameter templates, which describe each potential parameter along with its role in the activity.
Parameter Template
For each parameter in the activity, describe its:
- Role provided by the parameter Title.
- Types associated with this parameter.
- AllowedKind (optional) indicates the possible kinds for this parameter. See #RESQML_c_335__GUID-D7147C7F-2017-0008-W2DP-0000000000A5 .
- DataObjectContentType is used when the kind is limited to data objects and can also restrict the allowed object types.
- Use as input and/or output, based on IsInput and IsOutput information.
- Cardinality based on MinOccurs and MaxOccurs information (which are mandatory (1..-1) where -1 means infinite).
- Default value of the parameter.
- Additional constraint provided in free text form and targeted to be human readable.
SubActivity
When inside an activity, a parameter type is itself an activity and is a sub-activity of the main activity. This nested approach means we can create trees of activities, where complex process can be captured as an aggregation of smaller activities. In this case, the AllowedKind for the parameter is subActivity.