<?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: MultiInstance CallActivity - How to distinguish user tasks? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/multiinstance-callactivity-how-to-distinguish-user-tasks/m-p/157681#M111846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your quick response.&amp;nbsp; When I use&amp;nbsp; the loopCounter in the task's name, like "name${loopCounter}", it says unknown property used in expression. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not tried the listener yet, but wondering the loopCounter will available in the listener. I will try the listener too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jan 2014 13:07:07 GMT</pubDate>
    <dc:creator>kusam_activiti</dc:creator>
    <dc:date>2014-01-16T13:07:07Z</dc:date>
    <item>
      <title>MultiInstance CallActivity - How to distinguish user tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiinstance-callactivity-how-to-distinguish-user-tasks/m-p/157679#M111844</link>
      <description>Hi, I have defined a parallel MultiInstance Call Activiti(Sub-Process, cardinality = 2) which contains UserTasks. When I complete the user tasks, how to distinguish user task created by first instance verses second one, because both the user tasks will have the same name/id.If I need to depend on th</description>
      <pubDate>Wed, 15 Jan 2014 17:46:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiinstance-callactivity-how-to-distinguish-user-tasks/m-p/157679#M111844</guid>
      <dc:creator>kusam_activiti</dc:creator>
      <dc:date>2014-01-15T17:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: MultiInstance CallActivity - How to distinguish user tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiinstance-callactivity-how-to-distinguish-user-tasks/m-p/157680#M111845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could, for example, use a task-create listener to set a task-local variable on the task that's being created, based on the value of the loop counter. Or, alternatively, use an expression that contains the loop counter for "name" or "documentation" of the task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, the execution-id of the tasks will be different. If you use that value, you can identify what execution it belongs to.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 08:42:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiinstance-callactivity-how-to-distinguish-user-tasks/m-p/157680#M111845</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-01-16T08:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: MultiInstance CallActivity - How to distinguish user tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiinstance-callactivity-how-to-distinguish-user-tasks/m-p/157681#M111846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your quick response.&amp;nbsp; When I use&amp;nbsp; the loopCounter in the task's name, like "name${loopCounter}", it says unknown property used in expression. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not tried the listener yet, but wondering the loopCounter will available in the listener. I will try the listener too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 13:07:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiinstance-callactivity-how-to-distinguish-user-tasks/m-p/157681#M111846</guid>
      <dc:creator>kusam_activiti</dc:creator>
      <dc:date>2014-01-16T13:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: MultiInstance CallActivity - How to distinguish user tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiinstance-callactivity-how-to-distinguish-user-tasks/m-p/157682#M111847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created a taskListener, org.activiti.engine.delegate.TaskListener, and trying to get the loopCounter following way and the value is null. How to get the loopCounter in the listener?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; public void notify(DelegateTask delegateTask) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; String loopCounter = String.valueOf(delegateTask.getVariable("loopCounter"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; log.info("loopCounter : " + loopCounter);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&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, 16 Jan 2014 17:21:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiinstance-callactivity-how-to-distinguish-user-tasks/m-p/157682#M111847</guid>
      <dc:creator>kusam_activiti</dc:creator>
      <dc:date>2014-01-16T17:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: MultiInstance CallActivity - How to distinguish user tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiinstance-callactivity-how-to-distinguish-user-tasks/m-p/157683#M111848</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;CODE&gt;&lt;BR /&gt;public class ActivityStartListener implements ExecutionListener {&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; public void notify(DelegateExecution execution) throws Exception {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Integer loopCounter = (Integer) execution.getVariable("loopCounter");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (loopCounter == null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loopCounter = 0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.setVariable("executionListenerCounter", ++loopCounter);&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;be aware the first loop counter is null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 20:06:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiinstance-callactivity-how-to-distinguish-user-tasks/m-p/157683#M111848</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-01-16T20:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: MultiInstance CallActivity - How to distinguish user tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiinstance-callactivity-how-to-distinguish-user-tasks/m-p/157684#M111849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;that's strange, the variable should be available AFAIK. Try the listener-approach and report back if not working…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 07:34:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiinstance-callactivity-how-to-distinguish-user-tasks/m-p/157684#M111849</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-01-17T07:34:16Z</dc:date>
    </item>
  </channel>
</rss>

