<?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: 5.22 get process instance creater in script task in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/5-22-get-process-instance-creater-in-script-task/m-p/27929#M11955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #6d6e71; background-color: #f8f8f8;"&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;var message = "Hello " +&amp;nbsp;&lt;/SPAN&gt;execution.getVariable("&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;initiator&lt;/SPAN&gt;");&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.activiti.org/userguide/#bpmnScriptTask" title="https://www.activiti.org/userguide/#bpmnScriptTask" rel="nofollow noopener noreferrer"&gt;Activiti User Guide 8.5.2. Script Task&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Dec 2017 08:53:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-28T08:53:19Z</dc:date>
    <item>
      <title>5.22 get process instance creater in script task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/5-22-get-process-instance-creater-in-script-task/m-p/27928#M11954</link>
      <description>Hi all.I'm using activiti v5.22, and in script task i want assign creater username into my string.I found one solution is use ${initiator}, but i can use in script task content;ex: var message = "Hello " + ${initiator}.How can I do this?&amp;nbsp;Many thanks.</description>
      <pubDate>Thu, 28 Dec 2017 04:52:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/5-22-get-process-instance-creater-in-script-task/m-p/27928#M11954</guid>
      <dc:creator>long241191</dc:creator>
      <dc:date>2017-12-28T04:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: 5.22 get process instance creater in script task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/5-22-get-process-instance-creater-in-script-task/m-p/27929#M11955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #6d6e71; background-color: #f8f8f8;"&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;var message = "Hello " +&amp;nbsp;&lt;/SPAN&gt;execution.getVariable("&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;initiator&lt;/SPAN&gt;");&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.activiti.org/userguide/#bpmnScriptTask" title="https://www.activiti.org/userguide/#bpmnScriptTask" rel="nofollow noopener noreferrer"&gt;Activiti User Guide 8.5.2. Script Task&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 08:53:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/5-22-get-process-instance-creater-in-script-task/m-p/27929#M11955</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-28T08:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: 5.22 get process instance creater in script task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/5-22-get-process-instance-creater-in-script-task/m-p/27930#M11956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have try, no error when execute, but result is NULL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message = "Helllo null";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 09:11:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/5-22-get-process-instance-creater-in-script-task/m-p/27930#M11956</guid>
      <dc:creator>long241191</dc:creator>
      <dc:date>2017-12-28T09:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: 5.22 get process instance creater in script task</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/5-22-get-process-instance-creater-in-script-task/m-p/27931#M11957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you set the initiator setting as the start event, you can get it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #222222; background-color: #ffffff; font-weight: bold; font-size: 16px;"&gt;initiator&lt;/STRONG&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 16px;"&gt;: identifies the variable name in which the authenticated user id will be stored when the process is started. Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.activiti.org/userguide/#bpmnStartEvents" title="https://www.activiti.org/userguide/#bpmnStartEvents" rel="nofollow noopener noreferrer"&gt;Activiti User Guide 8.2.6. Start Events&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;&lt;SPAN&gt;initiator setting in bpmn&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;startEvent id="request" activiti:initiator="initiator" /&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;2.&amp;nbsp;If you set the above, you can get it with the following script.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;var message = "Hello " +&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #6d6e71; background-color: #f8f8f8;"&gt;execution.getVariable("&lt;/SPAN&gt;&lt;SPAN style="color: #727174; background-color: #ffffff; border: 0px; font-size: 14px;"&gt;initiator&lt;/SPAN&gt;&lt;SPAN style="color: #6d6e71; background-color: #f8f8f8;"&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Dec 2017 12:10:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/5-22-get-process-instance-creater-in-script-task/m-p/27931#M11957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-28T12:10:03Z</dc:date>
    </item>
  </channel>
</rss>

