<?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 how to find out the starter id from groovy script in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-the-starter-id-from-groovy-script/m-p/140771#M98592</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;my goal is to find out if a person who started process, is a member of particular group or not. I tried to do it by groovy script task with command&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;execution.getEngineServices().getTaskService().getIdentityLinksForTask(execution.getCurrentActivityId())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(and process the result to find an owner) but I got 'NullPointerException' error in that line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have no idea what is wrong or is it proper way to solve the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anybody advice me what to do? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jacek&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jan 2013 01:17:28 GMT</pubDate>
    <dc:creator>jachu</dc:creator>
    <dc:date>2013-01-11T01:17:28Z</dc:date>
    <item>
      <title>how to find out the starter id from groovy script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-the-starter-id-from-groovy-script/m-p/140771#M98592</link>
      <description>my goal is to find out if a person who started process, is a member of particular group or not. I tried to do it by groovy script task with commandexecution.getEngineServices().getTaskService().getIdentityLinksForTask(execution.getCurrentActivityId())(and process the result to find an owner) but I g</description>
      <pubDate>Fri, 11 Jan 2013 01:17:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-the-starter-id-from-groovy-script/m-p/140771#M98592</guid>
      <dc:creator>jachu</dc:creator>
      <dc:date>2013-01-11T01:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to find out the starter id from groovy script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-the-starter-id-from-groovy-script/m-p/140772#M98593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#bpmnStartEvents" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#bpmnStartEvents&lt;/A&gt;&lt;SPAN&gt;, you can use the initiator variable later on in the process, using e.g. an expression of runtimeService.getVariable(…):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;startEvent id="request" activiti:initiator="initiator" /&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 07:47:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-the-starter-id-from-groovy-script/m-p/140772#M98593</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-01-11T07:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to find out the starter id from groovy script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-the-starter-id-from-groovy-script/m-p/140773#M98594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thx for answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to use the method you adviced me, and it works perfectly - but only if I prepare process in Activiti Designer. It fails when prepared in Modeler. In that case I got an error: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SEVERE: Terminal error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.vaadin.event.ListenerMethod$MethodException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cause: com.vaadin.event.ListenerMethod$MethodException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cause: java.lang.VerifyError: (class: Script4, method: run signature: ()Ljava/lang/Object&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; Stack size too large&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)&lt;/SPAN&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;in bpmn:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;startEvent id="start1" name="Start 1" activiti:initiator="initman"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in groovy script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;out&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rintln initman;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but the same script/process deployed from designer works ok. I used Activiti 5.11.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 09:36:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-the-starter-id-from-groovy-script/m-p/140773#M98594</guid>
      <dc:creator>jachu</dc:creator>
      <dc:date>2013-01-14T09:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to find out the starter id from groovy script</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-the-starter-id-from-groovy-script/m-p/140774#M98595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you compare the BPMN2.0 xml-files (the one coming out of the designer and the other from modeler) with each other? So we know what the actual difference…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 09:13:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-the-starter-id-from-groovy-script/m-p/140774#M98595</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-01-15T09:13:32Z</dc:date>
    </item>
  </channel>
</rss>

