-
1. Event definitions....
krisverlaenen Feb 20, 2011 9:09 PM (in response to aminmc)You could use an exclusive gateway after to signal event to add this kind of logic (only trigger the parallel join if for example the event data is "A". In my opinion though, it would probably be easier to create two different event types for this, "completeEventA" and "completeEventB", that way you don't need to add this type of logic to the process itself, keeping it easier and higher-level.
Kris
-
2. Event definitions....
aminmc Feb 21, 2011 3:41 AM (in response to krisverlaenen)Hi Kris
THanks for your reply. So can i not execute some kind of condition evaluation in the event definition? For example when I signal my event i can pass some business data which I thought could be used to evaluate the event before proceeding. Is this not possible?
Cheers
-
3. Event definitions....
krisverlaenen Feb 21, 2011 9:26 PM (in response to aminmc)If you're using a signal event definition in BPMN2, it allows you to specify the event type you're waiting for and how the data that is provided should be mapped to a process variable. You can then use it in the rest of your process to make decisions, for example by using an exclusive gateway after the event. It is not possible in BPMN2 to add a simple constraint as part of the signal event node. But you can use the event type to distinguish between different the different events in a process.
If you want to trigger the process instance in a specific, more complex condition, I suggest you take a look at the conditional event node, that allows you to specify a constraint as well. This type of event node is supported by the jBPM5 engine, unfortunately you'll have to edit the XML directly as editing the constraint is not possible in the existing BPMN2 eclipse editor. An example of a conditional event node can be found here:
Kris