The generated read Action Diagram uses specific selection criteria to retrieve each occurrence of the subject entity type and places its contents in an entity action view.
The generated Process Action Diagram for the read action is the same as that for the delete action except that it does not have the DELETE statement. If the subject entity type is related to other entity types, the read Action Diagram generates views for the related entity types and includes the related entity types in the READ statement.
Using Process Synthesis to generate the read Action Diagram is especially helpful when the subject entity type is related to multiple entity types and you want Process Synthesis to follow them for you.
The following is an example of a generated Process Action Diagram for READ CUSTOMER:
READ_CUSTOMER IMPORTS: Entity View import customer EXPORTS: Entity View export customer LOCAL: ENTITY ACTIONS: Entity View customer READ customer WHERE DESIRED customer number IS EQUAL TO input customer number WHEN successful MOVE customer TO output customer WHEN not found
Import, export, and entity action views are views of the subject entity type. In this example, if a related entity type was included, import, and entity actions views for that entity type would also appear.
The attribute view number is the identifying attribute of the subject entity type.
The MOVE statement following the WHEN successful branch moves all the attributes of the subject entity type to the output view.
The branch for the exception logic, WHEN not found, contains no action statements when the process is generated. You should add the processing necessary to handle this condition.
|
Copyright © 2014 CA.
All rights reserved.
|
|