Topic
2 replies Latest Post - ‏2013-09-04T04:20:28Z by Nuttapong
Nuttapong
Nuttapong
22 Posts
ACCEPTED ANSWER

Pinned topic (ITIM) How to call external java class from workflows?

‏2013-09-03T08:23:42Z |

HI Everyone,

 

I have to call my custom java class from workflows in ITIM.

Is there any way to do that?

 

Help me please.

Thank a lots,

Nuttapong

  • franzw
    franzw
    326 Posts
    ACCEPTED ANSWER

    Re: (ITIM) How to call external java class from workflows?

    ‏2013-09-03T08:45:41Z  in response to Nuttapong

    First - I generally would advice against calling custom jars from within ITIM - this should only be done if there is no other way to solve the problem.

    That said - there are things that can only be performed this way.

    In general the advice is to wrap the custom class(es) in a JavaScript extension - this is described in the examples in the ITIM_HOME/extensions folder.

    <edit>

    Another way is to code your own workflow extension - that is somewhat more complicated.

    <\edit>

    There is a good whitepaper available here : http://pic.dhe.ibm.com/infocenter/ieduasst/secv1r0/topic/com.ibm.iea.tim/tim/5.1/prog_extensions/writing_java_ext.pdf?dmuid=20120926145821985333.

     

    It is also possible to add java classes directly to the script engine by changing the scriptFramework.properties file - this is discouraged as you may open up security holes...

    This is documented in the formal documentation - as is the JavaScript extension logic - you should really check there first.

    HTH

    Regards

    Franz Wolfhagen

    Updated on 2013-09-03T11:54:14Z at 2013-09-03T11:54:14Z by franzw
    • Nuttapong
      Nuttapong
      22 Posts
      ACCEPTED ANSWER

      Re: (ITIM) How to call external java class from workflows?

      ‏2013-09-04T04:20:28Z  in response to franzw

      Thank a lots Franz Wolfhagen.