<?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 Re: How to get a particular ProcessIntance from processEngine in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-a-particular-processintance-from-processengine/m-p/7681#M2317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you should you executionQuery builder - it's quite easy to use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execution execution = runtimeService.createExecutionQuery()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .executionId(id).singleResult();&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Jan 2011 00:00:11 GMT</pubDate>
    <dc:creator>mproch</dc:creator>
    <dc:date>2011-01-09T00:00:11Z</dc:date>
    <item>
      <title>How to get a particular ProcessIntance from processEngine</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-a-particular-processintance-from-processengine/m-p/7680#M2316</link>
      <description>Hi Guys,I am trying to get the particulat execution of the processEngine. This was achiveable asExecution execution = processEngine.getRuntimeService().findExecutionById(executionId); ‍‍‍on 5.0-Beta but this seems to be not anymore in 5.1 release.Can someone please tell me how do I acheive the same</description>
      <pubDate>Sat, 08 Jan 2011 23:50:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-a-particular-processintance-from-processengine/m-p/7680#M2316</guid>
      <dc:creator>rock_star</dc:creator>
      <dc:date>2011-01-08T23:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a particular ProcessIntance from processEngine</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-a-particular-processintance-from-processengine/m-p/7681#M2317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think you should you executionQuery builder - it's quite easy to use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execution execution = runtimeService.createExecutionQuery()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .executionId(id).singleResult();&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jan 2011 00:00:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-a-particular-processintance-from-processengine/m-p/7681#M2317</guid>
      <dc:creator>mproch</dc:creator>
      <dc:date>2011-01-09T00:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a particular ProcessIntance from processEngine</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-a-particular-processintance-from-processengine/m-p/7682#M2318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maciek, thanks for quick reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems that no processIntance/Execution is being attached to the ProcessEngine Instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to list all executions/instances attached with processEngine but none was there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code below gives me size of list as ZERO and instance is null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure what i am doing wrong. I have attached the xonfig files. Please rename it to .rar extension if it does not extract.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;Execution execution = processService.createExecutionQuery().executionId(executionId).singleResult();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;Execution&amp;gt; listExec = processService.createExecutionQuery().list();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.info("List size is " + listExec.size());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (Execution execution2 : listExec) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.info("Instance id is " +&amp;nbsp; execution2.getProcessInstanceId());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.info("execution&amp;nbsp; instance is " + execution2);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.info("Execution instance " + execution);&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Jan 2011 21:49:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-a-particular-processintance-from-processengine/m-p/7682#M2318</guid>
      <dc:creator>rock_star</dc:creator>
      <dc:date>2011-01-09T21:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a particular ProcessIntance from processEngine</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-a-particular-processintance-from-processengine/m-p/7683#M2319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, looking at your process, it looks like it finishes immediately after it starts - when you perform the query, the process is already finished. I think it's not possible to get finished process instances this way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You have to use HistoryService then. I don't know too many details about it - but seems you can do similar queries using createHistoricProcessInstanceQuery or other methods&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 09:11:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-a-particular-processintance-from-processengine/m-p/7683#M2319</guid>
      <dc:creator>mproch</dc:creator>
      <dc:date>2011-01-10T09:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a particular ProcessIntance from processEngine</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-a-particular-processintance-from-processengine/m-p/7684#M2320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Maciek,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Thanks again. I used createHistoricProcessInstanceQuery&amp;nbsp; and it indeed seems that the process was finished.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Basically, I have a Spring bean which has a reference to processEngine and that sends out a message on a request channel. When the message comes back to the bean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; , I am trying to send the message to next channel in reply handler of the bean which has reference to the ProcessEngine. So, I am wondering - why instance should not&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; be retreivable? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Is there a way that I can wake up that process intance? The reason i want that particular instance because the next step in that request channel should be part of the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; same execution which was started for the first message. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Please let me know if there is a way. Also, I had gone trhough documentation. Just wondering if there is any other document related to Activiti which explain things in core.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;List&amp;lt;HistoricProcessInstance&amp;gt; listProcessInstance = processEngine.getHistoryService().createHistoricProcessInstanceQuery().list();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (HistoricProcessInstance historicProcessInstance : listProcessInstance) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.info("Historic Instance id is " +&amp;nbsp; historicProcessInstance.getId());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.info("Historic Business id is " +&amp;nbsp; historicProcessInstance.getBusinessKey());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.info("Historic Business Def id is " +&amp;nbsp; historicProcessInstance.getProcessDefinitionId());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.info("Historic Start time is " +&amp;nbsp; historicProcessInstance.getStartTime());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.info("Historic End time is " +&amp;nbsp; historicProcessInstance.getEndTime());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; logger.info("Historic End time is " +&amp;nbsp; historicProcessInstance.getEndTime());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessEngine was started as below and bean above and below are in the same sping context/java process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;processEngine.getRepositoryService().createDeployment().addClasspathResource("processes/si_gateway_example.bpmn20.xml").deploy();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; processEngine.getRuntimeService().startProcessInstanceByKey("sigatewayProcess", vars);&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 11:49:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-a-particular-processintance-from-processengine/m-p/7684#M2320</guid>
      <dc:creator>rock_star</dc:creator>
      <dc:date>2011-01-10T11:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a particular ProcessIntance from processEngine</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-a-particular-processintance-from-processengine/m-p/7685#M2321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know spring integration well, but in your inbound-gateway you have async="true" attribute. Doesn't it mean that the process continues without waiting for response? Which in this case means that it finishes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;About documentation - I think that the reference source is code itself - especially examples.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 12:27:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-a-particular-processintance-from-processengine/m-p/7685#M2321</guid>
      <dc:creator>mproch</dc:creator>
      <dc:date>2011-01-10T12:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a particular ProcessIntance from processEngine</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-a-particular-processintance-from-processengine/m-p/7686#M2322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes, async="true" process will continue but it activates when there is reply on specified channel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The internal class is implementing org.activiti.engine.impl.bpmn.ReceiveTaskActivity , which essentially is a wait-state implementation. So, i would have imagined that process instance should have been there! &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 12:42:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-a-particular-processintance-from-processengine/m-p/7686#M2322</guid>
      <dc:creator>rock_star</dc:creator>
      <dc:date>2011-01-10T12:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a particular ProcessIntance from processEngine</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-get-a-particular-processintance-from-processengine/m-p/7687#M2323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I guess I am getting close to the reason now —&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The statement below is not actually calling the Spring endPoint&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BPMN&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&amp;lt;serviceTask id="sigw" name="Spring Integration Gateway" activiti:expression="#{gateway}"/&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Spring endpoint:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;!– Activiti sends a message 'to' (inbound) Spring Integration 'from' Activiti –&amp;gt;&lt;BR /&gt; &amp;lt;activiti:inbound-gateway&lt;BR /&gt;&amp;nbsp;&amp;nbsp; process-engine="processEngine"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; request-channel="request"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; async="true"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; reply-channel="response"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; forward-process-variables-as-message-headers="true"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; update-process-variables-from-reply-message-headers="true"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; id="gateway"&lt;BR /&gt; /&amp;gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Is their a way to invoke the gateway using some other expressions or class? I think class actually takes full qualified class name.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 14:29:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-get-a-particular-processintance-from-processengine/m-p/7687#M2323</guid>
      <dc:creator>rock_star</dc:creator>
      <dc:date>2011-01-10T14:29:30Z</dc:date>
    </item>
  </channel>
</rss>

