Using the MAKE action statement, which modifies video properties, is restricted to Procedure Action Diagrams that directly support procedure steps. Any special handling of video attributes in a process-implementing procedure must take place in the synthesized Procedure Action Diagram.
The procedure logic can inspect the setting of Exit State on a return from a transformed procedure action block to determine whether video properties should be dynamically modified.
An example of this technique appears in the following sample code. The designer has added a condition followed by a make action to highlight the name of a duplicate customer. See lines 14 through 16.
Procedure Action Diagram With a MAKE Statement
MAINTAIN_CUSTOMER
IMPORTS: Entity Viewimport customer
EXPORTS: Entity Viewexport customer
EXIT STATE IS requested_operation_complete
CASE OF COMMAND
CASE delete
USE delete_customer
WHICH IMPORTS: Entity Viewimport customer
WHICH EXPORTS: Entity Viewexport customer
CASE add
USE add_new_customer
WHICH IMPORTS: Entity Viewimport customer
WHICH EXPORTS: Entity Viewexport customer
IF EXIT STATE IS EQUAL TO customer already exists
MAKE export customer name “ERROR”
EXIT STATE IS invalid_command
|
Copyright © 2013 CA.
All rights reserved.
|
|