You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "masayag (via GitHub)" <gi...@apache.org> on 2025/04/28 16:58:35 UTC

[I] [kn-workflow] Failed to render eventRef that has only triggerEventRef [incubator-kie-tools]

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: commits-unsubscribe@kie.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] [kn-workflow] Failed to render eventRef that has only triggerEventRef [incubator-kie-tools]

Posted by "treblereel (via GitHub)" <gi...@apache.org>.
treblereel commented on issue #3084:
URL: https://github.com/apache/incubator-kie-tools/issues/3084#issuecomment-2835955825

   @ricardozanini It looks like those props are missed in the marshallers as well


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] [kn-workflow] Failed to render eventRef that has only triggerEventRef [incubator-kie-tools]

Posted by "masayag (via GitHub)" <gi...@apache.org>.
masayag commented on issue #3084:
URL: https://github.com/apache/incubator-kie-tools/issues/3084#issuecomment-2835899147

   cc @fantonangeli 


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] [kn-workflow] Failed to render eventRef that has only triggerEventRef [incubator-kie-tools]

Posted by "tiagobento (via GitHub)" <gi...@apache.org>.
tiagobento commented on issue #3084:
URL: https://github.com/apache/incubator-kie-tools/issues/3084#issuecomment-4920027034

   Closing due to https://github.com/apache/incubator-kie-tools/pull/3540


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] [kn-workflow] Failed to render eventRef that has only triggerEventRef [incubator-kie-tools]

Posted by "ricardozanini (via GitHub)" <gi...@apache.org>.
ricardozanini commented on issue #3084:
URL: https://github.com/apache/incubator-kie-tools/issues/3084#issuecomment-2835906489

   @handreyrc can you take a look at the VSCode side? We should not warn about this, although the spec says `resultEventRef` is required, the backend treats it as optional.


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] [kn-workflow] Failed to render eventRef that has only triggerEventRef [incubator-kie-tools]

Posted by "ricardozanini (via GitHub)" <gi...@apache.org>.
ricardozanini commented on issue #3084:
URL: https://github.com/apache/incubator-kie-tools/issues/3084#issuecomment-2835902485

   @treblereel can work on this, @masayag. Thanks for submitting it!


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org


Re: [I] [kn-workflow] Failed to render eventRef that has only triggerEventRef [incubator-kie-tools]

Posted by "tiagobento (via GitHub)" <gi...@apache.org>.
tiagobento closed issue #3084: [kn-workflow] Failed to render eventRef that has only triggerEventRef
URL: https://github.com/apache/incubator-kie-tools/issues/3084


-- 
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: commits-unsubscribe@kie.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org