fjtirado commented on issue #3574: URL: https://github.com/apache/incubator-kie-kogito-runtimes/issues/3574#issuecomment-2220055209
@deepakkapoor23 There is a mismatch between the spec and the Java SDK. The spec mentions that data might be an object or a string but here data is defined as string https://github.com/serverlessworkflow/sdk-java/blob/2.0.x/api/src/main/resources/schema/events/eventref.json I think this should be fixed in the SDK. Please open the issue there In the meantime, as a workaroung, use ``` { "name": "ErrorWithCompensation", "type": "operation", "actions": [ { "functionRef": "logProcessContext" } ], "end": { "terminate": true, "compensate": true, "produceEvents": [{ "eventRef": "FailureEvent", "data": "{ error: .error, replay: true }", "contextAttributes": { "correlationid": ".someId" } }] } } ``` -- 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]
