<?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: Rule for Excute Script option in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/rule-for-excute-script-option/m-p/107176#M30204</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I understand how to add script . i have attached the .js file&amp;nbsp; but it doesn't work ..please refer below script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function startWorkflow()&lt;BR /&gt;{&lt;BR /&gt; var workflowAction = workflow.getDefinitionByName("activiti$test_wf");&lt;BR /&gt; var package= workflow.createPackage();&lt;/P&gt;&lt;P&gt;var wfparams = new Array();&lt;BR /&gt; wfparams["model_prefix:req_props_name"] = value2;&lt;/P&gt;&lt;P&gt;wfparams["bpm:assignee"] = people.getPerson("ADMIN");&lt;BR /&gt; workflowAction.startWorkflow(package, wfparams);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;startWorkflow();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here &lt;SPAN&gt;&lt;STRONG&gt;activiti$test_wf&lt;/STRONG&gt; is custom id of workflow , as i m getting this script from net..how should i get my custom workflow ID.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jul 2019 10:35:46 GMT</pubDate>
    <dc:creator>aishu</dc:creator>
    <dc:date>2019-07-12T10:35:46Z</dc:date>
    <item>
      <title>Rule for Excute Script option</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rule-for-excute-script-option/m-p/107174#M30202</link>
      <description>Dear Team,I have to set automatic workflow,if any file uploaded to respective folder my workflow should start and send mail to appropriate person for approval.&amp;nbsp;i m trying to set Rule with Perform action-&amp;gt;Execute script-&amp;gt; but when i create script then it is not showing in droppingcan u suggest</description>
      <pubDate>Fri, 12 Jul 2019 09:00:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rule-for-excute-script-option/m-p/107174#M30202</guid>
      <dc:creator>aishu</dc:creator>
      <dc:date>2019-07-12T09:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rule for Excute Script option</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rule-for-excute-script-option/m-p/107175#M30203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should put your .js file in Repository-&amp;gt;Data dictionary-&amp;gt;Script folder.&lt;/P&gt;&lt;P&gt;It would be visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kintu&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.contcentric.com" rel="nofollow noopener noreferrer"&gt;ContCentric&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2019 09:21:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rule-for-excute-script-option/m-p/107175#M30203</guid>
      <dc:creator>kintu_barot</dc:creator>
      <dc:date>2019-07-12T09:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rule for Excute Script option</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rule-for-excute-script-option/m-p/107176#M30204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I understand how to add script . i have attached the .js file&amp;nbsp; but it doesn't work ..please refer below script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function startWorkflow()&lt;BR /&gt;{&lt;BR /&gt; var workflowAction = workflow.getDefinitionByName("activiti$test_wf");&lt;BR /&gt; var package= workflow.createPackage();&lt;/P&gt;&lt;P&gt;var wfparams = new Array();&lt;BR /&gt; wfparams["model_prefix:req_props_name"] = value2;&lt;/P&gt;&lt;P&gt;wfparams["bpm:assignee"] = people.getPerson("ADMIN");&lt;BR /&gt; workflowAction.startWorkflow(package, wfparams);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;startWorkflow();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here &lt;SPAN&gt;&lt;STRONG&gt;activiti$test_wf&lt;/STRONG&gt; is custom id of workflow , as i m getting this script from net..how should i get my custom workflow ID.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2019 10:35:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rule-for-excute-script-option/m-p/107176#M30204</guid>
      <dc:creator>aishu</dc:creator>
      <dc:date>2019-07-12T10:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rule for Excute Script option</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rule-for-excute-script-option/m-p/107177#M30205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aishwarya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this line, you need to add property of custom workflow model insted of "&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;model_prefix:req_props_name&lt;/SPAN&gt;". Or you can use OOTB properties like "bpm:comment", "bpm:startDate", "bpm_priority" etc.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;wfparams["model_prefix:req_props_name"] = value2;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you register your custom workflow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vidhi&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.contcentric.com/" rel="nofollow noopener noreferrer"&gt;ContCentric&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2019 05:15:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rule-for-excute-script-option/m-p/107177#M30205</guid>
      <dc:creator>vidhipanchal</dc:creator>
      <dc:date>2019-07-16T05:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rule for Excute Script option</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rule-for-excute-script-option/m-p/107178#M30206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vidhi,&lt;/P&gt;&lt;P&gt;thank you for your response, i have got script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jul 2019 05:43:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rule-for-excute-script-option/m-p/107178#M30206</guid>
      <dc:creator>aishu</dc:creator>
      <dc:date>2019-07-16T05:43:09Z</dc:date>
    </item>
  </channel>
</rss>

