Event state and multiplicity of events referenced #581
Replies: 4 comments 38 replies
-
|
Another alternative could be to make |
Beta Was this translation helpful? Give feedback.
-
I think there is a use case for having eventRefs as array and it has to do with correlation. Currently event definitions are domain-specific and referenced by name only. There is nothing to prevent me from defining: and then do: In this case its same event but different correlation defined. |
Beta Was this translation helpful? Give feedback.
-
|
@mswiderski +1 to make |
Beta Was this translation helpful? Give feedback.
-
|
Closing this discussion as it applies to a discontinued version of the spec. I invite all participants to take a look at the new DSL and open a new discussion or issue if any of the discussed problem persist! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
While looking at event state it defines
onEventswhich is a list of event actions that should happen plus it references an array of event definitions it should react to. So from user perspective it seems like two levelsonEventssort of means events to be listening for and perform actions on receiveeventRefsare actual references to the events to listen forThe first problem I see is that the
exclusiveattribute is on the same asonEventswhich in my opinion is correct as then it would apply to all items of theonEventsarray. And by that I'd sayOnEventshould have only one reference to event definition and not array.From runtime implementation point of view event definitions can be different from following perspectives
With these point in mind I'd like to suggest to change the
OnEventsdefinition to have only oneeventRefinstead of the list as this will make it easier to consume from users of the workflow definition. Plus it will be really explicit how theexclusiveattribute applies. As currently it is not rally known what should happen. Let's take an exampleonEventsarray items definedexclusiveattribute is set tofalsewould this setup mean that it will only continue if there will be 15 events received?
Changing to what I suggest it would be clear that having
onEventsarray items definedexclusiveattribute is set tofalseit will only continue when 5 events are received and that each event definition can actually come from distinct channels and have their own specific data formats.
What are your thoughts guys?
Beta Was this translation helpful? Give feedback.
All reactions