The USE action allows you to call other action blocks from procedure and action blocks. The called action block cannot be a Procedure Step or a derivation algorithm.
In the Action Diagram, after selecting USE, you select the action block to be used. You then match import views, export views, local views, and entity action views.
The following example shows how a USE statement references an action block called find_space: The views in the WHICH IMPORTS list populate the import view of the action block before it begins execution. The views in the WHICH EXPORTS list are populated from the export view of the action block on return.
USE find space WHICH IMPORTS: Group View product information Entity View storage_space warehouse WHICH EXPORTS: Entity View used warehouse
The following example shows how a USE statement references an action block called create_order:
USE create_order WHICH IMPORTS: Group View group_import Entity View import customer Entity View import customer_order WHICH EXPORTS: Group View group_export Entity View export customer Entity View customer_order
In the following example, another form of the USE action SETs the value of an attribute USING an algorithm:
SET employee_number USING number_generator
After you select the algorithm, CA Gen prompts you to match the import views of the algorithm with the supplying views from the process.
|
Copyright © 2014 CA.
All rights reserved.
|
|