Coder Social home page Coder Social logo

Comments (6)

tsurdilo avatar tsurdilo commented on July 29, 2024 1
  1. no its not optional. have to wait for completion of service(s) that are executed.
  2. pr enough :)

from specification.

tsurdilo avatar tsurdilo commented on July 29, 2024

triggerEventRef is an event that the workflow instance has to produce. then waits for the "timeout" duration for resultEventRef. The payload of resultEventRef should be merged then to the state data before next action is executed. HTH

One thing I noticed is that in the "data" property description of EventRef definitions says:
"data (payload) of the produced event". Would be probably more clear if we add that this parameter is associated specifically to the triggerEventRef as its represents the payload of the trigger event this action produces.
Just something that we could add as a pr if anyone wants to help ...hint hint ;)

from specification.

LCaparelli avatar LCaparelli commented on July 29, 2024

triggerEventRef is an event that the workflow instance has to produce. then waits for the "timeout" duration for resultEventRef. The payload of resultEventRef should be merged then to the state data before next action is executed. HTH

Right, but couldn't resultEventRef be optional?

"data (payload) of the produced event". Would be probably more clear if we add that this parameter is associated specifically to the triggerEventRef as its represents the payload of the trigger event this action produces.
Just something that we could add as a pr if anyone wants to help ...hint hint ;)

Hehe, I'd love to send that in. :-)

Should I create a new issue or just the PR is enough?

from specification.

LCaparelli avatar LCaparelli commented on July 29, 2024

no its not optional. have to wait for completion of service(s) that are executed.

Ohhhh, right. Right, it makes sense to me now. Without it, we couldn't tell if the services which got triggered actually finished. Is that it?

from specification.

tsurdilo avatar tsurdilo commented on July 29, 2024

@LCaparelli yeah, allows to invoke a service or chain of services which are not exposed via rest for example, but are triggered via events. result event denotes the completion of this service (chain) exec.
This allows us to cover cases such as https://quarkus.io/guides/funqy-knative-events for example.

from specification.

LCaparelli avatar LCaparelli commented on July 29, 2024

Ah, awesome. The use case is much clearer to me now, thanks @tsurdilo! Closing the issue :-)

from specification.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.