in this video we are going to demonstrate gateways consider the following business situation related to the reimbursement process the process objective is to reimburse the expenses incurred by an employee in a company for example travel representation parking expenses etc an employee should submit an expenses claim to the administrative area the accounting assistant verifies the claim and issues a check to reimburse the expenses the process has been modeled using three activities however if the claim is not approved the reimbursement cannot be made the flow should be controlled at this point according to the approval decision another
element of BPMN is the gateway gateways are represented by a diamond shape and are used to control the divergence and convergence points of the flow for instance decisions actions in parallel and synchronization points of the flow gateways are classified into two categories divergence and convergence a gateway used as a divergent element represents a point in the flow where there is one sequence flow in and more than one sequence flow out that is the flow is divided into several branches a gateway used as a convergent element represents a point in the flow where there is more
than one sequence flow in and only one sequence flow out that is various sequence flows converge at one point in bpmn a gateway can only be used either as a convergent or divergent element there are many types of gateways one of the most common gateways is the data based exclusive gateway used as an element of divergence this represents an exclusive decision it means that only one route can be taken from various available and this decision will be taken after evaluating a business condition that is only one of the output sequence flows is to be followed
based on a condition in our example two gateways have been included when the expenses claim is submitted it may require approval this gateway requires approval represents the decision and controls if a particular claim requires approval the other gateway approved evaluates if the claim has been approved if not the no sequence flow will be followed otherwise the yes sequence flow is taken having included these gateways the process flow has been controlled and each claim can follow the path according to a business condition