gabriel-farache opened a new issue, #987:
URL: https://github.com/apache/incubator-kie-issues/issues/987
When an error occurs when, for instance, sending REST request using
`extension`, the error is not propagated and the workflow hangs in `active`
state.
```
extensions:
- extensionid: workflow-uri-definitions
definitions:
notifications:
"https://raw.githubusercontent.com/janus-idp/backstage-plugins/%40janus-idp/plugin-notifications-backend%401.0.3/plugins/notifications-backend/src/openapi.yaml"
functions:
- name: createNotification
operation: notifications#createNotification
```
Log:
```
2024-03-04 14:05:24,282 ERROR
[org.jbp.wor.ins.imp.WorkflowProcessInstanceImpl] (executor-thread-4)
Unexpected error while executing node createNotification in process instance
f53b870e-9d38-4ad4-b499-2d066b84e9b6:
org.jbpm.workflow.instance.WorkflowRuntimeException:
[MTAAnalysis:f53b870e-9d38-4ad4-b499-2d066b84e9b6 - createNotification:46] --
RESTEASY004655: Unable to invoke request: java.net.UnknownHostException:
bckstage-backstage.backstage-system: Name or service not known
```
Here the error was caused because the host was unknown.
WHen accessing `management/processes/ {workflow def id}/instances/{instance
id}/error`, we have
```
{"failedNodeId":"_jbpm-unique-38","id":"f53b870e-9d38-4ad4-b499-2d066b84e9b6","message":"java.net.UnknownHostException
- bckstage-backstage.backstage-system: Name or service not known"}
```
When sending REST request with specs file located in the workflow, the error
seems to be correctly propagated
--
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]