Skip to content
BPMN 2.0 templates

Warehouse stock reallocation with reservation reversal

Prepare a cross-warehouse allocation, verify transport and receiving capacity, and reverse provisional allocations where feasibility fails. Editable collaboration with role lanes, decisions and explicit rollback activities. Illustrative policy and timing; adapt to local requirements.

Template previewBPMN 2.0
Rendering…

What this template contains

Source
67 lines

Make it your own.

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="warehouse_reallocation_definitions" targetNamespace="urn:flowss:advanced">
  <bpmn:message id="warehouse_reallocation_message" name="Reallocation requested"/>
  
  <bpmn:process id="warehouse_reallocation_process" name="Warehouse stock reallocation with reservation reversal" isExecutable="false">
    <bpmn:documentation>Prepare a cross-warehouse allocation, verify transport and receiving capacity, and reverse provisional allocations where feasibility fails. Inputs: Reallocation requested. Rollback activities are explicit modelled tasks, not engine-level BPMN compensation handlers. All policy choices, durations and conditions are illustrative. Replace example rules with approved local policy; configure integrations and review before execution. This non-executable template does not assert legal compliance or a real completed case.</bpmn:documentation>
    <bpmn:laneSet id="warehouse_reallocation_lanes"><bpmn:lane id="warehouse_reallocation_lane_0" name="Allocation planner"><bpmn:flowNodeRef>warehouse_reallocation_start</bpmn:flowNodeRef><bpmn:flowNodeRef>warehouse_reallocation_intake_1</bpmn:flowNodeRef><bpmn:flowNodeRef>warehouse_reallocation_prepare_1</bpmn:flowNodeRef><bpmn:flowNodeRef>warehouse_reallocation_prepare_2</bpmn:flowNodeRef><bpmn:flowNodeRef>warehouse_reallocation_commit_1</bpmn:flowNodeRef><bpmn:flowNodeRef>warehouse_reallocation_commit_rest_1</bpmn:flowNodeRef><bpmn:flowNodeRef>warehouse_reallocation_complete</bpmn:flowNodeRef></bpmn:lane><bpmn:lane id="warehouse_reallocation_lane_1" name="Capacity reviewer"><bpmn:flowNodeRef>warehouse_reallocation_verification</bpmn:flowNodeRef><bpmn:flowNodeRef>warehouse_reallocation_decision</bpmn:flowNodeRef></bpmn:lane><bpmn:lane id="warehouse_reallocation_lane_2" name="Inventory recovery"><bpmn:flowNodeRef>warehouse_reallocation_rollback_1</bpmn:flowNodeRef><bpmn:flowNodeRef>warehouse_reallocation_rollback_rest_1</bpmn:flowNodeRef><bpmn:flowNodeRef>warehouse_reallocation_rollback_rest_2</bpmn:flowNodeRef><bpmn:flowNodeRef>warehouse_reallocation_alternate</bpmn:flowNodeRef></bpmn:lane></bpmn:laneSet>
    <bpmn:startEvent id="warehouse_reallocation_start" name="Reallocation requested"><bpmn:messageEventDefinition id="warehouse_reallocation_start_def" messageRef="warehouse_reallocation_message"/></bpmn:startEvent>
    <bpmn:userTask id="warehouse_reallocation_intake_1" name="Register destination demand"></bpmn:userTask>
    <bpmn:userTask id="warehouse_reallocation_prepare_1" name="Reserve origin stock"></bpmn:userTask>
    <bpmn:userTask id="warehouse_reallocation_prepare_2" name="Reserve transport capacity"></bpmn:userTask>
    <bpmn:userTask id="warehouse_reallocation_verification" name="Verify receiving slot"></bpmn:userTask>
    <bpmn:exclusiveGateway id="warehouse_reallocation_decision" name="Transfer feasible?" default="warehouse_reallocation_flow_7"></bpmn:exclusiveGateway>
    <bpmn:serviceTask id="warehouse_reallocation_commit_1" name="Commit transfer order"></bpmn:serviceTask>
    <bpmn:serviceTask id="warehouse_reallocation_rollback_1" name="Cancel transport hold"></bpmn:serviceTask>
    <bpmn:serviceTask id="warehouse_reallocation_commit_rest_1" name="Issue dispatch documentation"></bpmn:serviceTask>
    <bpmn:serviceTask id="warehouse_reallocation_rollback_rest_1" name="Release origin reservation"></bpmn:serviceTask>
    <bpmn:serviceTask id="warehouse_reallocation_rollback_rest_2" name="Notify demand planner"></bpmn:serviceTask>
    <bpmn:endEvent id="warehouse_reallocation_complete" name="Transfer committed"></bpmn:endEvent>
    <bpmn:endEvent id="warehouse_reallocation_alternate" name="Reallocation reversed"></bpmn:endEvent>
    <bpmn:sequenceFlow id="warehouse_reallocation_flow_1" sourceRef="warehouse_reallocation_start" targetRef="warehouse_reallocation_intake_1"></bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="warehouse_reallocation_flow_2" sourceRef="warehouse_reallocation_intake_1" targetRef="warehouse_reallocation_prepare_1"></bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="warehouse_reallocation_flow_3" sourceRef="warehouse_reallocation_prepare_1" targetRef="warehouse_reallocation_prepare_2"></bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="warehouse_reallocation_flow_4" sourceRef="warehouse_reallocation_prepare_2" targetRef="warehouse_reallocation_verification"></bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="warehouse_reallocation_flow_5" sourceRef="warehouse_reallocation_verification" targetRef="warehouse_reallocation_decision"></bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="warehouse_reallocation_flow_6" sourceRef="warehouse_reallocation_decision" targetRef="warehouse_reallocation_commit_1" name="Yes"><bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=transferFeasible = true</bpmn:conditionExpression></bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="warehouse_reallocation_flow_7" sourceRef="warehouse_reallocation_decision" targetRef="warehouse_reallocation_rollback_1" name="Otherwise"></bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="warehouse_reallocation_flow_8" sourceRef="warehouse_reallocation_commit_1" targetRef="warehouse_reallocation_commit_rest_1"></bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="warehouse_reallocation_flow_9" sourceRef="warehouse_reallocation_rollback_1" targetRef="warehouse_reallocation_rollback_rest_1"></bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="warehouse_reallocation_flow_10" sourceRef="warehouse_reallocation_rollback_rest_1" targetRef="warehouse_reallocation_rollback_rest_2"></bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="warehouse_reallocation_flow_11" sourceRef="warehouse_reallocation_commit_rest_1" targetRef="warehouse_reallocation_complete"></bpmn:sequenceFlow>
    <bpmn:sequenceFlow id="warehouse_reallocation_flow_12" sourceRef="warehouse_reallocation_rollback_rest_2" targetRef="warehouse_reallocation_alternate"></bpmn:sequenceFlow>
  </bpmn:process>
  <bpmn:collaboration id="warehouse_reallocation_collaboration"><bpmn:participant id="warehouse_reallocation_party" name="Fulfillment planner"/><bpmn:participant id="warehouse_reallocation_pool" name="Warehouse stock reallocation with reservation reversal" processRef="warehouse_reallocation_process"/><bpmn:messageFlow id="warehouse_reallocation_request" sourceRef="warehouse_reallocation_party" targetRef="warehouse_reallocation_start"/></bpmn:collaboration>
  <bpmndi:BPMNDiagram id="warehouse_reallocation_diagram"><bpmndi:BPMNPlane id="warehouse_reallocation_plane" bpmnElement="warehouse_reallocation_collaboration">
    <bpmndi:BPMNShape id="warehouse_reallocation_party_di" bpmnElement="warehouse_reallocation_party" isHorizontal="true"><dc:Bounds x="20" y="20" width="2210" height="70"/></bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="warehouse_reallocation_pool_di" bpmnElement="warehouse_reallocation_pool" isHorizontal="true"><dc:Bounds x="20" y="180" width="2210" height="780"/></bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="warehouse_reallocation_lane_0_di" bpmnElement="warehouse_reallocation_lane_0" isHorizontal="true"><dc:Bounds x="50" y="180" width="2180" height="260"/></bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="warehouse_reallocation_lane_1_di" bpmnElement="warehouse_reallocation_lane_1" isHorizontal="true"><dc:Bounds x="50" y="440" width="2180" height="260"/></bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="warehouse_reallocation_lane_2_di" bpmnElement="warehouse_reallocation_lane_2" isHorizontal="true"><dc:Bounds x="50" y="700" width="2180" height="260"/></bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="warehouse_reallocation_start_di" bpmnElement="warehouse_reallocation_start"><dc:Bounds x="162" y="292" width="36" height="36"/><bpmndi:BPMNLabel><dc:Bounds x="108" y="335" width="144" height="40"/></bpmndi:BPMNLabel></bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="warehouse_reallocation_intake_1_di" bpmnElement="warehouse_reallocation_intake_1"><dc:Bounds x="325" y="272" width="130" height="76"/></bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="warehouse_reallocation_prepare_1_di" bpmnElement="warehouse_reallocation_prepare_1"><dc:Bounds x="535" y="272" width="130" height="76"/></bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="warehouse_reallocation_prepare_2_di" bpmnElement="warehouse_reallocation_prepare_2"><dc:Bounds x="745" y="272" width="130" height="76"/></bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="warehouse_reallocation_verification_di" bpmnElement="warehouse_reallocation_verification"><dc:Bounds x="955" y="532" width="130" height="76"/></bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="warehouse_reallocation_decision_di" bpmnElement="warehouse_reallocation_decision" isMarkerVisible="true"><dc:Bounds x="1206" y="546" width="48" height="48"/><bpmndi:BPMNLabel><dc:Bounds x="1158" y="496" width="144" height="40"/></bpmndi:BPMNLabel></bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="warehouse_reallocation_commit_1_di" bpmnElement="warehouse_reallocation_commit_1"><dc:Bounds x="1375" y="272" width="130" height="76"/></bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="warehouse_reallocation_rollback_1_di" bpmnElement="warehouse_reallocation_rollback_1"><dc:Bounds x="1375" y="792" width="130" height="76"/></bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="warehouse_reallocation_commit_rest_1_di" bpmnElement="warehouse_reallocation_commit_rest_1"><dc:Bounds x="1585" y="272" width="130" height="76"/></bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="warehouse_reallocation_rollback_rest_1_di" bpmnElement="warehouse_reallocation_rollback_rest_1"><dc:Bounds x="1585" y="792" width="130" height="76"/></bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="warehouse_reallocation_rollback_rest_2_di" bpmnElement="warehouse_reallocation_rollback_rest_2"><dc:Bounds x="1795" y="792" width="130" height="76"/></bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="warehouse_reallocation_complete_di" bpmnElement="warehouse_reallocation_complete"><dc:Bounds x="1842" y="292" width="36" height="36"/><bpmndi:BPMNLabel><dc:Bounds x="1788" y="335" width="144" height="40"/></bpmndi:BPMNLabel></bpmndi:BPMNShape>
    <bpmndi:BPMNShape id="warehouse_reallocation_alternate_di" bpmnElement="warehouse_reallocation_alternate"><dc:Bounds x="2052" y="812" width="36" height="36"/><bpmndi:BPMNLabel><dc:Bounds x="1998" y="855" width="144" height="40"/></bpmndi:BPMNLabel></bpmndi:BPMNShape>
    <bpmndi:BPMNEdge id="warehouse_reallocation_flow_1_di" bpmnElement="warehouse_reallocation_flow_1"><di:waypoint x="198" y="310"/><di:waypoint x="325" y="310"/></bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="warehouse_reallocation_flow_2_di" bpmnElement="warehouse_reallocation_flow_2"><di:waypoint x="455" y="310"/><di:waypoint x="535" y="310"/></bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="warehouse_reallocation_flow_3_di" bpmnElement="warehouse_reallocation_flow_3"><di:waypoint x="665" y="310"/><di:waypoint x="745" y="310"/></bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="warehouse_reallocation_flow_4_di" bpmnElement="warehouse_reallocation_flow_4"><di:waypoint x="875" y="310"/><di:waypoint x="915" y="310"/><di:waypoint x="915" y="570"/><di:waypoint x="955" y="570"/></bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="warehouse_reallocation_flow_5_di" bpmnElement="warehouse_reallocation_flow_5"><di:waypoint x="1085" y="570"/><di:waypoint x="1206" y="570"/></bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="warehouse_reallocation_flow_6_di" bpmnElement="warehouse_reallocation_flow_6"><di:waypoint x="1254" y="570"/><di:waypoint x="1315" y="570"/><di:waypoint x="1315" y="310"/><di:waypoint x="1375" y="310"/><bpmndi:BPMNLabel><dc:Bounds x="1262" y="543" width="100" height="22"/></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="warehouse_reallocation_flow_7_di" bpmnElement="warehouse_reallocation_flow_7"><di:waypoint x="1254" y="570"/><di:waypoint x="1315" y="570"/><di:waypoint x="1315" y="830"/><di:waypoint x="1375" y="830"/><bpmndi:BPMNLabel><dc:Bounds x="1262" y="580" width="100" height="22"/></bpmndi:BPMNLabel></bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="warehouse_reallocation_flow_8_di" bpmnElement="warehouse_reallocation_flow_8"><di:waypoint x="1505" y="310"/><di:waypoint x="1585" y="310"/></bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="warehouse_reallocation_flow_9_di" bpmnElement="warehouse_reallocation_flow_9"><di:waypoint x="1505" y="830"/><di:waypoint x="1585" y="830"/></bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="warehouse_reallocation_flow_10_di" bpmnElement="warehouse_reallocation_flow_10"><di:waypoint x="1715" y="830"/><di:waypoint x="1795" y="830"/></bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="warehouse_reallocation_flow_11_di" bpmnElement="warehouse_reallocation_flow_11"><di:waypoint x="1715" y="310"/><di:waypoint x="1842" y="310"/></bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="warehouse_reallocation_flow_12_di" bpmnElement="warehouse_reallocation_flow_12"><di:waypoint x="1925" y="830"/><di:waypoint x="2052" y="830"/></bpmndi:BPMNEdge>
    <bpmndi:BPMNEdge id="warehouse_reallocation_request_di" bpmnElement="warehouse_reallocation_request"><di:waypoint x="180" y="90"/><di:waypoint x="180" y="292"/></bpmndi:BPMNEdge>
    
  </bpmndi:BPMNPlane></bpmndi:BPMNDiagram>
</bpmn:definitions>