Skip to content

fix: remove invalid <descriptions> from DMN files, add bpmn: prefix t…#25

Merged
kthoms merged 1 commit into
mainfrom
fix-examples
Jul 1, 2026
Merged

fix: remove invalid <descriptions> from DMN files, add bpmn: prefix t…#25
kthoms merged 1 commit into
mainfrom
fix-examples

Conversation

@kthoms

@kthoms kthoms commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

…o xsi:type

is not a valid DMN 1.3 element and causes a SAXException on deployment in Operaton 2.1.2. Remove it from credit-decision.dmn, purchase-requisition-routing.dmn, claim-settlement.dmn, risk-assessment.dmn.

xsi:type="tFormalExpression" (unqualified) fails schema validation in the updated engine; change to xsi:type="bpmn:tFormalExpression" in loan-application.bpmn, incident-management.bpmn, order-fulfillment.bpmn.

Claude-Session: https://claude.ai/code/session_018MQnsh6ZTicNjjhccHMwuh

…o xsi:type

<descriptions> is not a valid DMN 1.3 element and causes a SAXException on
deployment in Operaton 2.1.2. Remove it from credit-decision.dmn,
purchase-requisition-routing.dmn, claim-settlement.dmn, risk-assessment.dmn.

xsi:type="tFormalExpression" (unqualified) fails schema validation in the
updated engine; change to xsi:type="bpmn:tFormalExpression" in
loan-application.bpmn, incident-management.bpmn, order-fulfillment.bpmn.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018MQnsh6ZTicNjjhccHMwuh
Copilot AI review requested due to automatic review settings July 1, 2026 23:01
@kthoms kthoms merged commit 36e75e8 into main Jul 1, 2026
9 of 10 checks passed
@kthoms kthoms deleted the fix-examples branch July 1, 2026 23:04

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses XML schema-validation problems in Operaton 2.1.2 by removing invalid DMN <descriptions> elements and qualifying unprefixed BPMN xsi:type values so deployments no longer fail with SAX/schema validation errors.

Changes:

  • Removed invalid <descriptions> blocks from several DMN 1.3 models.
  • Updated BPMN conditional/timer expressions to use xsi:type="bpmn:tFormalExpression" where needed.
  • Added Maven profiles in examples/dmn-decision to auto-adjust Testcontainers environment variables for Rancher Desktop / Colima (note: not mentioned in PR description).

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
examples/use-cases/order-fulfillment/src/main/resources/order-fulfillment.bpmn Qualifies conditionExpression xsi:type with bpmn: prefix for schema validity.
examples/use-cases/loan-application/src/main/resources/risk-assessment.dmn Removes invalid DMN <descriptions> element to prevent DMN 1.3 parse/validation errors.
examples/use-cases/loan-application/src/main/resources/loan-application.bpmn Qualifies multiple gateway condition expressions with xsi:type="bpmn:tFormalExpression".
examples/use-cases/insurance-claim/src/main/resources/claim-settlement.dmn Removes invalid DMN <descriptions> element.
examples/use-cases/incident-management/src/main/resources/incident-management.bpmn Qualifies condition expressions and timer duration xsi:type with bpmn: prefix.
examples/dmn-decision/src/main/resources/credit-decision.dmn Removes invalid DMN <descriptions> element.
examples/dmn-decision/pom.xml Adds auto-activating Maven profiles that change Testcontainers/Docker environment variables.
examples/approval-sla-metrics/src/main/resources/purchase-requisition-routing.dmn Removes invalid <descriptions> element, leaving a dmn:description entry.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<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>
Comment on lines +98 to +102
<profiles>
<!-- Auto-activates on machines running Rancher Desktop instead of Docker Desktop -->
<profile>
<id>docker-alternative-rancher</id>
<activation>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants