<?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: Wrong script task listener executed in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239401#M192531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No we did not test it with a more recent version of Activiti. I cannot upgrade right now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I make unit test in order to reproduce the problem. But I face some problem to run unit test on my workflow. As I said, I use some alfresco component (e.g. alfresco ScriptTaskListener). This causes exception when running test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How could I configure activiti unit test to be able to run it on a workflow containing alfresco component ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Feb 2016 12:14:32 GMT</pubDate>
    <dc:creator>rwa</dc:creator>
    <dc:date>2016-02-10T12:14:32Z</dc:date>
    <item>
      <title>Wrong script task listener executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239397#M192527</link>
      <description>Hi,We face a really annoying bug with activiti.We use version 5.13 of activiti.Here is the bug scenario (see bpmn here: https://drive.google.com/file/d/0BxxZafFzNUQdV1JGSnRUZ242SnM/view?usp=sharing for activity references) :The process instance is in the usertask31 activity. The user does action for</description>
      <pubDate>Fri, 29 Jan 2016 10:10:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239397#M192527</guid>
      <dc:creator>rwa</dc:creator>
      <dc:date>2016-01-29T10:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong script task listener executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239398#M192528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The error "This causes an error that says : "No outgoing sequence flow of the exclusive gateway 'exclusivegateway35' could be selected for continuing the process"." means that none of the expressions defined on the sequenceflow going out of 'exclusivegateway35' evaluated to true.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fact you say this is happening 'randomly' means that at that point your data is different and evaluates to false. In the other cases, it evaluates to true for one of the expressions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 09:27:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239398#M192528</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-02-01T09:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong script task listener executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239399#M192529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I agree with your reasoning, but as I said in the second part of my post, we added some logs into activiti engine core to understand what happened exactly. It appears that the complete listener of the task usertask31 (the one we complete) is not executed. Instead, the complete listener of the task usertask23 is executed (although the process does not go through usertask23).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, do you think that a wrong task-listener association could be done (randomly!) ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you ever heard of such a bug?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 10:00:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239399#M192529</guid>
      <dc:creator>rwa</dc:creator>
      <dc:date>2016-02-01T10:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong script task listener executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239400#M192530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I never seen or even heard about this behaviour but would be nice if you could provide a unit test to reproduce this behaviour. (it would be a good starting point of investigation)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Considering that Activiti 5.13 is more than 2 years old, did you test it with a more recent version of Activiti ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2016 13:12:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239400#M192530</guid>
      <dc:creator>vasile_dirla</dc:creator>
      <dc:date>2016-02-01T13:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong script task listener executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239401#M192531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No we did not test it with a more recent version of Activiti. I cannot upgrade right now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I make unit test in order to reproduce the problem. But I face some problem to run unit test on my workflow. As I said, I use some alfresco component (e.g. alfresco ScriptTaskListener). This causes exception when running test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How could I configure activiti unit test to be able to run it on a workflow containing alfresco component ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Feb 2016 12:14:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239401#M192531</guid>
      <dc:creator>rwa</dc:creator>
      <dc:date>2016-02-10T12:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong script task listener executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239402#M192532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Doesn't need to be that particular script task listener … any task listener would do. Given your explanation above, the error doesn't seem to be in the area of the tasklistener, right?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 09:44:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239402#M192532</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-02-11T09:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong script task listener executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239403#M192533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It could be in the area of the listener because the right task is executed/completed (usertask31) but the wrong listener is executed (the one of task usertask23). I check the bpmn code in db : No error. So it seems like the listeners loading in cache is wrong.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 09:54:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239403#M192533</guid>
      <dc:creator>rwa</dc:creator>
      <dc:date>2016-02-11T09:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong script task listener executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239404#M192534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That would be very strange, I would assume many more people would have seen the issue if some caching would be wrong.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 11:07:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239404#M192534</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-02-16T11:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong script task listener executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239405#M192535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We faced same problem on production server. Configuration: alfresco version 4.2.4, activiti version 5.13-alf-20140708. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We have 600 everyday active users. Sometimes complete task listeners aren't execute and process's behavior goes incorrect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After restart system behaves normally, but then problem appears again in other process instances. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We can't reproduce this problem on unit tests. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 15:59:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239405#M192535</guid>
      <dc:creator>scspy</dc:creator>
      <dc:date>2016-03-01T15:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong script task listener executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239406#M192536</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;The same issue…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 15:01:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239406#M192536</guid>
      <dc:creator>ilyagalahov</dc:creator>
      <dc:date>2016-03-02T15:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong script task listener executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239407#M192537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As said above, a unit test that demonstrates this problem would help a lot here &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;BR /&gt;&lt;SPAN&gt;It seems to be environmental (ie Alfresco), so not sure how to reproduce with the bare engine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 09:34:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239407#M192537</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-03-07T09:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong script task listener executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239408#M192538</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;SPAN&gt;We have debug and fixed this problem. Our customers faced same problem daily. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Activiti load workflow definitions, parse and change to object and after that keeps in some kind of cache (map). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is with workflow parser, which/when is working asynchronous. Restart is required because cache keep wrong/mixed listeners.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have solved problem by just changing synchronize deploy method in BpmnDeployer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Patch is tested and ready for production.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please find the attached file "activiti-engine-5.13-alf-20130918_patched.jar_.txt" and remove "_.txt" to use it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 11:58:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239408#M192538</guid>
      <dc:creator>behemot</dc:creator>
      <dc:date>2016-03-11T11:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong script task listener executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239409#M192539</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;Thanks a lot for this patch.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you think such a problem could happen with listeners in java ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 12:57:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239409#M192539</guid>
      <dc:creator>rwa</dc:creator>
      <dc:date>2016-03-11T12:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong script task listener executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239410#M192540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you, David. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We already solved this problem too by executing web script to remove definition from cache…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;activitiProcessEngineConfiguration.getDeploymentManager().getProcessDefinitionCache().remove(args['defId']);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But this works after problem already occured.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We cannot use patches by company policy. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you please share concrete code or github link ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you just marked method deploy() synchronized ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How does it impact performance ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards Ilya.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:ilyagalahov1@gmail.com" rel="nofollow noopener noreferrer"&gt;ilyagalahov1@gmail.com&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 14:11:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239410#M192540</guid>
      <dc:creator>ilyagalahov</dc:creator>
      <dc:date>2016-03-11T14:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong script task listener executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239411#M192541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No problem. Welcome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regarding to your comments:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;activitiProcessEngineConfiguration.getDeploymentManager().getProcessDefinitionCache().remove(args['defId']);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; this is only temporary solution, because Altiviti will do same mistake again&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you please share concrete code or github link ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; please just change:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public void deploy(DeploymentEntity deployment) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public synchronized void deploy(DeploymentEntity deployment) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How does it impact performance ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; our customers have not over 20 workflows (not over 30 tasks per workflow, with not over 2000 JavaScript lines per workflow), and we do not see any differences&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 15:14:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239411#M192541</guid>
      <dc:creator>behemot</dc:creator>
      <dc:date>2016-03-11T15:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong script task listener executed</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239412#M192542</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;Welcome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, there is no problem with listener, but with parser. Unfortunately we do not have time to analyze Activiti source code to fix asynchronous parsing, so we switch to synchronous &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 15:20:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/wrong-script-task-listener-executed/m-p/239412#M192542</guid>
      <dc:creator>behemot</dc:creator>
      <dc:date>2016-03-11T15:20:06Z</dc:date>
    </item>
  </channel>
</rss>

