Skip to content

fix: detect resource deletion in dmn engine duplicate deployment filter - #4331

Open
omkasera972-ai wants to merge 5 commits into
flowable:mainfrom
omkasera972-ai:fix/deploy-resource-deletion-dmn
Open

omkasera972-ai wants to merge 5 commits into
flowable:mainfrom
omkasera972-ai:fix/deploy-resource-deletion-dmn

Conversation

@omkasera972-ai

Copy link
Copy Markdown

Description

This pull request fixes a logic bug in the DMN engine duplicate deployment filter (deploymentsDiffer method inside DeployCmd in flowable-dmn-engine).

Previously, when checking if a new DMN deployment differed from an existing saved deployment, the code only checked resources present in the new deployment. If a user deleted a non-generated resource while keeping remaining resources identical, the duplicate filter failed to notice the deletion and returned false. This caused the DMN engine to skip creating the new deployment.

Changes

  • Updated deploymentsDiffer in modules/flowable-dmn-engine/src/main/java/org/flowable/dmn/engine/impl/cmd/DeployCmd.java to verify whether any non-generated resource in savedResources was removed in the new deployment.
  • Used Modern Java Functional Stream API for the deletion check.
  • Returns true when a resource deletion is detected so that a new DMN deployment is triggered properly.

Checklist

  • Unit tests: NA (Logic fix on duplicate filter check)
  • Documentation: NA

🤖 Generated with Claude Code

This branch has not been deployed

No deployments
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.

1 participant