support fluxnova namespace - #291
Open
sivascorpio94 wants to merge 1 commit into
Open
Conversation
|
|
osfidelity
force-pushed
the
feature/support-fluxnova-namespace
branch
2 times, most recently
from
August 31, 2026 18:24
7720deb to
13b37ed
Compare
osfidelity
force-pushed
the
feature/support-fluxnova-namespace
branch
from
August 31, 2026 18:34
13b37ed to
fc80559
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue: #268
The Fluxnova BPM Engine (v3.0.0+) only recognized service task implementation attributes when they used the camunda: namespace. Equivalent fluxnova: attributes were not supported during BPMN parsing, preventing complete migration from Camunda-specific namespaces to Fluxnova namespaces.
Impact: BPMN models using fluxnova: namespace attributes (for example, fluxnova:class, fluxnova:delegateExpression, fluxnova:asyncBefore) failed deployment with parsing errors:
ENGINE-09005 Could not parse BPMN process. Errors:
One of the attributes 'class', 'delegateExpression', 'type', or 'expression'
is mandatory on serviceTask.
Solution
Implemented comprehensive support for fluxnova: namespace attributes across the BPMN parser by:
New Helper Method
Created a helper method getAttributeWithNamespace() in BpmnParse.java that:
Checks the camunda: namespace first (backward compatibility)
Falls back to the fluxnova: namespace if not found
Supports default values
Parser Updates
Updated 40+ attribute parsing locations to use the new helper method, including:
Service Tasks
class
delegateExpression
expression
type
User Tasks
assignee
candidateUsers
candidateGroups
formKey
priority
dueDate
followUpDate
Process Definition
versionTag
historyTimeToLive
isStartableInTasklist
Async Execution
asyncBefore
asyncAfter
async
exclusive
Error Handling
errorMessage
errorCodeVariable
errorMessageVariable
Multi-Instance
collection
elementVariable
External Tasks
topic
Business Rules
decisionRef
mapDecisionResult
Start Events
initiator
candidateStarterUsers
candidateStarterGroups
Call Activities
caseRef
variableMappingClass
variableMappingDelegateExpression
And many more.
Additional Update
Updated HistoryTimeToLiveParser.java to support the fluxnova:historyTimeToLive attribute.
Files Modified
BpmnParse.java
HistoryTimeToLiveParser.java
Backward Compatibility
Fully backward compatible.
All existing BPMN files using the camunda: namespace continue to work without modifications. The parser checks the camunda: namespace first and then falls back to the fluxnova: namespace.
Example
TestingCreated a comprehensive test suite: FluxnovaNamespaceServiceTaskTest
Validated Scenarios
fluxnova:class attribute recognition
fluxnova:delegateExpression attribute recognition
fluxnova:expression attribute recognition
fluxnova:type attribute recognition (external tasks)
Comprehensive scenario validating:
fluxnova:historyTimeToLive on the process definition
fluxnova:asyncBefore on a service task
fluxnova:class on a service task
fluxnova:properties extension elements
Test Files
FluxnovaNamespaceServiceTaskTest.java
FluxnovaNamespaceServiceTaskTest.testFluxnovaClass.bpmn20.xml
FluxnovaNamespaceServiceTaskTest.testFluxnovaDelegateExpression.bpmn20.xml
FluxnovaNamespaceServiceTaskTest.testFluxnovaExpression.bpmn20.xml
FluxnovaNamespaceServiceTaskTest.testFluxnovaType.bpmn20.xml
FluxnovaNamespaceServiceTaskTest.testFluxnovaComprehensive.bpmn20.xml
Verification
Successfully validated that BPMN files deploy without errors and that process definitions are correctly created with all fluxnova: namespace attributes properly parsed.
Before: Deployment failure with ENGINE-09005 error
After: Successful deployment with all attributes recognized