masayag opened a new issue, #3084:
URL: https://github.com/apache/incubator-kie-tools/issues/3084

   The spec requires both `triggerEventRef` and `resultEventRef` in the 
`eventRef` 
[definition](https://github.com/serverlessworkflow/specification/blob/0.8.x/specification.md#eventref-definition).
   However, the sontataflow-runtimes supports only `triggerEventRef`.
   
   However, trying to generate manifests for a workflow without the 
`resultEventRef` fails with:
   ```
   Error: ❌ ERROR: generating manifests: Failed to parse the workflow either as 
a JSON or as a YAML file: workflow.states[1].actions[0].eventRef.resultEventRef 
is required
   ```
   
   This will probably fail to be applied as a Sonataflow custom resource on k8s 
cluster.
   
   To reproduce use the workflow definition from: 
https://github.com/ricardozanini/poc-kafka-logic-operator/blob/main/callback-flow/src/main/resources/lock.sw.yaml
   
   To summarize, there are 3 shown issues, but only 2 are critical:
   - kn-workflow fails to generate manifests (critical)
   - applying a custom resource on the cluster fails (critical)
   - the vscode extension highlights the `eventRef` element as errored without 
`resultEventRef` (normal) 
   
   The expected behavior is for the `resultEventRef` to be optional to have a 
compliance between the workflow definition, the runtimes and the tools 
(kn-workflow and the operator).
   


-- 
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]

Reply via email to