Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?xml version='1.0' encoding='utf-8'?>
<dmn:definitions xmlns:dmn="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:operaton="http://operaton.org/schema/1.0/dmn" id="purchase-requisition-routing-definitions" name="Purchase Requisition Routing" namespace="http://operaton.org/examples/approval-sla-metrics">
<descriptions>Demonstrates observing a BPMN process in real time: a purchase-requisition

Copyright 2026 the Operaton contributors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0</descriptions><dmn:description>sds</dmn:description>
<dmn:description>sds</dmn:description>
<dmn:decision id="purchase-requisition-routing" name="Purchase Requisition Routing" operaton:historyTimeToLive="30">
<dmn:decisionTable id="decisionTable_routing" hitPolicy="FIRST">
<dmn:input id="input_amount" label="Amount">
Expand Down
51 changes: 51 additions & 0 deletions examples/dmn-decision/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,55 @@
</plugin>
</plugins>
</build>

<profiles>
<!-- Auto-activates on machines running Rancher Desktop instead of Docker Desktop -->
<profile>
<id>docker-alternative-rancher</id>
<activation>
Comment on lines +98 to +102
<file>
<exists>${user.home}/.rd/docker.sock</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<environmentVariables>
<DOCKER_HOST>unix://${user.home}/.rd/docker.sock</DOCKER_HOST>
<TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE>/var/run/docker.sock</TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE>
<TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED>
</environmentVariables>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- Auto-activates on machines running Colima instead of Docker Desktop -->
<profile>
<id>docker-alternative-colima</id>
<activation>
<file>
<exists>${user.home}/.colima/default/docker.sock</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<environmentVariables>
<DOCKER_HOST>unix://${user.home}/.colima/default/docker.sock</DOCKER_HOST>
<TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE>/var/run/docker.sock</TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE>
<TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED>
</environmentVariables>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
4 changes: 1 addition & 3 deletions examples/dmn-decision/src/main/resources/credit-decision.dmn
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?xml version='1.0' encoding='utf-8'?>
<dmn:definitions xmlns:dmn="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:operaton="http://operaton.org/schema/1.0/dmn" id="credit-decision-drg" name="Credit Decision DRG" namespace="http://operaton.org/examples/credit-decision">
<descriptions>A Spring Boot application demonstrating Operaton DMN decision evaluation from a BPMN

Copyright 2026 the Operaton contributors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0</descriptions><dmn:decision id="risk-level" name="Risk Level Assessment" operaton:historyTimeToLive="30">
<dmn:decision id="risk-level" name="Risk Level Assessment" operaton:historyTimeToLive="30">
<dmn:decisionTable id="dt_risk_level">
<dmn:input id="input_creditScore" label="Credit Score">
<dmn:inputExpression id="inputExpr_creditScore" typeRef="integer">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ Copyright 2026 the Operaton contributors. Licensed under the Apache License, Ver
<bpmn:sequenceFlow id="Flow_triage_to_gw" sourceRef="Task_FirstLineTriage" targetRef="Gateway_Resolved" />
<bpmn:sequenceFlow id="Flow_timer_to_secondline" sourceRef="BoundaryTimer_Escalate" targetRef="Task_SecondLine" />
<bpmn:sequenceFlow id="Flow_resolved" name="resolved" sourceRef="Gateway_Resolved" targetRef="Task_CloseTicket">
<bpmn:conditionExpression xsi:type="tFormalExpression">${resolved == true}</bpmn:conditionExpression>
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${resolved == true}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_not_resolved" name="not resolved" sourceRef="Gateway_Resolved" targetRef="Task_SecondLine">
<bpmn:conditionExpression xsi:type="tFormalExpression">${resolved != true}</bpmn:conditionExpression>
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${resolved != true}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_close_end" sourceRef="Task_CloseTicket" targetRef="EndEvent_Closed" />
<bpmn:sequenceFlow id="Flow_secondline_postmortem" sourceRef="Task_SecondLine" targetRef="Task_PostMortem" />
Expand All @@ -75,7 +75,7 @@ Copyright 2026 the Operaton contributors. Licensed under the Apache License, Ver
<bpmn:boundaryEvent id="BoundaryTimer_Escalate" name="SLA Timer" attachedToRef="Task_FirstLineTriage">
<bpmn:outgoing>Flow_timer_to_secondline</bpmn:outgoing>
<bpmn:timerEventDefinition id="TimerEventDefinition_1">
<bpmn:timeDuration xsi:type="tFormalExpression">${timerDuration}</bpmn:timeDuration>
<bpmn:timeDuration xsi:type="bpmn:tFormalExpression">${timerDuration}</bpmn:timeDuration>
</bpmn:timerEventDefinition>
</bpmn:boundaryEvent>
<bpmn:exclusiveGateway id="Gateway_Resolved" name="Resolved?">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<dmn:definitions xmlns:dmn="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:operaton="http://operaton.org/schema/1.0/dmn" id="claim-settlement-definitions" name="Claim Settlement" namespace="http://operaton.org/examples/insurance-claim">

<descriptions>Demonstrates the event-based gateway — a race between a message event (documents

Copyright 2026 the Operaton contributors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0</descriptions><dmn:decision id="claim-settlement" name="Claim Settlement" operaton:historyTimeToLive="30">
<dmn:decision id="claim-settlement" name="Claim Settlement" operaton:historyTimeToLive="30">
<dmn:decisionTable id="decisionTable_settlement" hitPolicy="FIRST">

<dmn:input id="input_fraud" label="Fraud suspected">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Copyright 2026 the Operaton contributors. Licensed under the Apache License, Ver
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_start_to_credit" sourceRef="StartEvent_1" targetRef="Task_CreditScore" />
<bpmn:sequenceFlow id="Flow_medium" name="medium" sourceRef="Gateway_Risk" targetRef="Task_UnderwriterReview">
<bpmn:conditionExpression xsi:type="tFormalExpression">${riskLevel == 'medium'}</bpmn:conditionExpression>
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${riskLevel == 'medium'}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_medium_end" sourceRef="Task_UnderwriterReview" targetRef="EndEvent_UnderwriterPending">
<bpmn:extensionElements>
Expand All @@ -60,10 +60,10 @@ Copyright 2026 the Operaton contributors. Licensed under the Apache License, Ver
<bpmn:sequenceFlow id="Flow_credit_to_dmn" sourceRef="Task_CreditScore" targetRef="Task_RiskAssessment" />
<bpmn:sequenceFlow id="Flow_dmn_to_gw" sourceRef="Task_RiskAssessment" targetRef="Gateway_Risk" />
<bpmn:sequenceFlow id="Flow_low" name="low" sourceRef="Gateway_Risk" targetRef="Task_AutoApprove">
<bpmn:conditionExpression xsi:type="tFormalExpression">${riskLevel == 'low'}</bpmn:conditionExpression>
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${riskLevel == 'low'}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_high" name="high" sourceRef="Gateway_Risk" targetRef="Task_AutoReject">
<bpmn:conditionExpression xsi:type="tFormalExpression">${riskLevel == 'high'}</bpmn:conditionExpression>
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${riskLevel == 'high'}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_approve_end" sourceRef="Task_AutoApprove" targetRef="EndEvent_Approved" />
<bpmn:sequenceFlow id="Flow_reject_end" sourceRef="Task_AutoReject" targetRef="EndEvent_Rejected" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<dmn:definitions xmlns:dmn="https://www.omg.org/spec/DMN/20191111/MODEL/" xmlns:operaton="http://operaton.org/schema/1.0/dmn" id="risk-assessment-definitions" name="Risk Assessment" namespace="http://operaton.org/examples">

<descriptions>A self-contained Operaton example for loan application triage that combines a credit-score service call, DMN evaluation, and conditional user-task routing.

Copyright 2026 the Operaton contributors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0</descriptions><dmn:decision id="risk-assessment" name="Risk Assessment" operaton:historyTimeToLive="30">
<dmn:decision id="risk-assessment" name="Risk Assessment" operaton:historyTimeToLive="30">
<dmn:decisionTable id="decisionTable_1" hitPolicy="FIRST">
<dmn:input id="input_creditScore" label="Credit Score">
<dmn:inputExpression id="inputExpression_creditScore" typeRef="integer">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ Copyright 2026 the Operaton contributors. Licensed under the Apache License, Ver
<bpmn:sequenceFlow id="Flow_start_to_inventory" sourceRef="StartEvent_1" targetRef="Task_ValidateInventory" />
<bpmn:sequenceFlow id="Flow_inventory_to_gw" sourceRef="Task_ValidateInventory" targetRef="Gateway_InStock" />
<bpmn:sequenceFlow id="Flow_in_stock" name="in stock" sourceRef="Gateway_InStock" targetRef="Task_ChargePayment">
<bpmn:conditionExpression xsi:type="tFormalExpression">${available == true}</bpmn:conditionExpression>
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${available == true}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_out_of_stock" name="out of stock" sourceRef="Gateway_InStock" targetRef="Task_NotifyBackorder">
<bpmn:conditionExpression xsi:type="tFormalExpression">${available == false}</bpmn:conditionExpression>
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${available == false}</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_payment_to_pack" sourceRef="Task_ChargePayment" targetRef="Task_PackShip" />
<bpmn:sequenceFlow id="Flow_pack_to_notify" sourceRef="Task_PackShip" targetRef="Task_NotifyCustomer" />
Expand Down
Loading