<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Camel integration in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/camel-integration/m-p/182212#M135342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I followed this article &lt;/SPAN&gt;&lt;A href="http://bpmn20inaction.blogspot.co.uk/2013/03/using-camel-routes-in-activiti-made.html" rel="nofollow noopener noreferrer"&gt;http://bpmn20inaction.blogspot.co.uk/2013/03/using-camel-routes-in-activiti-made.html&lt;/A&gt;&lt;SPAN&gt; and the Activiti in action book to setup Activiti with Camel. The examples provided work fine but I wanted Camel to use an external ActiveMQ broker. I set this up like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;bean id="activemq"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class="org.apache.activemq.camel.component.ActiveMQComponent"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="brokerURL" value="tcp://somehost:60616"/&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted the message to be passed from Activiti to an external queue ("activemq:firstQueue"), from where it would be consumed by some application. This application would do some processing and put the message onto "activemq:secondQueue". From there the message would be routed back to Activiti:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My routes are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;from("activiti:process_camel:camelTask").to("seda:asyncQueue");&lt;BR /&gt;from("seda:asyncQueue").to("activemq:firstQueue");&lt;BR /&gt;from("activemq:secondQueue").to("seda:receiveQueue");&lt;BR /&gt;from("seda:receiveQueue").to("activiti:process_camel:receiveTask");&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run a process instance using these routes I get this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;org.activiti.engine.ActivitiIllegalArgumentException: Business key is null&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to use an external ActiveMQ broker in this way with Activiti and Camel?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Jul 2014 11:04:03 GMT</pubDate>
    <dc:creator>mas82</dc:creator>
    <dc:date>2014-07-09T11:04:03Z</dc:date>
    <item>
      <title>Camel integration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/camel-integration/m-p/182212#M135342</link>
      <description>Hi All,I followed this article http://bpmn20inaction.blogspot.co.uk/2013/03/using-camel-routes-in-activiti-made.html and the Activiti in action book to setup Activiti with Camel. The examples provided work fine but I wanted Camel to use an external ActiveMQ broker. I set this up like this:&amp;lt;bean i</description>
      <pubDate>Wed, 09 Jul 2014 11:04:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/camel-integration/m-p/182212#M135342</guid>
      <dc:creator>mas82</dc:creator>
      <dc:date>2014-07-09T11:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Camel integration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/camel-integration/m-p/182213#M135343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe that when the message is sent back to the ActiveMQ secondQueue the message headers or properties that include the process instance id are not there anymore? What's the message that is sent to the secondQueue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 11:32:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/camel-integration/m-p/182213#M135343</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-07-10T11:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Camel integration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/camel-integration/m-p/182214#M135344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am sending a String message (a single variable from Activiti) using this setting: org.activiti.camel.impl.CamelBehaviorCamelBodyImpl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am able to monitor the messages' contents on the queues and within my ActiveMQ client which consumes the message and passes it on. On the very first queue the message body is set correctly, but no Activiti related properties are set. The only property set is Camel's breadcrumbId. Should I take any extra steps to make sure that Activiti properties (business key and/or process id - I don't remember the exact names) are set?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tried to use the CamelBehaviorDefaultImpl setting, with three variables set in Activiti, and still the only property set on the message that reaches the first queue is breadcrumbId.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Michal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jul 2014 13:42:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/camel-integration/m-p/182214#M135344</guid>
      <dc:creator>mas82</dc:creator>
      <dc:date>2014-07-14T13:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Camel integration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/camel-integration/m-p/182215#M135345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the Activiti code we do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Exchange ex = new DefaultExchange(camelContextObj);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ex.setProperty(ActivitiProducer.PROCESS_ID_PROPERTY, activityExecution.getProcessInstanceId());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you should be able to see that property on the Camel exchange. To get this property to ActiveMQ would be a Camel feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 10:27:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/camel-integration/m-p/182215#M135345</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-07-21T10:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Camel integration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/camel-integration/m-p/182216#M135346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your help, I haven't been able to find the reason for this so far, if I do I'll post here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Michal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 10:51:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/camel-integration/m-p/182216#M135346</guid>
      <dc:creator>mas82</dc:creator>
      <dc:date>2014-07-29T10:51:10Z</dc:date>
    </item>
  </channel>
</rss>

