<?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 Wait and Trigger implementation  in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-wait-and-trigger-implementation/m-p/219070#M172200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am reading and learning Activiti. While doing the same I tried to incorporate a workflow where:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Start event triggers an EMAIL having 2 links approve and reject&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Once user approves/reject, I want to update the status of the same in database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Irrespective of approve/reject downstream service is notified about the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Workflow diagram: &lt;/SPAN&gt;&lt;A href="https://s31.postimg.org/vzbvtmxgr/Screen_Shot_2016_07_26_at_7_56_43_PM.png" rel="nofollow noopener noreferrer"&gt;https://s31.postimg.org/vzbvtmxgr/Screen_Shot_2016_07_26_at_7_56_43_PM.png&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So far, what I understood, I created a service-task which is responsible for generating the email. - WORKS FINE (I am using downstream service of mine to generate the email with approve and reject buttons). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After this I add a Boundary-Signal to the task so that the workflow waits (I assumed that the state is persisted to H2).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the user clicks on approve/reject buttons, I get the call on my REST service and get the activiti execution-id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to trigger the signal so that the workflow can start but failed to do so.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;getRuntimeService().signalEventReceived("Approve Or Reject Signal", request.getExecutionId(), activitiContext);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the above statement ends up in an error "org.activiti.engine.ActivitiObjectNotFoundException: Cannot find execution with id '9'"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have 2 questions: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Am I doing anything wrong here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I tried to browse and got to know that "receive-task" should be used but failed to find any example of how it can be used?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jul 2016 14:29:31 GMT</pubDate>
    <dc:creator>saurabh_biet</dc:creator>
    <dc:date>2016-07-26T14:29:31Z</dc:date>
    <item>
      <title>Activiti Wait and Trigger implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-wait-and-trigger-implementation/m-p/219070#M172200</link>
      <description>I am reading and learning Activiti. While doing the same I tried to incorporate a workflow where:1. Start event triggers an EMAIL having 2 links approve and reject2. Once user approves/reject, I want to update the status of the same in database.3. Irrespective of approve/reject downstream service is</description>
      <pubDate>Tue, 26 Jul 2016 14:29:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-wait-and-trigger-implementation/m-p/219070#M172200</guid>
      <dc:creator>saurabh_biet</dc:creator>
      <dc:date>2016-07-26T14:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Wait and Trigger implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-wait-and-trigger-implementation/m-p/219071#M172201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; After this I add a Boundary-Signal to the task so that the workflow waits&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is not correct. A service task will always continue. The signal doesn't do anything here. Use the 'intermeidate signal catch' event to do what you want instead.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 12:04:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-wait-and-trigger-implementation/m-p/219071#M172201</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-07-27T12:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti Wait and Trigger implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-wait-and-trigger-implementation/m-p/219072#M172202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your comment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I was able to fix this. At times over-reading docs time and again helps &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have changed my flow. Now once the service task ends, I invoke the receive task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To continue a process instance that is currently waiting at such a Receive Task, the runtimeService.signal(executionId) must be called using the id of the execution that arrived in the Receive Task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 04:18:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-wait-and-trigger-implementation/m-p/219072#M172202</guid>
      <dc:creator>saurabh_biet</dc:creator>
      <dc:date>2016-07-28T04:18:12Z</dc:date>
    </item>
  </channel>
</rss>

