cancel
Showing results for 
Search instead for 
Did you mean: 

Catching Intermediate Message-Event: already supported?

duskstrider
Champ in-the-making
Champ in-the-making
Hi all,

at first: thank you for this wonderful process engine under a liberate license-model like the Apache.

I have a pretty basic question. Can I use catching intermediate message-events to wait for / react to an incoming mail or ANY kind of message?

i.e.
- wait for the message to arrive
- parse the content of the incoming message
- store (parts of) the received content in process variables

Is this possible in Activiti?

I browsed through JIRA and all I found was the unresolved issue
http://jira.codehaus.org/browse/ACT-32
which goes in the same direction, but is not necessarily identical to my question …

Thanks for your help,

Greetings,

Duskstrider
2 REPLIES 2

jfisher
Champ in-the-making
Champ in-the-making
I just started to look at Aciviti and have the same basic question. I don't see a start event that let's a process instance be created by receipt of a message of some sort (email, jms, file added to directory, etc.). This seems like a very common requirement. Is there some obvious way to do this that I've overlooked?

trademak
Star Contributor
Star Contributor
Hi,

For both the intermediate message event as well as the start event you can use the Camel, Mule and eventually the Spring Integration frameworks in combination with Activiti to accomplish this.
For the intermediate message event you can use a receive task that is completed when a message from a certain source (JMS, WS etc) is processed by Camel, Mule or Spring Integration. To be able to do this you need some kind of correlation identifier to lookup the right process instance when such a message arrives.

The same is true for the start event. You can use Camel, Mule or Spring Integration to consume a message from a specific source and start a new process instance from there.

In the future we may start to support the BPMN 2.0 intermediate message event and message start event.

Best regards,