<?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: UCS Director Cloupia Script Methods? in DevNet General Discussions</title>
    <link>https://community.cisco.com/t5/devnet-general-discussions/ucs-director-cloupia-script-methods/m-p/3473682#M270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Cloupia script is a combination of JavaScript and Cloupia libraries, which you can execute from within&lt;BR /&gt;the Cloupia server platform. You can access subset of Cloupia Java APIs and objects from the script. The&lt;BR /&gt;Cloupia script supports all JavaScript syntax. However, browser-based objects are not supported because the&lt;BR /&gt;Cloupia script contains a server-side scripting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Three predefined top-level implicit variables or objects are in any Cloupia script:&lt;BR /&gt;• ctxt—This variable or object points to the Cloupia Workflow Execution context. Using this object, the&lt;BR /&gt;script can access information about the current workflow, task, input, output and can access the Cloupia&lt;BR /&gt;APIs. Using the Cloupia APIs, you can invoke the create, read, update, and delete (CRUD) operations,&lt;BR /&gt;workflow tasks, and expose other REST APIs. The ctxt object maps to the platform API:&lt;BR /&gt;com.cloupia.service.cIM.inframgr.customactions.CustomActionTriggerContext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;• logger—This variable or object points to the Cloupia workflow logger object. All scripts must add&lt;BR /&gt;reasonable amount of logging statements, which will be logged into the Service Request log. The logger&lt;BR /&gt;implicit object maps to the platform API:&lt;BR /&gt;com.cloupia.service.cIM.inframgr.customactions.CustomActionLogger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;• util—Few built-in utility concepts can be accessed using this variable or object. The util implicit object&lt;BR /&gt;maps to the platform API: com.cloupia.lib.util.managedreports.APIFunctions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Reference - &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developer.cisco.com/fileMedia/download/dc4fbebc-f485-483f-bd00-df85c54b8a19" rel="nofollow" target="_blank"&gt;https://developer.cisco.com/fileMedia/download/dc4fbebc-f485-483f-bd00-df85c54b8a19&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Geevarghese&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jul 2014 12:34:01 GMT</pubDate>
    <dc:creator>Geevarghese Cheria</dc:creator>
    <dc:date>2014-07-17T12:34:01Z</dc:date>
    <item>
      <title>UCS Director Cloupia Script Methods?</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/ucs-director-cloupia-script-methods/m-p/3473681#M269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone point me to better documentation that describes what the default included methods and variables are in the following Cloupia script objects:&lt;/P&gt;&lt;P&gt;ctxt&lt;/P&gt;&lt;P&gt;logger&lt;/P&gt;&lt;P&gt;util&lt;/P&gt;&lt;P&gt;input&lt;/P&gt;&lt;P&gt;output&lt;/P&gt;&lt;P&gt;metadata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that same javadocs zipfile is included in the SDK for both OA and CS but I seem to be bumping into walls just trying to get stuff to work.&amp;nbsp; I can find a ton of references to importpackages where the class listed as 'model' but it will not get past the importpackages area if I don't change 'model' to 'service'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 10:45:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/ucs-director-cloupia-script-methods/m-p/3473681#M269</guid>
      <dc:creator>guthrie</dc:creator>
      <dc:date>2019-03-01T10:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: UCS Director Cloupia Script Methods?</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/ucs-director-cloupia-script-methods/m-p/3473682#M270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Cloupia script is a combination of JavaScript and Cloupia libraries, which you can execute from within&lt;BR /&gt;the Cloupia server platform. You can access subset of Cloupia Java APIs and objects from the script. The&lt;BR /&gt;Cloupia script supports all JavaScript syntax. However, browser-based objects are not supported because the&lt;BR /&gt;Cloupia script contains a server-side scripting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Three predefined top-level implicit variables or objects are in any Cloupia script:&lt;BR /&gt;• ctxt—This variable or object points to the Cloupia Workflow Execution context. Using this object, the&lt;BR /&gt;script can access information about the current workflow, task, input, output and can access the Cloupia&lt;BR /&gt;APIs. Using the Cloupia APIs, you can invoke the create, read, update, and delete (CRUD) operations,&lt;BR /&gt;workflow tasks, and expose other REST APIs. The ctxt object maps to the platform API:&lt;BR /&gt;com.cloupia.service.cIM.inframgr.customactions.CustomActionTriggerContext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;• logger—This variable or object points to the Cloupia workflow logger object. All scripts must add&lt;BR /&gt;reasonable amount of logging statements, which will be logged into the Service Request log. The logger&lt;BR /&gt;implicit object maps to the platform API:&lt;BR /&gt;com.cloupia.service.cIM.inframgr.customactions.CustomActionLogger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;• util—Few built-in utility concepts can be accessed using this variable or object. The util implicit object&lt;BR /&gt;maps to the platform API: com.cloupia.lib.util.managedreports.APIFunctions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Reference - &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developer.cisco.com/fileMedia/download/dc4fbebc-f485-483f-bd00-df85c54b8a19" rel="nofollow" target="_blank"&gt;https://developer.cisco.com/fileMedia/download/dc4fbebc-f485-483f-bd00-df85c54b8a19&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Geevarghese&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 12:34:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/ucs-director-cloupia-script-methods/m-p/3473682#M270</guid>
      <dc:creator>Geevarghese Cheria</dc:creator>
      <dc:date>2014-07-17T12:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: UCS Director Cloupia Script Methods?</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/ucs-director-cloupia-script-methods/m-p/3473683#M271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gotcha.&amp;nbsp; In further examples it seems like more is available but not readily documented:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ucs-director/cloupia-script-config-guide/4-1/b_Cisco_UCS_Director_Cloupia_Script_Configuration_Guide/b_Cisco_UCS_Director_Cloupia_Script_Configuration_Guide_appendix_0100.html" title="http://www.cisco.com/c/en/us/td/docs/unified_computing/ucs/ucs-director/cloupia-script-config-guide/4-1/b_Cisco_UCS_Director_Cloupia_Script_Configuration_Guide/b_Cisco_UCS_Director_Cloupia_Script_Configuration_Guide_appendix_0100.html"&gt;Cisco UCS Director Cloupia Script Configuration Guide, Release 4.1&amp;nbsp; - Cloupia Script Samples [Cisco UCS Director] - Cisc…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above URL has a section for "Sending Emails from the Cloupia Script".&amp;nbsp; You can see it is calling importPackage yet there is no indication in the javadocs that these are available to be imported.&amp;nbsp; I have tried importPackage for a few other items listed in the javadocs yet it either ignores the lines or errors out.&amp;nbsp; Is there more documentation elsewhere about what is allowed to be imported into cloupiascript for use?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 18:55:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/ucs-director-cloupia-script-methods/m-p/3473683#M271</guid>
      <dc:creator>guthrie</dc:creator>
      <dc:date>2014-07-17T18:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: UCS Director Cloupia Script Methods?</title>
      <link>https://community.cisco.com/t5/devnet-general-discussions/ucs-director-cloupia-script-methods/m-p/3473684#M272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you found any good ways to dig deeper into Cloupia?&amp;nbsp; I am starting out myself and am finding the documentation lacking as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2016 23:08:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/devnet-general-discussions/ucs-director-cloupia-script-methods/m-p/3473684#M272</guid>
      <dc:creator>madtokumbowl</dc:creator>
      <dc:date>2016-08-02T23:08:33Z</dc:date>
    </item>
  </channel>
</rss>

