-
1. Re: start message event node?
saig0 Oct 20, 2012 6:45 PM (in response to cedric.hurst)Hi Cendric Hurst!
The start message event is supported in jbpm. In the jbpm-examle project (http://sourceforge.net/projects/jbpm/files/jBPM%205/jbpm-5.3.0.Final/jbpm-5.3.0.Final-examples.zip/download) are many examples of bpmn processes with junit-tests. There is one example with a start message event: testMessageStart() with BPMN2-MessageStart.bpmn2
In this example the process has the start message event: HelloMessage
The process starts by calling the signal: Message-HelloMessage
public void testMessageStart() throws Exception { KnowledgeBase kbase = createKnowledgeBase("BPMN2-MessageStart.bpmn2"); StatefulKnowledgeSession ksession = createKnowledgeSession(kbase); ksession.signalEvent("Message-HelloMessage", "NewValue"); }
-
2. Re: start message event node?
cedric.hurst Oct 22, 2012 4:00 PM (in response to cedric.hurst)Thank you so much for this tip. It helped tremendously.
-
3. Re: start message event node?
cecchisandrone Oct 23, 2012 4:02 AM (in response to cedric.hurst)Hi, did you use the web designer to model this?
In my case I cannot find a way to define <message ..> items.
-
4. Re: start message event node?
tsurdilovic Oct 23, 2012 7:28 PM (in response to cecchisandrone)what version of jbpm designer are you using? messageref should be a property of the message start event.
-
5. Re: start message event node?
cecchisandrone Oct 24, 2012 2:09 AM (in response to tsurdilovic)Hi Tihomir,
I'm using the latest (2.4.0 Beta1).
I can see the messageref attribute, but from what I understand this is a reference to a <bpmn2:message /> that can't be defined via the designer. Is that right?
Thanks
EDIT: Tihomir it seems that there are some cases that don't work. I tried with a new process and the <bpmn2:process id="message_event" drools:packageName="plx"/> is created.