<?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 Need clarification on CreateProcessEngines in Clustered Env in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/need-clarification-on-createprocessengines-in-clustered-env/m-p/5427#M2680</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are using Activiti 5.22.x with Spring Integration, below is the code we are using to create the Process Engine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;SpringProcessEngineConfiguration processEngineConfig &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;SpringProcessEngineConfiguration&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;processEngineConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setDataSource&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;activitiDataSource&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;processEngineConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setDatabaseSchemaUpdate&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"true"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;processEngineConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setTransactionManager&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;activitiTransactionManager&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;processEngineConfig&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setJobExecutorActivate&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;true&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&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;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This code will be deployed into Clustered Environment,&amp;nbsp;Will it create the multiple Process Engine with the JobExecutor set to 'True', if 'Yes' will it cause any problems. While executing Timers and Async Jobs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Reason why am i raising this question is, we are running in Dev Environment with one node and also pointing to the same DB from our Local Environment by setting the JobExecutor to True. Due to this we are facing issues with the Async Service Task Jobs. Below is the Exception Scenario:&lt;/P&gt;&lt;P&gt;When the Job gets created for the Async Service Task in Act_ru_job table,&amp;nbsp;we observed that the Service Task is not getting executed and that entry is getting locked for long time. Also the expiration time is revised (increments every 3 mins)every time the Job gets fired, that gives the ActivitiOptimisticLocking Exception every time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6;" width="100%"&gt;&lt;THEAD&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 816pt;" width="1088"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt; width: 48pt;" width="64"&gt;ID_&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;REV_&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;TYPE_&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;LOCK_EXP_TIME_&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;LOCK_OWNER_&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;EXCLUSIVE_&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;EXECUTION_ID_&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;PROCESS_INSTANCE_ID_&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;PROC_DEF_ID_&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;RETRIES_&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;EXCEPTION_STACK_ID_&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;EXCEPTION_MSG_&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;DUEDATE_&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;REPEAT_&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;HANDLER_TYPE_&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;HANDLER_CFG_&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;TENANT_ID_&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR style="background-color: #efefef;"&gt;&lt;TH&gt;&lt;TABLE width="1088"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64"&gt;3463484&lt;/TD&gt;&lt;TD width="64"&gt;5&lt;/TD&gt;&lt;TD width="64"&gt;message&lt;/TD&gt;&lt;TD width="64"&gt;11-FEB-18 11.20.19.577000000 PM&lt;/TD&gt;&lt;TD width="64"&gt;57ac5579-c43c-431f-8e12-fb699d314488&lt;/TD&gt;&lt;TD width="64"&gt;0&lt;/TD&gt;&lt;TD width="64"&gt;3463479&lt;/TD&gt;&lt;TD width="64"&gt;3463476&lt;/TD&gt;&lt;TD width="64"&gt;***Process:29:3460040&lt;/TD&gt;&lt;TD width="64"&gt;3&lt;/TD&gt;&lt;TD width="64"&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;/TD&gt;&lt;TD colspan="2" width="128"&gt;async-continuation&lt;/TD&gt;&lt;TD width="64"&gt;tenant_1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;TABLE width="1088"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="64"&gt;3463486&lt;/TD&gt;&lt;TD width="64"&gt;5&lt;/TD&gt;&lt;TD width="64"&gt;message&lt;/TD&gt;&lt;TD width="64"&gt;11-FEB-18 11.20.22.351000000 PM&lt;/TD&gt;&lt;TD width="64"&gt;57ac5579-c43c-431f-8e12-fb699d314488&lt;/TD&gt;&lt;TD width="64"&gt;0&lt;/TD&gt;&lt;TD width="64"&gt;3463481&lt;/TD&gt;&lt;TD width="64"&gt;3463476&lt;/TD&gt;&lt;TD width="64"&gt;***Process:29:3460040&lt;/TD&gt;&lt;TD width="64"&gt;3&lt;/TD&gt;&lt;TD width="64"&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;/TD&gt;&lt;TD colspan="2" width="128"&gt;async-&lt;/TD&gt;&lt;TD width="64"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Feb 2018 04:18:17 GMT</pubDate>
    <dc:creator>abhitorem</dc:creator>
    <dc:date>2018-02-15T04:18:17Z</dc:date>
    <item>
      <title>Need clarification on CreateProcessEngines in Clustered Env</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/need-clarification-on-createprocessengines-in-clustered-env/m-p/5427#M2680</link>
      <description>Hi,We are using Activiti 5.22.x with Spring Integration, below is the code we are using to create the Process Engine&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;pringProcessEngineConfiguration processEngineConfig = new SpringProcessEngineConfiguration();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;processEngineConfig.setDataSource(activitiDataSource());&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;processEngine</description>
      <pubDate>Thu, 15 Feb 2018 04:18:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/need-clarification-on-createprocessengines-in-clustered-env/m-p/5427#M2680</guid>
      <dc:creator>abhitorem</dc:creator>
      <dc:date>2018-02-15T04:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need clarification on CreateProcessEngines in Clustered Env</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/need-clarification-on-createprocessengines-in-clustered-env/m-p/5428#M2681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Will it create the multiple Process Engine with the JobExecutor set to 'True', if 'Yes' will it cause any problems. While executing Timers and Async Jobs?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can anybody help out with the above() question.. Looking forward for any suggestions ASAP.&lt;/P&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 02:38:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/need-clarification-on-createprocessengines-in-clustered-env/m-p/5428#M2681</guid>
      <dc:creator>abhitorem</dc:creator>
      <dc:date>2018-02-20T02:38:13Z</dc:date>
    </item>
  </channel>
</rss>

