<?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 new js not visible in list 'execute script' in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/new-js-not-visible-in-list-execute-script/m-p/257054#M210184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I added a simple js in 'data dictionary/scripts' folder. &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var workflow = actions.create("start-workflow");&lt;BR /&gt;workflow.parameters.workflowName = "activiti$activitiAdhoc";&lt;BR /&gt;workflow.parameters["bpm:assignee"] = people.getPerson("valentine");&lt;BR /&gt;workflow.parameters["bpm:workflowDescription"] = "The attached document is uploaded in Alfresco, please review today.";&lt;BR /&gt;workflow.parameters["initiator"] = people.getPerson("kris");&lt;BR /&gt;var today = new Date();&lt;BR /&gt;var duedate = today.getDate() + 1;&lt;BR /&gt;workflow.parameters["bpm:workflowDueDate"] = duedate;&lt;BR /&gt;workflow.execute(document);&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;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;I named it advancedflow1.js and gave it a title. When I want to execute the script using a rule, the new js is not in the list. I already restarted Tomcat with no luck, file still isn't there. I don't think there is an error in the code and trying to rule that out I copied a piece of an example script into my advancedflow1.js but the file still does not appear.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using alfresco 4.0.c. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anything I forgot? Can I flush caches in alfresco? Already flushed browser cache with no improvement. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any advice on this is appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jan 2012 16:31:32 GMT</pubDate>
    <dc:creator>kay_be_</dc:creator>
    <dc:date>2012-01-31T16:31:32Z</dc:date>
    <item>
      <title>new js not visible in list 'execute script'</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/new-js-not-visible-in-list-execute-script/m-p/257054#M210184</link>
      <description>I added a simple js in 'data dictionary/scripts' folder. var workflow = actions.create("start-workflow");workflow.parameters.workflowName = "activiti$activitiAdhoc";workflow.parameters["bpm:assignee"] = people.getPerson("valentine");workflow.parameters["bpm:workflowDescription"] = "The attached docu</description>
      <pubDate>Tue, 31 Jan 2012 16:31:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/new-js-not-visible-in-list-execute-script/m-p/257054#M210184</guid>
      <dc:creator>kay_be_</dc:creator>
      <dc:date>2012-01-31T16:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: new js not visible in list 'execute script'</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/new-js-not-visible-in-list-execute-script/m-p/257055#M210185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found the mistake. I'll post it here so others that have the same problem have their solution. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When creating a script in the scripts folder you can choose between content types HTML, plain text and XML. I 've choosen plain text as I do creating websripts and I choose .js in the name. Unfortunately this is not enough. You have to edit the properties of the new script file (metadata) after creating the script and then you can change the content type and then: you have a whole bunch of types. Choose JS here and voila, you're done and your new javascript will appear in the execute script's list when creating a rule.&amp;nbsp; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 16:45:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/new-js-not-visible-in-list-execute-script/m-p/257055#M210185</guid>
      <dc:creator>kay_be_</dc:creator>
      <dc:date>2012-01-31T16:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: new js not visible in list 'execute script'</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/new-js-not-visible-in-list-execute-script/m-p/257056#M210186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It was very useful for me. Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2013 10:39:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/new-js-not-visible-in-list-execute-script/m-p/257056#M210186</guid>
      <dc:creator>hsimonnot</dc:creator>
      <dc:date>2013-02-14T10:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: new js not visible in list 'execute script'</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/new-js-not-visible-in-list-execute-script/m-p/257057#M210187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i created script called transform.js and put in data dictionary –&amp;gt; script folder . but it is not working on executing the Action to call that script. predefined scripts are working.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 05:37:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/new-js-not-visible-in-list-execute-script/m-p/257057#M210187</guid>
      <dc:creator>vijaypratapsing</dc:creator>
      <dc:date>2013-04-02T05:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: new js not visible in list 'execute script'</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/new-js-not-visible-in-list-execute-script/m-p/257058#M210188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jay this is good. Do you know how to add scripts on the classpath to the Execute Script action?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2013 14:46:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/new-js-not-visible-in-list-execute-script/m-p/257058#M210188</guid>
      <dc:creator>koopa</dc:creator>
      <dc:date>2013-04-22T14:46:34Z</dc:date>
    </item>
  </channel>
</rss>

