Topic
  • 3 replies
  • Latest Post - ‏2013-04-06T10:16:10Z by SystemAdmin
SystemAdmin
SystemAdmin
9855 Posts

Pinned topic Step by Step Tutorial to create Javascript Extension

‏2013-04-04T00:12:22Z |
Is there any document with the step-by-step tutorial to create javascript extension in TIM, including how to configure inside Tivoli and how to use in Tivoli policy?

Many thanks.
Updated on 2013-04-06T10:16:10Z at 2013-04-06T10:16:10Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    9855 Posts

    Re: Step by Step Tutorial to create Javascript Extension

    ‏2013-04-04T06:26:57Z  
    I think this is what you want : http://pic.dhe.ibm.com/infocenter/ieduasst/secv1r0/topic/com.ibm.iea.tim/tim/5.1/prog_extensions/jsengine_java.pdf?dmuid=20120926145814886086

    Also check the samples in your itim home extensions directory.

    HTH

    Regards
    Franz Wolfhagen
  • SystemAdmin
    SystemAdmin
    9855 Posts

    Re: Step by Step Tutorial to create Javascript Extension

    ‏2013-04-06T09:32:27Z  
    I think this is what you want : http://pic.dhe.ibm.com/infocenter/ieduasst/secv1r0/topic/com.ibm.iea.tim/tim/5.1/prog_extensions/jsengine_java.pdf?dmuid=20120926145814886086

    Also check the samples in your itim home extensions directory.

    HTH

    Regards
    Franz Wolfhagen
    Looks good. So I have to create a java class? So there is no way just to define some javascript code as common functions that could be used in all policy and workflow?

    And I also found a document about javascript extension.
    http://publib.boulder.ibm.com/tividd/td/ITIM/SC32-1683-00/en_US/HTML/javascript/javascript.html

    Regarding the JSObject, this is also a Java class, and has to be used in Java class, right?

    Actually, the purpose of extend javascript is to define some constants or configuration items that need to be shared among all policy and workflows.

    Thanks.
  • SystemAdmin
    SystemAdmin
    9855 Posts

    Re: Step by Step Tutorial to create Javascript Extension

    ‏2013-04-06T10:16:10Z  
    Looks good. So I have to create a java class? So there is no way just to define some javascript code as common functions that could be used in all policy and workflow?

    And I also found a document about javascript extension.
    http://publib.boulder.ibm.com/tividd/td/ITIM/SC32-1683-00/en_US/HTML/javascript/javascript.html

    Regarding the JSObject, this is also a Java class, and has to be used in Java class, right?

    Actually, the purpose of extend javascript is to define some constants or configuration items that need to be shared among all policy and workflows.

    Thanks.
    AFAIK you will have to make a JavaScript extension if you need global functions. I know of no way around that.

    Remember that every workflow activity has to live its own life - that is why the JavaScript is "locally global" :-)

    There fore you will have sharpen your Java skills if you need global functions - but in most cases cut/copy-paste programming is probably as good - only maintenance is somewhat more difficult.

    HTH

    Regards
    Franz