<?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: suspending a process instance using Execution listener. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/suspending-a-process-instance-using-execution-listener/m-p/135454#M95044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I used the EngineService to get the ProcessInstanceId and suspend the process Instance with suspendProcessInstance. It does suspend the instance as I see the values in the database for the process instance where suspension_state is set to 2. But it starts acting weird as in even if the state shows suspended it still performs the next activity and ends the process. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jun 2013 18:25:00 GMT</pubDate>
    <dc:creator>asshetye</dc:creator>
    <dc:date>2013-06-06T18:25:00Z</dc:date>
    <item>
      <title>suspending a process instance using Execution listener.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/suspending-a-process-instance-using-execution-listener/m-p/135452#M95042</link>
      <description>Hi,I am new to Activiti Forum. I am working on a project where I am interested in suspending a process instance using Execution Listener. I want to suspend a process instance as soon as the activity ends and then resume the process instance at a different time&amp;nbsp; . Could it be possible to do so ???&amp;nbsp; I</description>
      <pubDate>Wed, 05 Jun 2013 02:14:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/suspending-a-process-instance-using-execution-listener/m-p/135452#M95042</guid>
      <dc:creator>asshetye</dc:creator>
      <dc:date>2013-06-05T02:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: suspending a process instance using Execution listener.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/suspending-a-process-instance-using-execution-listener/m-p/135453#M95043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Suspending the process (using the API) from within the same process will cause issues I think. Is it important that the process-instance is actually suspended? Or is it enough that the process is just "waiting" until a certain point in time/timout is reached to continue. If the latter is the case, you can use an intermediate timer event. This will keep your process waiting until the timer fires and continues the process. Check the user guide for details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you're really keen on getting the process-instance suspend, you can always try by getting the EngineService form the delegateExecution, using DelegateExecution#getProcessInstanceId() to pass on to the suspendProcessInstance(), with some luck it will work fine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 12:53:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/suspending-a-process-instance-using-execution-listener/m-p/135453#M95043</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-06-06T12:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: suspending a process instance using Execution listener.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/suspending-a-process-instance-using-execution-listener/m-p/135454#M95044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I used the EngineService to get the ProcessInstanceId and suspend the process Instance with suspendProcessInstance. It does suspend the instance as I see the values in the database for the process instance where suspension_state is set to 2. But it starts acting weird as in even if the state shows suspended it still performs the next activity and ends the process. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 18:25:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/suspending-a-process-instance-using-execution-listener/m-p/135454#M95044</guid>
      <dc:creator>asshetye</dc:creator>
      <dc:date>2013-06-06T18:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: suspending a process instance using Execution listener.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/suspending-a-process-instance-using-execution-listener/m-p/135455#M95045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The suspend is not meant to be used in an execution listener on the process instance itself. It's meant to be invoked separately and then it works just fine. To have similar behavior you could use a receive task to have the instance in a wait state and resume it when you want to again.&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>Mon, 10 Jun 2013 15:01:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/suspending-a-process-instance-using-execution-listener/m-p/135455#M95045</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-06-10T15:01:36Z</dc:date>
    </item>
  </channel>
</rss>

