<?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 Activiti Timer event and multitenancy issue in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/activiti-timer-event-and-multitenancy-issue/m-p/22367#M9785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have process definition that includes timer event. When timer elapse, flow is executing a tasks that executes java code.&lt;/P&gt;&lt;P&gt;Definition of that task includes:&lt;/P&gt;&lt;P&gt;Script Format: groovy&lt;/P&gt;&lt;P&gt;Script: MyClass.MyMethod(execution.getVariable("MY_VARIABLE"))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using &lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt;Single "Engine - Shared Database"&lt;/SPAN&gt; multi-tenancy functionality of acitiviti engine, and activity is running as part of java spring web application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is how I build the activity deployment when application is started:&lt;/P&gt;&lt;PRE style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'Courier New'; font-size: 9.0pt;"&gt;DeploymentBuilder deploymentBuilder =&lt;BR style="display: inline; white-space: pre; width: auto;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #9876aa;"&gt;repositoryService&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.createDeployment()&lt;BR style="display: inline; white-space: pre; width: auto;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .enableDuplicateFiltering()&lt;BR style="display: inline; white-space: pre; width: auto;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .tenantId(&lt;SPAN style="color: #9876aa;"&gt;currentTenantResolver&lt;/SPAN&gt;.getCurrentTenantId())&lt;BR style="display: inline; white-space: pre; width: auto;" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .name(resource.getFilename())&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;Following is dependency definition in the pom file&lt;/P&gt;&lt;PRE style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'Courier New'; font-size: 9.0pt;"&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;dependency&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;groupId&amp;gt;&lt;/SPAN&gt;org.activiti&lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;/groupId&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;artifactId&amp;gt;&lt;/SPAN&gt;activiti-spring&lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;/artifactId&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;&lt;/SPAN&gt;6.0.0&lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;/version&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #e8bf6a;"&gt;&amp;lt;/dependency&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;Following is the definition for the process definition&lt;/P&gt;&lt;PRE style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'Courier New'; font-size: 9.0pt;"&gt;ProcessDefinition processDefinition =&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #9876aa;"&gt;repositoryService&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;.createProcessDefinitionQuery()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .processDefinitionKey(&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;SIGNUP_PROCESS_KEY&lt;/SPAN&gt;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .processDefinitionTenantId(&lt;SPAN style="color: #9876aa;"&gt;currentTenantResolver&lt;/SPAN&gt;.getCurrentTenantId())&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .latestVersion()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .singleResult()&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;My issue is that there are situations when engine is executing&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word;"&gt; MyClass.MyMethod&lt;/SPAN&gt;() for tenant different than the tenant that was used when activity was initiated and process definition was created.&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;I can see in the database that tenant_id is correctly set for the timer job record, as well as in all other connected records.&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;Can someone share more info about this. Is this expected behavior or some bug, or there is some wrong usage in my code.&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: transparent; color: #3d3d3d; font-family: Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; word-wrap: break-word; padding: 0px; margin: 0px;"&gt;Thanks&lt;SPAN style="color: #cc7832;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2018 14:52:58 GMT</pubDate>
    <dc:creator>goce_stojcev</dc:creator>
    <dc:date>2018-04-04T14:52:58Z</dc:date>
    <item>
      <title>Activiti Timer event and multitenancy issue</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-timer-event-and-multitenancy-issue/m-p/22367#M9785</link>
      <description>Hi there,I have process definition that includes timer event. When timer elapse, flow is executing a tasks that executes java code.Definition of that task includes&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;cript Format: groovyScript: MyClass.MyMethod(execution.getVariable("MY_VARIABLE"))I am using Single "Engine - Shared Database" multi-te</description>
      <pubDate>Wed, 04 Apr 2018 14:52:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-timer-event-and-multitenancy-issue/m-p/22367#M9785</guid>
      <dc:creator>goce_stojcev</dc:creator>
      <dc:date>2018-04-04T14:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Timer event and multitenancy issue</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-timer-event-and-multitenancy-issue/m-p/22368#M9786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;can you please specify the version that you are using?&amp;nbsp;&lt;/P&gt;&lt;P&gt;It sounds like the job executor that is picking up Job is not taking into consideration the tenant Id? It sounds like something that should have been fixed already.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 12:44:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-timer-event-and-multitenancy-issue/m-p/22368#M9786</guid>
      <dc:creator>salaboy</dc:creator>
      <dc:date>2018-04-24T12:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Timer event and multitenancy issue</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-timer-event-and-multitenancy-issue/m-p/22369#M9787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mauricio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using activiti-spring package version 6.0.&lt;/P&gt;&lt;P&gt;Any idea what is the version where this issue was resolved?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping on this.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 14:20:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-timer-event-and-multitenancy-issue/m-p/22369#M9787</guid>
      <dc:creator>goce_stojcev</dc:creator>
      <dc:date>2018-04-24T14:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Timer event and multitenancy issue</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-timer-event-and-multitenancy-issue/m-p/22370#M9788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might be that it is fixed in the 6.x branch in Github. You might want to try that.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 07:27:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-timer-event-and-multitenancy-issue/m-p/22370#M9788</guid>
      <dc:creator>salaboy</dc:creator>
      <dc:date>2018-04-25T07:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Timer event and multitenancy issue</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-timer-event-and-multitenancy-issue/m-p/22371#M9789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mauricio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have updated activiti-spring package to version "7-201802-EA" (this looks like latest maven package version.&lt;/P&gt;&lt;P&gt;With this version i get error that package "org.activiti.engine.FormService" can not be found.&lt;/P&gt;&lt;P&gt;Do you know if this is something that was replaced or removed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 12:55:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-timer-event-and-multitenancy-issue/m-p/22371#M9789</guid>
      <dc:creator>goce_stojcev</dc:creator>
      <dc:date>2018-04-25T12:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Timer event and multitenancy issue</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/activiti-timer-event-and-multitenancy-issue/m-p/22372#M9790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah a lot of things are changing in 7, so I wouldn't recommend you to use that unless you really know what is included in version 7.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would recommend to clone the 6.x branch of the Activiti/Activiti repository, build that and try that.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 13:01:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/activiti-timer-event-and-multitenancy-issue/m-p/22372#M9790</guid>
      <dc:creator>salaboy</dc:creator>
      <dc:date>2018-04-25T13:01:49Z</dc:date>
    </item>
  </channel>
</rss>

