Python/Perl Script to Create Custom Operation having Modules.
I want to create Custom operations using Python/Perl scripts which includes using Python/Perl Modules.
What will be the necessary system requirements...?
First of all is it possible...?
" import xyz_Module" will work in scripts section of HPOO operation...?
Please help me
Thanks in Advance.
Do you want to call Python from Java code or you want to use Remote Command operation to call Python to execute a script?
If you use Remote Command you can use scripts that import Python modules. The modules should be accessible on the OO RAS system where Python interpreter needs to be installed as well.
If you use Java and Jython scripts I suggest to have a look here for details how modules search path is resolved in such situation (no OO constraint just keep in mind the execution box is the OO RAS server): http://www.jython.org/jythonbook/en/1.0/ModulesPackages.html
If you want to use OO and Python the recommendation is to have a look at CloudSlang. first This is an open source orchestration language that supports Python operations (in addition to Java operations) and provides textual workflow capabilities. You can also package and run CloudSlang workflows natively from OO Central.
Hope it helps,