<?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: webscript - reference to 'workflow' giving error in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/webscript-reference-to-workflow-giving-error/m-p/173663#M126797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the info.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 May 2008 15:36:21 GMT</pubDate>
    <dc:creator>robain</dc:creator>
    <dc:date>2008-05-29T15:36:21Z</dc:date>
    <item>
      <title>webscript - reference to 'workflow' giving error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-reference-to-workflow-giving-error/m-p/173659#M126793</link>
      <description>I get this error when i use "workflow" in the .js fileorg.mozilla.javascript.EcmaError - ReferenceError: "workflow" is not defined. (AlfrescoScript#3) but the reference to same object from the template file works fine.anyone has idea what the problem isThanks</description>
      <pubDate>Fri, 23 May 2008 15:56:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-reference-to-workflow-giving-error/m-p/173659#M126793</guid>
      <dc:creator>robain</dc:creator>
      <dc:date>2008-05-23T15:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: webscript - reference to 'workflow' giving error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-reference-to-workflow-giving-error/m-p/173660#M126794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From template file - I am assuming you mean from Freemarker?&amp;nbsp; From documentation, worflow is only exposed in JavaScript in 2.9 labs.&amp;nbsp; Which version are you using? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API#Workflow_API" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API#Workflow_API&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Those APIs are getting exposed separately. Freemarker gets its own set of objects, and JavaScript others, they are not equivalent.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&amp;nbsp;&amp;nbsp; Not sure what the actual problem is.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 03:39:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-reference-to-workflow-giving-error/m-p/173660#M126794</guid>
      <dc:creator>jbarmash</dc:creator>
      <dc:date>2008-05-28T03:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: webscript - reference to 'workflow' giving error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-reference-to-workflow-giving-error/m-p/173661#M126795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using 2.1.2 enterprise version. So I cannot access workflow from javascript on that version ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 14:08:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-reference-to-workflow-giving-error/m-p/173661#M126795</guid>
      <dc:creator>robain</dc:creator>
      <dc:date>2008-05-28T14:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: webscript - reference to 'workflow' giving error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-reference-to-workflow-giving-error/m-p/173662#M126796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks like you can't.&amp;nbsp; I just checked, and with 2.2 you can't either.&amp;nbsp; It does make sense it's exposed in some of the newer stuff, since with adding multi-tenancy, they are exposing workflow to be easily dynamically reloaded.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One thing you can do is expose a proxy class to JavaScript yourself.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API#Adding_Custom_Script_APIs" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/JavaScript_API#Adding_Custom_Script_APIs&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can look inside script-services-context.xml to see how these things get exposed, and follow the code.&amp;nbsp; It might be not too hard, actually, depending of course on how much functionality you need exposed.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need an example, I can email you a sample I put together for how to expose this - not relating to workflow, but might help (it will be part of our upcoming enterprise network). Email me at jbarmash at alfresco dot com.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 02:56:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-reference-to-workflow-giving-error/m-p/173662#M126796</guid>
      <dc:creator>jbarmash</dc:creator>
      <dc:date>2008-05-29T02:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: webscript - reference to 'workflow' giving error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/webscript-reference-to-workflow-giving-error/m-p/173663#M126797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the info.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 15:36:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/webscript-reference-to-workflow-giving-error/m-p/173663#M126797</guid>
      <dc:creator>robain</dc:creator>
      <dc:date>2008-05-29T15:36:21Z</dc:date>
    </item>
  </channel>
</rss>

