<?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 Cannot Interact with Processes after redeployment in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cannot-interact-with-processes-after-redeployment/m-p/239722#M192852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i am currently working on a new process, which means i tend to redeploy the Application to our Applicationserver quite often.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my process basically is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;| START_EVT | –&amp;gt; | SERVICE_TASK: prefill some data | —&amp;gt; | USER_TASK: Enter more data | —&amp;gt; | WORK | —&amp;gt; | END_EVT |&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition there is a Boundary message event attached to the USER_TASK, waiting got the message "msg_cancel", which leads the execution to an alternative Workflow (cleanup database + end_evt)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works fine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I deploy the application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ProcessInstance instance = engine.getRuntimeService().startProcessinstanceByKey("myprocess", "A1");&lt;BR /&gt;//engine.getRuntimeService().createExecutionQuery().processInstanceId(instance.getId()).list().length == 1 //(perfect)&lt;BR /&gt;engine.getRuntimeService().createExecutionquery().businesskey("A1").singleResult;&lt;BR /&gt;Execution execution = engine.getRuntimeService().createExecutionQuery().processInstanceId(instance.getId()).messageEventSubscriptionName("msg_cancel");&lt;BR /&gt;Map&amp;lt;String,Object&amp;gt; params = new HashMap&amp;lt;&amp;gt;();&lt;BR /&gt;engine.getRuntimeService().messageEventReceived("msg_cancel", execution.getId(), params);&lt;BR /&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;/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;checking:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;//engine.getRuntimeService().createExecutionQuery().processInstanceId(instance.getId()).list().length == 0// (perfect)&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;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This however stops working once i do the following steps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I start some processes&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ProcessInstance instance = engine.getRuntimeService().startProcessinstanceByKey("myprocess", "A1");&lt;BR /&gt;ProcessInstance instance = engine.getRuntimeService().startProcessinstanceByKey("myprocess", "A2");&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) i change some code, not the bpmn mind you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) i deploy the application&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NOW i can access Processvariables via the taskservice (i can load form-data from usertask), but i cannot commence any actions that would continue execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If i query for messageEventSubscriptions on "msg_cancel" i do not get the two Processes (A1, A2) listed anymore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume this has to do with the redeployment and ProcessDefinition revisions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this meant to be this way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BillDoor&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Apr 2016 12:18:13 GMT</pubDate>
    <dc:creator>billdoor</dc:creator>
    <dc:date>2016-04-04T12:18:13Z</dc:date>
    <item>
      <title>Cannot Interact with Processes after redeployment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-interact-with-processes-after-redeployment/m-p/239722#M192852</link>
      <description>Hello,i am currently working on a new process, which means i tend to redeploy the Application to our Applicationserver quite often.my process basically is&lt;IMG id="smileyindifferent" class="emoticon emoticon-smileyindifferent" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-indifferent.png" alt="Smiley Indifferent" title="Smiley Indifferent" /&gt; START_EVT | –&amp;gt; | SERVICE_TASK: prefill some data | —&amp;gt; | USER_TASK: Enter more data | —&amp;gt; | WORK | —&amp;gt; | END_EVT |In addition there is</description>
      <pubDate>Mon, 04 Apr 2016 12:18:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-interact-with-processes-after-redeployment/m-p/239722#M192852</guid>
      <dc:creator>billdoor</dc:creator>
      <dc:date>2016-04-04T12:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Interact with Processes after redeployment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-interact-with-processes-after-redeployment/m-p/239723#M192853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is a bug in the recent versions of Activiti. On redeploy, the message events are deleted.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We plan to release a new version this week/next week at latest.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 14:42:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-interact-with-processes-after-redeployment/m-p/239723#M192853</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-04-04T14:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot Interact with Processes after redeployment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-interact-with-processes-after-redeployment/m-p/239724#M192854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 08:28:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-interact-with-processes-after-redeployment/m-p/239724#M192854</guid>
      <dc:creator>billdoor</dc:creator>
      <dc:date>2016-04-07T08:28:13Z</dc:date>
    </item>
  </channel>
</rss>

