How to set a Conditional Event

953 views
Skip to first unread message

Alfonso Mateos Alarcón

unread,
Nov 8, 2013, 7:37:52 AM11/8/13
to camunda-...@googlegroups.com
Hi guys,

I don't find how to set the trigger condition for a Conditional Event in my BPMN process. I don't find special settings for this element inside Camunda Modeler, so I wonder if somebody can provide a simple example on how to use it, by copying the XML fragment right here... The fragment I don't know how to configure is:


      <bpmn2:intermediateCatchEvent id="IntermediateCatchEvent_1" name="Intermediate Catch Event">

        <bpmn2:incoming>SequenceFlow_22</bpmn2:incoming>

        <bpmn2:outgoing>SequenceFlow_28</bpmn2:outgoing>

        <bpmn2:conditionalEventDefinition id="ConditionalEventDefinition_2"/>

      </bpmn2:intermediateCatchEvent>

I'd be glad if any of you could provide the configuration for an element like this, I cannot figure out how to do it, at least from XML.

Thanks in advance.




Daniel Meyer

unread,
Nov 8, 2013, 7:46:38 AM11/8/13
to camunda-...@googlegroups.com

Hi Alfonso,

 

the conditional event is currently not supported in the process engine. Do you want to use it in the modeler only or also in the process engine?

 

Cheers,

Daniel

--
You received this message because you are subscribed to the Google Groups "camunda BPM users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camunda-bpm-us...@googlegroups.com.
To post to this group, send email to camunda-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/camunda-bpm-users/a9939c75-f487-4ed8-b645-ef52a9812f6b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Bernd Rücker (camunda)

unread,
Nov 8, 2013, 7:48:23 AM11/8/13
to camunda-...@googlegroups.com

Hi Alfonso.

 

Our engine does not support the conditional event (see http://docs.camunda.org/latest/api-references/bpmn20/) – that’s why you do not see any special support in camunda modeler and cannot deploy it on the engine.

 

In the XML it would look like this – where the condition might be tool specific:

 

<conditionalEventDefinition>

    <condition language="...">...</condition>

</conditionalEventDefinition>

 

See spec p. 264:

 

 

Cheers

Bernd

 

Von: camunda-...@googlegroups.com [mailto:camunda-...@googlegroups.com] Im Auftrag von Alfonso Mateos Alarcón
Gesend
et: Freitag, 8. November 2013 13:38
An: camunda-...@googlegroups.com
Betreff: [camunda-bpm-users] How to set a Conditional Event

 

Hi guys,

--

image001.png

Alfonso Mateos Alarcón

unread,
Nov 8, 2013, 8:12:16 AM11/8/13
to camunda-...@googlegroups.com
Thanks Daniel,

My intention was to use it in the process engine, so that I could trigger events based, for instance, on a expression upon process variables. I can drop it into the BPMN diagram with the modeler, no problem with that, but I cannot configure from it, but I could cope with it if I could execute it with the engine.

If it's not supported by the process engine, can you suggest me a workaround for an equivalent functionality? Thanks in advance!

I want to add that you are doing a great job with Camunda!

Alfonso Mateos Alarcón

unread,
Nov 8, 2013, 8:19:43 AM11/8/13
to camunda-...@googlegroups.com
Hi Bernd,

Thanks a lot for your answer, I didn't realize that non-orange colors were not supported :-)

Could you tell me where is that BMPN guide where I can find page 264? The url you gave me points to a non-paged html document...
I'd be thankful if you tell give me the url of the spec so that I can know the xml syntax for other elements from now on.

Thanks again!

Bernd Rücker (camunda)

unread,
Nov 8, 2013, 8:21:22 AM11/8/13
to camunda-...@googlegroups.com

Hi Alfonso.

 

Sorry – I pointed to the BPMN 2.0 specification document on how condition elements work ;-) Best ignore it – the important information is that the engine does not (yet?) support it.

Bernd Rücker (camunda)

unread,
Nov 8, 2013, 8:24:17 AM11/8/13
to camunda-...@googlegroups.com

Hi Alfonso.

 

If you want to evaluate expressions during execution of the flow you should use a gateway.

 

Or do you want to wait until some external event changes some process variables? In this case I would suggest to use a message event instead of condition event.

 

Does this help? Otherwise it might be good to share an example of your process to make requirements clear. You could use http://camunda.org/share/ for this :-)

 

Cheers

Bernd

Alfonso Mateos Alarcón

unread,
Nov 11, 2013, 4:54:27 AM11/11/13
to camunda-...@googlegroups.com
Hi Bernd,

Thanks a lot for your kindness and for your attention.

I'd like somehow a combination of both functionalities, in fact what I'm really searching for is the ability to wait until a combination of internal variables of the process changes. For instance if a timer gets triggered and some conditions are accomplished (i.e. "document accepted" == true) then I'd like to triggered an event. Or the opposite, if the time trigger should be triggered but the other condition has not been accomplished, then when the "accepted" variable gets true, then it should be triggered because both conditions are now accomplished. The idea is about triggering this thing from outside of the main process flow, from a separate subprocess.

Don't know if I explained myself clearly enough, if not please don't hesitate about asking for more details.

Also, I will think about the possibilities you mention that are supported now on the Camunda engine, to figure out how to workaround this functionality.

Thanks again!

Bernd Rücker (camunda)

unread,
Nov 13, 2013, 12:23:08 PM11/13/13
to camunda-...@googlegroups.com

Hi Alfonso.

 

I would do something like this as a workaround: http://camunda.org/share/#/process/c7383f01-6d7e-4d77-8502-c5bce503803d. WDYT?

 

Cheers

Bernd

Alfonso Mateos Alarcón

unread,
Nov 14, 2013, 6:53:14 AM11/14/13
to camunda-...@googlegroups.com
Yes, kind of!
Thanks a lot, Bernd ;-)
Reply all
Reply to author
Forward
0 new messages