extremedevs opened a new issue, #4157:
URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/4157
### Describe the bug
Hi Team,
I've a failing Service Task which throw a RuntimeException but I never be
able to retry the service task because the management console doesnt see my
failing node and my state process is never persitated in data-index.
When I explore the source code, I see
org/jbpm/workflow/instance/impl/NodeInstanceImpl.java:262 (tags 10.1.0) the
following code
```java
if (!WORKFLOW_PARAM_TRANSACTIONS.get(getProcessInstance().getProcess())) {
logger.error("Node instance causing process instance error in id {} in a
non transactional environment", this.getStringId());
captureError(e);
return;
} else {
logger.error("Node instance causing process instance error in id {} in a
transactional environment (Wrapping)", this.getStringId());
throw new
ProcessInstanceExecutionException(this.getProcessInstance().getId(),
this.getNodeDefinitionId(), this.getId(), e.getMessage(), e);
}
```
IMO captureError(e) must be called on a transaction environment because this
method set the processus to ERROR state.
Can you help me to undestand what is going and be able to retry a failing
service task ?
### Expected behavior
_No response_
### Actual behavior
_No response_
### How to Reproduce?
_No response_
### Output of `uname -a` or `ver`
_No response_
### Output of `java -version`
_No response_
### 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)
_No response_
### Build tool (ie. output of `mvnw --version` or `gradlew --version`)
_No response_
### 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]