Activities encapsulate individual units of work or business processes that can be combined with Transformations in a Processing Sequence. Activities, along with Transformations, implement the business functions that are executed by LANSA Composer Processing Sequences. Examples of Activities include:
Two key aspects of the definition of an Activity support their implementation and use along with other Activities and Transformations to orchestrate a complete business process:
LANSA Composer is supplied with a set of ready-to-use Activities that provide transport, file management and zip/unzip capabilities. Refer to All Supplied Activities for a complete list and description of the supplied Activities or to Activities by Group for a quick reference list of the Activities you may need for a particular task.
You can use LANSA Composer straight away with the supplied Activities. If required, you can extend LANSA Composer with custom Activities of your own. Refer to Develop Custom Activities for LANSA Composer for information on developing your own custom Activities.
Iterator Activities
Iterator Activities are a special form of Activity that can be used to perform iterative processing in a Processing Sequence.
It is possible to perform iterative processing using standard Processing Sequence directives such as LOOP, WHILE and UNTIL. Iterative processing performed in this way is controlled by:
Iterator Activities extend this capability to enable iterative processing controlled by any application-defined data, rule or condition. When you add an Iterator Activity to a Processing Sequence, it becomes a "block" item (similar to a LOOP for example) under which you can nest further Processing Sequence directives, Activities or Transformation Maps that are to be executed for each iteration of the Iterator Activity.
Some of the Activities supplied with LANSA Composer are Iterator Activities.
They include:
Iterate for each row in a CSV file |
|
Iterate for each index in a range |
|
Iterate for each pending outbound transaction doc |
You can extend LANSA Composer with your own Iterator Activities. Such Iterator Activities might be driven by data in your own applications. For example, you might define and implement Iterator Activities that iterate for:
If you define your own Iterator Activities. you must implement the Activity Processor in a particular way such that it supports the iterative behavior. Refer to Develop a Custom Activity Processor for more information.
If there is any problem with any supplied activity, refer to Restore Supplied Definitions for information on how to restore them.