<?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: set owner and involved people in bpmn20.xml in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/set-owner-and-involved-people-in-bpmn20-xml/m-p/164547#M118280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use the activiti:initiator="someVariable" (see user guide). Next, you can use a task-listener (event=create) to set the owner, based on the value of "someVariable". Setting involved people can also be done by using a listener (an execution-listener this time). Add an execution-listener on the process (event=start), which implementation involves people with the process. Use field-injection (again, see userguide) to define, for example, a comma-seperated list of users in an &amp;lt;activiti:field …&amp;gt; on that executionListener. This way, the values you fill in in the BPMN can be used by the execution-listener.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Dec 2013 08:44:39 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-12-05T08:44:39Z</dc:date>
    <item>
      <title>set owner and involved people in bpmn20.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-owner-and-involved-people-in-bpmn20-xml/m-p/164546#M118279</link>
      <description>hi to alli want to set process initiator as task owner in bpmn20.xml ,have any solution for this ?and i want to set involved people in bpmn20.xml ,have any solution for this ?</description>
      <pubDate>Sat, 23 Nov 2013 11:08:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-owner-and-involved-people-in-bpmn20-xml/m-p/164546#M118279</guid>
      <dc:creator>shaparak-smmira</dc:creator>
      <dc:date>2013-11-23T11:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: set owner and involved people in bpmn20.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-owner-and-involved-people-in-bpmn20-xml/m-p/164547#M118280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can use the activiti:initiator="someVariable" (see user guide). Next, you can use a task-listener (event=create) to set the owner, based on the value of "someVariable". Setting involved people can also be done by using a listener (an execution-listener this time). Add an execution-listener on the process (event=start), which implementation involves people with the process. Use field-injection (again, see userguide) to define, for example, a comma-seperated list of users in an &amp;lt;activiti:field …&amp;gt; on that executionListener. This way, the values you fill in in the BPMN can be used by the execution-listener.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 08:44:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-owner-and-involved-people-in-bpmn20-xml/m-p/164547#M118280</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-05T08:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: set owner and involved people in bpmn20.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-owner-and-involved-people-in-bpmn20-xml/m-p/164548#M118281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;By any chance, is 5.15 providing the following syntax ? 'activiti:involvedUsers="someVariable"'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or should we still use the task-listener to set involved users and groups.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yohann&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 21:13:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-owner-and-involved-people-in-bpmn20-xml/m-p/164548#M118281</guid>
      <dc:creator>zze_one</dc:creator>
      <dc:date>2014-06-03T21:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: set owner and involved people in bpmn20.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-owner-and-involved-people-in-bpmn20-xml/m-p/164549#M118282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, that construct isnt available.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 08:26:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-owner-and-involved-people-in-bpmn20-xml/m-p/164549#M118282</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-06-04T08:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: set owner and involved people in bpmn20.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-owner-and-involved-people-in-bpmn20-xml/m-p/164550#M118283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Joram.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so here I am now. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my bpmn file I have the following user task&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;userTask id="usertask1" name="First User Task" activiti:candidateGroups="management, accountancy"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:executionListener class="realfoundation.foundationservices.process.tasks.FoundationTaskListener" event="start"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:field name="involvedUsers" expression="${organizers}" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activiti:executionListener&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/userTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did create a Listener, in which I retrieve the value passed in my process variable for 'organizers'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public class FoundationTaskListener implements ExecutionListener {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private Expression involvedUsers;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; @Override&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public void notify(DelegateExecution paramDelegateExecution) throws Exception {&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; if (involvedUsers != null) {&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; System.out.println("involvedUsers: " + involvedUsers.getValue(paramDelegateExecution).toString());&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; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In order to set and retrieve involved users on a task, my guess is that I have to add the value as an identyLink. I'm not sure how to do that though. Could you please help me on this ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 14:29:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-owner-and-involved-people-in-bpmn20-xml/m-p/164550#M118283</guid>
      <dc:creator>zze_one</dc:creator>
      <dc:date>2014-06-05T14:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: set owner and involved people in bpmn20.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-owner-and-involved-people-in-bpmn20-xml/m-p/164551#M118284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;By simply doing … ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;taskService.addGroupIdentityLink("taskId", involvedUsers.getValue(paramDelegateExecution).toString(), "type"); !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I should have dig a bit more before asking apparently. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 14:34:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-owner-and-involved-people-in-bpmn20-xml/m-p/164551#M118284</guid>
      <dc:creator>zze_one</dc:creator>
      <dc:date>2014-06-05T14:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: set owner and involved people in bpmn20.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-owner-and-involved-people-in-bpmn20-xml/m-p/164552#M118285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm missing something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Frederik said :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Add an execution-listener on the process (event=start), which implementation involves people with the process. &lt;BR /&gt;Use field-injection (again, see userguide) to define, for example, a comma-seperated list of users in an on that executionListener&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;so far so good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But then, when reaching the execution listener, it looks like the task has not been instantiated yet (I made the check by listing the task instances for the given process instance).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So how is it possible to add IdentityLinks to the task instance at this point ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'm trying to do :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&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; for (String group : transformInvolvedActorsToList(involvedGroups.getValue(execution).toString())) {&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; execution.getEngineServices().getTaskService()&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .addGroupIdentityLink(execution.getCurrentActivityId(), group, InvolvedUsersConstants.INVOLVED_GROUP);&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And obviously, the system cannot find any task with the provided id …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 19:44:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-owner-and-involved-people-in-bpmn20-xml/m-p/164552#M118285</guid>
      <dc:creator>zze_one</dc:creator>
      <dc:date>2014-06-06T19:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: set owner and involved people in bpmn20.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-owner-and-involved-people-in-bpmn20-xml/m-p/164553#M118286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi asked my question again (in a better English maybe) in this new topic :&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/content/identitylink-and-execution-listener" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/identitylink-and-execution-listener&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 20:13:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-owner-and-involved-people-in-bpmn20-xml/m-p/164553#M118286</guid>
      <dc:creator>zze_one</dc:creator>
      <dc:date>2014-06-10T20:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: set owner and involved people in bpmn20.xml</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-owner-and-involved-people-in-bpmn20-xml/m-p/164554#M118287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After reading the comments in this thread and the other thread that Yohann has linked to, it is still unclear to me whether it is possible to get access to the current user task in an &amp;lt;code&amp;gt;ExecutionListener&amp;lt;/code&amp;gt;. In &amp;lt;code&amp;gt;TaskListener&amp;lt;/code&amp;gt; this is possible through the &amp;lt;code&amp;gt;DelegateTask&amp;lt;/code&amp;gt; parameter but is it also possible in &amp;lt;code&amp;gt;ExecutionListener&amp;lt;/code&amp;gt; using a task query?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2015 17:01:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-owner-and-involved-people-in-bpmn20-xml/m-p/164554#M118287</guid>
      <dc:creator>vahidg</dc:creator>
      <dc:date>2015-07-29T17:01:36Z</dc:date>
    </item>
  </channel>
</rss>

