<?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 the initiator for a workflow via script? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/set-the-initiator-for-a-workflow-via-script/m-p/218531#M171661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you solve this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to set the initiator or the owner of the workflow to a group, so that people in that group can see the workflows in their "Workflows I've started" list.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Sep 2011 19:44:06 GMT</pubDate>
    <dc:creator>jperilla</dc:creator>
    <dc:date>2011-09-26T19:44:06Z</dc:date>
    <item>
      <title>set the initiator for a workflow via script?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-the-initiator-for-a-workflow-via-script/m-p/218528#M171658</link>
      <description>how can I set or can I set the initiator for a workflow in a script?var workflow = actions.create("start-workflow");workflow.parameters.workflowName = "jbpm$wf:adhoc";workflow.parameters["bpm:workflowDescription"] = "The attached document has been uploaded to Alfresco. Please review within 3 days.";</description>
      <pubDate>Sun, 28 Feb 2010 15:11:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-the-initiator-for-a-workflow-via-script/m-p/218528#M171658</guid>
      <dc:creator>targa2000</dc:creator>
      <dc:date>2010-02-28T15:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: set the initiator for a workflow via script?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-the-initiator-for-a-workflow-via-script/m-p/218529#M171659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried this one ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var workflow = actions.create("start-workflow");&lt;BR /&gt;workflow.parameters.workflowName = "jbpm$wf:adhoc";&lt;BR /&gt;workflow.parameters["bpm:workflowDescription"] = "The attached document has been uploaded to Alfresco. Please review within 3 days.";&lt;BR /&gt;workflow.parameters["bpm:assignee"] = people.getPerson("admin");&lt;BR /&gt;workflow.parameters["initiator"] = people.getPerson("someone");&lt;BR /&gt;var futureDate = new Date();&lt;BR /&gt;futureDate.setDate(futureDate.getDate() + 3);&lt;BR /&gt;workflow.parameters["bpm:workflowDueDate"] = futureDate;&lt;BR /&gt;workflow.execute(document);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it works&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 19:32:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-the-initiator-for-a-workflow-via-script/m-p/218529#M171659</guid>
      <dc:creator>hsohaib</dc:creator>
      <dc:date>2010-03-02T19:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: set the initiator for a workflow via script?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-the-initiator-for-a-workflow-via-script/m-p/218530#M171660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tried this and in fact the start task seems to be started by the user specified rather the current user. Unfortunately the end task, even if in the initiator swimlane, is assigned to the current user rather then the one specified. Do you have solved this issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Have you tried this one ?&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var workflow = actions.create("start-workflow");&lt;BR /&gt;workflow.parameters.workflowName = "jbpm$wf:adhoc";&lt;BR /&gt;workflow.parameters["bpm:workflowDescription"] = "The attached document has been uploaded to Alfresco. Please review within 3 days.";&lt;BR /&gt;workflow.parameters["bpm:assignee"] = people.getPerson("admin");&lt;BR /&gt;workflow.parameters["initiator"] = people.getPerson("someone");&lt;BR /&gt;var futureDate = new Date();&lt;BR /&gt;futureDate.setDate(futureDate.getDate() + 3);&lt;BR /&gt;workflow.parameters["bpm:workflowDueDate"] = futureDate;&lt;BR /&gt;workflow.execute(document);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;Hope it works&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jun 2011 08:58:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-the-initiator-for-a-workflow-via-script/m-p/218530#M171660</guid>
      <dc:creator>alarocca</dc:creator>
      <dc:date>2011-06-03T08:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: set the initiator for a workflow via script?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-the-initiator-for-a-workflow-via-script/m-p/218531#M171661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you solve this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to set the initiator or the owner of the workflow to a group, so that people in that group can see the workflows in their "Workflows I've started" list.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Sep 2011 19:44:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-the-initiator-for-a-workflow-via-script/m-p/218531#M171661</guid>
      <dc:creator>jperilla</dc:creator>
      <dc:date>2011-09-26T19:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: set the initiator for a workflow via script?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/set-the-initiator-for-a-workflow-via-script/m-p/218532#M171662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For restricting workflow to particular group you need to customize the start-workflow.get.js.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the file which is responsible for retrieving the workflow definitions.In this file you need call repository webscript which will identify whether the current logged in user is in particular group or not and based on the result show/hide the workflow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2018 14:21:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/set-the-initiator-for-a-workflow-via-script/m-p/218532#M171662</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2018-03-17T14:21:01Z</dc:date>
    </item>
  </channel>
</rss>

