title: Implement a JBPM process with two starting messages
body: <p><a href="https://i.stack.imgur.com/6FhuG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6FhuG.png" alt="business process" /></a></p>
  <p>I'm trying to implement a business process (partially shown in the figure), using JBPM and the Business Central Workspace. The business process is built without errors, but then when I deploy it, the behaviour is not the one expected.</p>
  <p>Specfically, the behaviour that I would like to obtain is the following:</p>
  <ol>
  <li>The process starts when a temperature OR co2 message is received (it is not possible to know if the first event received is the temperature or the co2 one).</li>
  <li>When a temperature message is received, TaskTemperature is executed.</li>
  <li>When a co2 message is received, TaskCO2 is executed.</li>
  <li>After that both a temperature AND a co2 messages are received, TaskJoined should be executed.</li>
  </ol>
  <p>Instead, running the process in the figure above, the behaviour that I obtain is the following:</p>
  <ol>
  <li>The process starts when a temperature OR co2 message is received (it is not possible to know if the first event received is the temperature or the co2 one).</li>
  <li>When a temperature message is received TaskTemperature is executed.</li>
  <li>When a co2 message is received TaskCO2 is executed.</li>
  <li>The process &quot;stops&quot; in the Gateway and TaskJoined is never executed.</li>
  </ol>
  <p>Is there another way to obtain the behaviour that I want?</p>
  <p>I know that if I modify the process in this way</p>
  <p><a href="https://i.stack.imgur.com/r5srV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r5srV.png" alt="Alternative Business Process" /></a></p>
  <p>the TaskJoined is correctly executed, but, since in my case, there is no a predefined sequence for the two messages, this solution cannot work for me.</p>