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.
-
While looking at event state it defines
onEvents
which 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 levelsonEvents
sort of means events to be listening for and perform actions on receiveeventRefs
are actual references to the events to listen forThe first problem I see is that the
exclusive
attribute is on the same asonEvents
which in my opinion is correct as then it would apply to all items of theonEvents
array. And by that I'd sayOnEvent
should 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
OnEvents
definition to have only oneeventRef
instead of the list as this will make it easier to consume from users of the workflow definition. Plus it will be really explicit how theexclusive
attribute applies. As currently it is not rally known what should happen. Let's take an exampleonEvents
array items definedexclusive
attribute is set tofalse
would 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
onEvents
array items definedexclusive
attribute is set tofalse
it 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