concept sub - process in category jboss

appears as: sub-process, sub-process, sub-processes, The sub-process
Effective Business Process Management with JBoss BPM

This is an excerpt from Manning's book Effective Business Process Management with JBoss BPM.

The booking process starts after a user submits data; who they are, where they want to go and when. This is taken by the booking process and enriched by making two service calls to collect flights and hotels that match the submitted request. This data is put into the projects data model so that it can then be validate. Should it not pass validation, the process ends here in an error state, which is important to be able to collect failed processes for dashboard reports later. If data validation passes, the process proceeds to call a sub-process to calculate the pricing for the requested booking based on flights and hotels that were found. When the sub-process completes and returns, the process continues with a check if the total booking price is over a threshold set at 2500. If it is over this threshold, then there’s a review by a manager to decide if any changes need to be made to the bookings total pricing. After this review, the booking is reviewed by an employee to either cancel the booking, send it back around for another price review or to add payment details to then finalize the booking. When you add payment details it proceeds in to a sub-process that is used to book the flights and hotels before checking for a fraudulent payment method. This is done in this order to showcase the possible rolling-back of the flight and hotel bookings after they have been booked, which is known in BPM circles as compensation. If the payment method is fraudulent, then the booking is rolled back and the process ends in an error state. If not, then the payment is charged and an email is sent to the customer as confirmation before the process ends in a successful state.