BPM with GeneXus Web - Process Execution: Case 1 - The customer has to be registered

Official Content
This documentation is valid for:

The objective of this article is to show you an example case of how the diagram works, when the application is running, in a specific situation.

When the application is run, the inbox is displayed with a task ready to be executed. First, select the task and press the Execute button (another option is to double-click on the task). The associated object (Reservation) will open for you to enter the reservation details. Leave the CustomerCode field empty (the customer is not yet registered).

BPM__GXFlowExecute_GenWeb

BPM__CustomerCodeFieldEmpty_GenWeb

Press Confirm. You will see a message indicating that the data has been successfully added; press Cancel to return to the inbox. The task has been executed and only needs to be completed. Click on the Send button:

BPM__GXFlowSend_GenWeb

The Gateway condition will be evaluated, and since the client doesn't exist you will have to register him/her. To check this, select Execute:

BPM__GXFlowExecute1_GenWeb

BPM__Backend_GenWeb

Enter the customer's details. Press Confirm and a message will be displayed indicating that the data has been successfully added. Press Cancel to close the form.

To complete the task, click on the Send button.

Once the “Add Customer” task has been completed as defined in the flow, the “AssignToCustomer” Procedure will be automatically executed and the customer will be assigned to the reservation. 

The following task of the flow is “Reservation Availability.” Press Execute to confirm it:

BPM__GXFlowExecute2_GenWeb

The Reservation Transaction (associated with the “Reservation Availability” task) will open, displaying the Availability checkbox:

BPM__BackendReservation_GenWeb

Mark the reservation as available. Press Confirm and a message will be displayed to indicate that the data has been successfully updated. Press Cancel.

Press Send. When this task is completed, the process ends.