9 6 8 Understand Activity Parameters

LANSA Composer

9.6.8 Understand Activity Parameters

A part of the activity definition is the definition of the parameters that the activity expects or returns.

When writing your activity processor, it will help to understand that this part of the activity definition is more of an advertisement than a contract. It is there so that somebody using your activity in a processing sequence may set and receive values from your activity.

However, LANSA Composer does not enforce the activity parameters, nor are they automatically "passed" to the activity processor. It is the responsibility of the activity processor to retrieve variable values from the variable pool and place or update variable values in the variable pool as necessary. It is good practice to do this using the names specified in the activity parameters definition, otherwise someone using your activity in a processing sequence may not be able to set or retrieve the correct values.