<?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 User Task with boundary message event in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/user-task-with-boundary-message-event/m-p/207246#M160376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(see below for process definition, as generated by Activiti Explorer from 5.17)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a process with a User Task "Approve", and on that user task I have configured a Boundary Message Event, waiting for an "InterruptMessage". I'm trying to trigger this Boundary Message Event based on Message Name and ProcessInstanceId as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execution execution = processEngine.getRuntimeService().createExecutionQuery()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .processInstanceId(processInstanceId)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .messageEventSubscriptionName(messageName)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; processEngine.getRuntimeService().messageEventReceived(messageName, execution.getId(), vars);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This consistently fails weirdly enough, even though I'm sure I'm using the correct value for processInstanceId.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(1) Is there anything obviously wrong with this approach?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(2) I noticed in the XML version of the BPMN model that cancelActivity="false" and there doesn't seem to be any way from the Modeler to switch it to "true"? The user guide says that "left side" is non-interrupting, "right side" is interrupting, but that doesn't seem to make any difference for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maarten&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;definitions xmlns="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsi="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;&lt;SPAN&gt;" xmlns:xsd="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" xmlns:activiti="&lt;/SPAN&gt;&lt;A href="http://activiti.org/bpmn" rel="nofollow noopener noreferrer"&gt;http://activiti.org/bpmn&lt;/A&gt;&lt;SPAN&gt;" xmlns:bpmndi="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/BPMN/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/DI&lt;/A&gt;&lt;SPAN&gt;" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdc="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/DD/20100524/DC" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DC&lt;/A&gt;&lt;SPAN&gt;" xmlns&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;mgdi="&lt;/SPAN&gt;&lt;A href="http://www.omg.org/spec/DD/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DI&lt;/A&gt;&lt;SPAN&gt;" typeLanguage="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;&lt;SPAN&gt;" expressionLanguage="&lt;/SPAN&gt;&lt;A href="http://www.w3.org/1999/XPath" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/1999/XPath&lt;/A&gt;&lt;SPAN&gt;" targetNamespace="&lt;/SPAN&gt;&lt;A href="http://www.activiti.org/processdef" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/processdef&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;message id="InterruptMessage" name="InterruptMessage"&amp;gt;&amp;lt;/message&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;process id="FFCBPMDemo" name="FFCBPMDemo" isExecutable="true"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;startEvent id="start" name="FFCBPM Start" activiti:initiator="initiator"&amp;gt;&amp;lt;/startEvent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endEvent id="end" name="end"&amp;gt;&amp;lt;/endEvent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="sequenceFlow2" sourceRef="TOFFC" targetRef="end"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serviceTask id="TOFFC" name="TOFFC" activiti:delegateExpression="${FFCFlowStarterService}"&amp;gt;&amp;lt;/serviceTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scriptTask id="setVars" name="Set FFC Variables" scriptFormat="groovy" activiti:autoStoreVariables="false"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;execution.setVariable("FFCInstance", "BPMDemo")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;execution.setVariable("FFCFlowName", "WriteFile")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Not used, the BPMFlowStarterActivity uses a process&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// variable called 'data' (which just happens to be our&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// input as well, so effectively we do a 1-to-1 copy)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;def payload = '''\&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a test message from a groovy script&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in a ScriptTask'''&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;execution.setVariable("payload", payload.stripIndent())&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/scriptTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="sid-F3C16836-8B56-4B08-A88A-1D78EB1640B1" sourceRef="setVars" targetRef="TOFFC"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;userTask id="Approve" name="Approve" activiti:assignee="kermit"&amp;gt;&amp;lt;/userTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="sid-ACF18CC9-27A2-4CB9-A3DD-87BDAA23BCCA" sourceRef="Approve" targetRef="setVars"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="sequenceFlow1" sourceRef="start" targetRef="Approve"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="sid-61BCA3DA-A81C-4239-B32A-B2F52D4104AC" sourceRef="Approve" targetRef="setVars"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="sid-B9A579B4-E1A7-4744-90C3-3924F15DFEEB" sourceRef="Interrupt" targetRef="setVars"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;boundaryEvent id="Interrupt" name="Interrupt" attachedToRef="Approve" cancelActivity="false"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;messageEventDefinition messageRef="InterruptMessage"&amp;gt;&amp;lt;/messageEventDefinition&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/boundaryEvent&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/process&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Feb 2015 14:24:30 GMT</pubDate>
    <dc:creator>boekhold</dc:creator>
    <dc:date>2015-02-19T14:24:30Z</dc:date>
    <item>
      <title>User Task with boundary message event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-task-with-boundary-message-event/m-p/207246#M160376</link>
      <description>Hi,(see below for process definition, as generated by Activiti Explorer from 5.17)I have a process with a User Task "Approve", and on that user task I have configured a Boundary Message Event, waiting for an "InterruptMessage". I'm trying to trigger this Boundary Message Event based on Message Name</description>
      <pubDate>Thu, 19 Feb 2015 14:24:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-task-with-boundary-message-event/m-p/207246#M160376</guid>
      <dc:creator>boekhold</dc:creator>
      <dc:date>2015-02-19T14:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: User Task with boundary message event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-task-with-boundary-message-event/m-p/207247#M160377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ps. Seems my copy/paste of the BPMN XML file is screwed up… I'll attach it here.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 14:29:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-task-with-boundary-message-event/m-p/207247#M160377</guid>
      <dc:creator>boekhold</dc:creator>
      <dc:date>2015-02-19T14:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: User Task with boundary message event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-task-with-boundary-message-event/m-p/207248#M160378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For the first point I mentioned (the lookup for executions that are waiting for a specific message), this seems to be caused by the fact that the Message Name is changed by Activiti Modeler if you export/import the model, there's a namespace added to the message name. Also see &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-2198" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-2198&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Feb 2015 06:53:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-task-with-boundary-message-event/m-p/207248#M160378</guid>
      <dc:creator>boekhold</dc:creator>
      <dc:date>2015-02-22T06:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: User Task with boundary message event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-task-with-boundary-message-event/m-p/207249#M160379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And the second point (cancel activity), this is covered by &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-2188" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-2188&lt;/A&gt;&lt;SPAN&gt;. There's a similar issue with Boundary Signal Catching events as well, see &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-2199" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-2199&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Feb 2015 06:54:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-task-with-boundary-message-event/m-p/207249#M160379</guid>
      <dc:creator>boekhold</dc:creator>
      <dc:date>2015-02-22T06:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: User Task with boundary message event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-task-with-boundary-message-event/m-p/207250#M160380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have similar problem. I can't get the activiti cancelled once the boundary message event is fired. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After boundary message event is fired I have two user tasks active, the one that should have been cancelled and the new one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please advise on how to set effectively cancelActiviti=true on boundary message event while you find a solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 19:50:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-task-with-boundary-message-event/m-p/207250#M160380</guid>
      <dc:creator>fjosores</dc:creator>
      <dc:date>2015-02-23T19:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: User Task with boundary message event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-task-with-boundary-message-event/m-p/207251#M160381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We'll look into this and come back and update this post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 19:36:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-task-with-boundary-message-event/m-p/207251#M160381</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-02-24T19:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: User Task with boundary message event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-task-with-boundary-message-event/m-p/207252#M160382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've fixed the message and signal boundary event issue with the cancel activity property. You should be able to set the correct value in the Modeler now and the import should also work.&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>Wed, 25 Feb 2015 09:45:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-task-with-boundary-message-event/m-p/207252#M160382</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-02-25T09:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: User Task with boundary message event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-task-with-boundary-message-event/m-p/207253#M160383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Awesome, all my bugs fixed. Are there any plans already for a 5.18 release?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2015 10:46:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-task-with-boundary-message-event/m-p/207253#M160383</guid>
      <dc:creator>boekhold</dc:creator>
      <dc:date>2015-02-25T10:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: User Task with boundary message event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/user-task-with-boundary-message-event/m-p/207254#M160384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not yet planned currently, but since the last one was in december it'll be next month or the month after if all goes well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, you can always build from source too.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Feb 2015 09:31:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/user-task-with-boundary-message-event/m-p/207254#M160384</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-02-28T09:31:01Z</dc:date>
    </item>
  </channel>
</rss>

