deepakkapoor23 opened a new issue, #3576:
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/3576
### Describe the bug
An onErrors block defined on a compensating operation state fails with a
build validation error.
`{
"name": "CancelItem",
"type": "operation",
"usedForCompensation": true,
"actions": [
{
"functionRef": {
"refName": "cancelItem",
"arguments": {
"orderId": ".itemId"
}
}
}
],
"onErrors": [
{
"errorRefs": ["ServiceException", "TransportException"],
"transition": "HandleError"
}
]
}`
### Expected behavior
Ecpect the compensating state to be able to define an error handler just as
any other state.
### Actual behavior
Validation failure:
Found error: {}: java.lang.IllegalArgumentException: Could not find node to
attach to: 50
at
org.jbpm.ruleflow.core.RuleFlowProcessFactory.findNodeByIdOrUniqueIdInMetadata(RuleFlowProcessFactory.java:432)
at
org.jbpm.ruleflow.core.RuleFlowProcessFactory.linkBoundaryEvents(RuleFlowProcessFactory.java:301)
at
org.jbpm.ruleflow.core.RuleFlowProcessFactory.link(RuleFlowProcessFactory.java:278)
at
org.jbpm.ruleflow.core.RuleFlowProcessFactory.validate(RuleFlowProcessFactory.java:241)
at
org.kie.kogito.serverless.workflow.parser.ServerlessWorkflowParser.parseProcess(ServerlessWorkflowParser.java:173)
at
org.kie.kogito.serverless.workflow.parser.ServerlessWorkflowParser.getProcessInfo(ServerlessWorkflowParser.java:184)
at
org.kie.kogito.codegen.process.ProcessCodegen.parseWorkflowFile(ProcessCodegen.java:229)
at
org.kie.kogito.codegen.process.ProcessCodegen.lambda$ofCollectedResources$1(ProcessCodegen.java:128)
### How to Reproduce?
_No response_
### Output of `uname -a` or `ver`
windows 11
### Output of `java -version`
java 17
### GraalVM version (if different from Java)
_No response_
### Kogito version or git rev (or at least Quarkus version if you are using
Kogito via Quarkus platform BOM)
999-snapshot
### Build tool (ie. output of `mvnw --version` or `gradlew --version`)
gradle 8.6
### Additional information
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]