<?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 Issue in suspend or activate a process instance  but the 'status' not refresh till 'restart' the J2EE Server in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/issue-in-suspend-or-activate-a-process-instance-but-the-status/m-p/165491#M119167</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Recently I am developing a system for our Gov and I found a issue during "Suspend/Activate" a process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Following steps can recreate this issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Deployed the "activiti-rest" and the "activiti-explorer" into a same jboss, and make sure they connected to a same DB(I use the DB Jndi)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Suspend or activate a process instance in the "activiti-explore".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. I found after I suspend or activate a process instance thru the activiti-explorer, I can still use the REST interface "&lt;/SPAN&gt;&lt;A href="http://localhost:8080/activiti-rest/service/runtime/process-instances" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/runtime/process-instances&lt;/A&gt;&lt;SPAN&gt;" to start the process instance. Seems the "status" not refresh immediately…and I restart the JBOSS, then I tried to start the process instance like "myProcess" then I got the exception "myProcess:9:8451 is suspended, can not start".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why the activated or suspended status not refresh immediately? until I restart the JBOSS/TOMCAT, then the activated or suspended status will be effected? This is quite inconvenience, is there any way to activate or suspend the process instance immediately or I missed something else?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jan 2014 02:32:00 GMT</pubDate>
    <dc:creator>roundmonkey</dc:creator>
    <dc:date>2014-01-24T02:32:00Z</dc:date>
    <item>
      <title>Issue in suspend or activate a process instance  but the 'status' not refresh till 'restart' the J2EE Server</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issue-in-suspend-or-activate-a-process-instance-but-the-status/m-p/165491#M119167</link>
      <description>Recently I am developing a system for our Gov and I found a issue during "Suspend/Activate" a process instance.Following steps can recreate this issue:1. Deployed the "activiti-rest" and the "activiti-explorer" into a same jboss, and make sure they connected to a same DB(I use the DB Jndi)2. Suspend</description>
      <pubDate>Fri, 24 Jan 2014 02:32:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issue-in-suspend-or-activate-a-process-instance-but-the-status/m-p/165491#M119167</guid>
      <dc:creator>roundmonkey</dc:creator>
      <dc:date>2014-01-24T02:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in suspend or activate a process instance  but the 'status' not refresh till 'restart' the J2EE Server</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issue-in-suspend-or-activate-a-process-instance-but-the-status/m-p/165492#M119168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I guess you're talking about suspending a process definition, rather than a process instance? The issue here has to do with process-definition caching. Parsed process definitions are cached in-memory for performance reasons. An entity updated in another JVM/activiti-engine will nog update the cache on other engines, leaving behind the "unsuspended" definition to use, when it should be suspended.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 08:25:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issue-in-suspend-or-activate-a-process-instance-but-the-status/m-p/165492#M119168</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-01-27T08:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in suspend or activate a process instance  but the 'status' not refresh till 'restart' the J2EE Server</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issue-in-suspend-or-activate-a-process-instance-but-the-status/m-p/165493#M119169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Fred,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, to suspend the definition in activiti-explorer, but the status was not changed in activiti-rest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, this issue caused by the process definition status is maintained in memory right?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 05:50:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issue-in-suspend-or-activate-a-process-instance-but-the-status/m-p/165493#M119169</guid>
      <dc:creator>roundmonkey</dc:creator>
      <dc:date>2014-01-28T05:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in suspend or activate a process instance  but the 'status' not refresh till 'restart' the J2EE Server</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issue-in-suspend-or-activate-a-process-instance-but-the-status/m-p/165494#M119170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, correct. And also because you have two instances of the Activiti engine, with their own cache.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A solution would be to package both apps in one webapp, with one Activiti engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another, way more advanced one, would be to use a distributed cache: &lt;/SPAN&gt;&lt;A href="http://www.jorambarrez.be/blog/2013/01/03/distributed-cache-activiti/" rel="nofollow noopener noreferrer"&gt;http://www.jorambarrez.be/blog/2013/01/03/distributed-cache-activiti/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 10:23:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issue-in-suspend-or-activate-a-process-instance-but-the-status/m-p/165494#M119170</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-01-28T10:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issue in suspend or activate a process instance  but the 'status' not refresh till 'restart' the J2EE Server</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issue-in-suspend-or-activate-a-process-instance-but-the-status/m-p/165495#M119171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi jbarrez,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;According to your solution, merged two app into one, and the issue solved, thanks again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 15:47:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issue-in-suspend-or-activate-a-process-instance-but-the-status/m-p/165495#M119171</guid>
      <dc:creator>roundmonkey</dc:creator>
      <dc:date>2014-01-28T15:47:08Z</dc:date>
    </item>
  </channel>
</rss>

