Previous Topic: READ or CREATE EntityNext Topic: Add DELETE Entity Action


Add UPDATE Exception Logic

Exception logic defines the actions to take if an exception to an entity action occurs. You can add the following exception conditions to an UPDATE action:

The WHEN not unique exception condition executes if the UPDATE action changes the value of an identifying attribute so that it is no longer unique. The WHEN successful exception condition executes if the UPDATE action is successful. The WHEN permitted values violation executes when the application retrieves data external to CA Gen (a file or external database) that may not be validated against permitted values. If you do not add logic for the WHEN permitted values violation condition, a runtime error is issued when the condition occurs.

The following statement is terminated with ESCAPE if the UPDATE of received product modifies the identifying attribute to a common value:

UPDATE Exception Logic