Cast Object

Last update: Edit

1 Introduction

The Cast Object activity can be used in a microflow after an object type decision to change the type of object from the generalized object type to the specialized object type of the path out of the object type decision.

To read more about specialization and generalization, see Entities.

2 Output Properties

2.1 Name

This is the name for the result of the cast. It can be used by all activities that follow this activity.

3 Example

For a model share example, see SUB question cast example.

In this example, there are three specializations of the Question object. Only an object of the specialized type MultipleChoiceQuestion performs some special actions, which will be done in a sub-microflow which has as the input type MultipleChoiceQuestion. Since an object of the type Question cannot get passed to the sub-microflow, the object first needs to get casted to the object type MultipleChoiceQuestion.