cancel
Showing results for 
Search instead for 
Did you mean: 

Message Event

kotreshgt
Champ in-the-making
Champ in-the-making
<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:activiti="http://activiti.org/bpmn"
  targetNamespace="Examples"
  xmlns:tns="Examples">
 
  <message id="newInvoice" name="newInvoiceMessage" />
 
  <process id="otherMessageProcess">
 
    <startEvent id="theStart" >
       <messageEventDefinition messageRef="tns:newInvoice" />
    </startEvent>
   
    <sequenceFlow id="flow1" sourceRef="theStart" targetRef="task" />
 
    <userTask id="task" name="Task" />
    <sequenceFlow id="flow2" sourceRef="task" targetRef="theEnd" />
   
    <endEvent id="theEnd" />
   
  </process>

</definitions>

How do i communicate with jms messaging
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
By default, we don't have an "out of the box" activity-type that send a JMS-message. However, the serviceTasks are pluggable (using your classes or even your Spring/CDI beans that are called as part of the process).

Take a look at http://activiti.org/userguide/index.html#bpmnJavaServiceTask for details on how to plug in your JMS-sending code in an activiti process.