Previous Topic: Add an Action Bar for Command EntryNext Topic: Use the Enter Command to Update


Execute Entity Actions in One or Two Stages

In the simplest implementation of entity maintenance, the action executes immediately after the user issues the command. This is known as a one-stage execution. However, to reduce the risk of unintentionally executing entity actions that affect the database, you can have Procedure Synthesis generate Action Diagram logic that requires a two-stage execution:

During confirmation, the screen is protected from input.

You can select one- or two-stage execution individually for the create, update, and delete entity actions when you select an entity maintenance stereotype. Two-stage execution is most commonly used for the delete entity action.

The following example shows the Action Diagram statements that Procedure Synthesis generates for a two-stage deletion:

Execute Entity Actions in One or Two Stages