<?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: Activiti 5.18 problem in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202439#M155569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's because Activiti 5.17 will ignore the async attribute on the sub process and Activiti 5.18 not. Why would you make this sub process asynchronous? What would be the use case for it? If you remove the async attribute, does it run ok then?&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>Wed, 19 Aug 2015 20:01:46 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2015-08-19T20:01:46Z</dc:date>
    <item>
      <title>Activiti 5.18 problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202432#M155562</link>
      <description>Hi, i have a problem with activiti 5.18.0.0 version. I don't know if it's me or not. I have made a webservice which have a processEngine like an API with jobs executor desactivate. I want just use the processEngine to make request with the TaskService like complete, get all taks for specific user,…</description>
      <pubDate>Fri, 14 Aug 2015 09:22:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202432#M155562</guid>
      <dc:creator>pred05</dc:creator>
      <dc:date>2015-08-14T09:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 5.18 problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202433#M155563</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;when tasks are asynchronous you have to enable one of jobexecutors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://activiti.org/userguide/index.html#jobExecutorConfiguration" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#jobExecutorConfiguration&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 05:51:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202433#M155563</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2015-08-17T05:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 5.18 problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202434#M155564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, thanks for help. I don't understand the jobexecutors well so. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a listener in an other server which has the async executor enabled. If i enabled one jobexecutors in the service it will polling the Activiti database and trying to execute some task no ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact i will want doing a custom API like the REST Activiti's API but as a SOA Service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for my approximate english…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have a good day.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 07:48:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202434#M155564</guid>
      <dc:creator>pred05</dc:creator>
      <dc:date>2015-08-17T07:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 5.18 problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202435#M155565</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;Could you create jUnit test please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/content/sticky-how-write-unit-test" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/sticky-how-write-unit-test&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 05:40:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202435#M155565</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2015-08-18T05:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 5.18 problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202436#M155566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, i need to do three projects to explain my problem, i can do it if it necessary but before i will explain better what i want to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://img11.hostingpics.net/pics/678676architecture.png" rel="nofollow noopener noreferrer"&gt;Architecture image&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;As we can see on the image, we have one java project which represent the WebService, it permit to each "Front" to call methods like completeTask(Task task) without to know how it execute this method. The WebService must only set message on the activiti database. Activiti Engine as a Servlet Listener must verify in the database if somes messages is added and execute it. i do this because if i use the Activiti REST API the front will be too specific. When i use a webservice, the front haven't to change if the logic in the webservice is changed. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i have the problem when i use asynchronous SubProcess. Activiti 5.17 set a message in the database for the completion of the subprocess. With Activiti 5.18 the "Activiti API" try to execute the subprocess as it isn't asynchronous.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is possible to disable totally the default JobExecutor ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 10:09:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202436#M155566</guid>
      <dc:creator>pred05</dc:creator>
      <dc:date>2015-08-18T10:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 5.18 problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202437#M155567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting, so you're model is that you have one Activiti engine running the process and a second engine simply acting as an API layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We have used this pattern a number of times without any problems in versions prior to 5.18 and there we simply disables the Job Executor in the application that was simply using the API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Definitely sounds like a change in behavior in 5.18, but, as Martin said, it is likely we will need a unit test to look into the root cause.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I havent tried it, but perhaps the following settings will work:&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;&amp;lt;property name="jobExecutorActivate" value="false" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="asyncExecutorEnabled" value="true" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="asyncExecutorActivate" value="false" /&amp;gt;&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;Here we enable the Async Job Executor, but dont bootstrap it, so it shouldnt be operating.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if this has any effect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2015 16:26:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202437#M155567</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2015-08-18T16:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 5.18 problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202438#M155568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes it is exactly what i look to do. i have trying to enable the async executor and i have the same error with Activiti 5.18. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i think the error comes to the async subProcess. When i save the bpmn file with the Activiti Designer, it turn my subprocess automaticaly synchronous. i need to set the subprocess asynchronous directly in the xml. It is maybe not "normal" to set a subprocess asynchronous ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm doing the jUnit. If you set Activiti 5.18 an exception occur and if you set 5.17 all is good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You have to change the jUnitTestProject extension to .zip for extract it. It contain two projects. The jUnit (which is the API, jUnitTestAPI) and a jetty server (the Engine which contain and deploy the bpmn file, jUnitTestSERVER). For launch the server you have to launch Server.launch. The bpmn contain an asynchronous subprocess.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For switch the version of activiti you have to change the properties in top of each pom.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i hope it is quite easy to export it :s.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for help! &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 09:42:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202438#M155568</guid>
      <dc:creator>pred05</dc:creator>
      <dc:date>2015-08-19T09:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 5.18 problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202439#M155569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's because Activiti 5.17 will ignore the async attribute on the sub process and Activiti 5.18 not. Why would you make this sub process asynchronous? What would be the use case for it? If you remove the async attribute, does it run ok then?&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>Wed, 19 Aug 2015 20:01:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202439#M155569</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-08-19T20:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 5.18 problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202440#M155570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok thanks, it's because the subprocess will be started by the API and not by the Server if it's not asynchronous. i have try to set the subprocess synchronous and when i start the process in the API it search to launch the subprocess but it doesn't have the class call on an expression in the Subprocess. Only the server has it. So an exception occur :s&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I haven't activate any jobExecutor in the API but when the task is synchronous it try to execute it at start. i have try to put an asynchronous script task behind the synchronous Subprocess. This resolve the problem when i call the startProcess method to instantiate the process but not when all subprocess' task is ended. It is strange because when i ended all the subprocess' task, the API try to call again the subprocess expression. The expression is set in the multi-instance collection and return a list of string which represent user. Each user receive all subprocess' task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i did a diagram to explain my investigation : &lt;/SPAN&gt;&lt;A href="http://img11.hostingpics.net/pics/728754Timeline.png" rel="nofollow noopener noreferrer"&gt;image&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 07:28:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202440#M155570</guid>
      <dc:creator>pred05</dc:creator>
      <dc:date>2015-08-20T07:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 5.18 problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202441#M155571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, have you an idea ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 06:37:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202441#M155571</guid>
      <dc:creator>pred05</dc:creator>
      <dc:date>2015-08-26T06:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 5.18 problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202442#M155572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm a bit lost about your setup. Why do you have a "client" Activiti Engine and a "server" Activiti Engine?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you add more background information about what you are trying to achieve. Because this should not be a reason to make the sub process asynchronous I think.&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>Wed, 26 Aug 2015 07:54:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202442#M155572</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-08-26T07:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 5.18 problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202443#M155573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, i want to separate the jobExecutor ("server" Activiti Engine) and the API ("client" Activiti Engine) to distribute calculations. Only the "server" Activiti Engine must execute job.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i want an API which is responsible to push event to the Activiti Database and a server which is responsible to interpret this event and execute it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;An other advantages is when we want to put in production the code. If i edit a BPMN only the "server" Activiti Engine is to update.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is more global than the sub process. All task is asynchronous because when a task is synchronous the "client" Activiti Engine try to execute the job even if i disable the jobexecutor. When i set a task asynchronous, the "client" don't try to execute the job and it is the "server" Activiti Engine which do it as i want. To have all task asynchronous is not a for a modeling reason but to force the "client" Activiti Engine to not execute jobs and just push a message in the database. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- API : someone want start workflow X&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- SERVER : someone want start workflow X so i instantiate it and launch the first task&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- API : someone want complete the task "task123"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- SERVER : someone want complete the task with id "task123" so i complete it and instantiate the next task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i don't know if i'm clear, don't hesitate to ask more information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 09:52:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202443#M155573</guid>
      <dc:creator>pred05</dc:creator>
      <dc:date>2015-08-26T09:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti 5.18 problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202444#M155574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I thought about my question, i just need to know if it is possible to configure the process engine for only set message in the data base without trying to execute any task ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT: i have trying to set an expression in a sample task and i have the same problem. It is not a problem with the SubProcess. The process engine try to reassess the task's expression after having completed it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 07:44:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-5-18-problem/m-p/202444#M155574</guid>
      <dc:creator>pred05</dc:creator>
      <dc:date>2015-09-02T07:44:24Z</dc:date>
    </item>
  </channel>
</rss>

