Home
TeamSite
how to call a sub () of perl module in wft
System
hi
i am new to perl modules, i have created a perl module in which there is subroutine where i am using DCRparser and DCRnode to parse a dcr and retrive the values. now i use this perl module in my wft and i want to call the sub routine in my wft so the subroutine will return the parsed values.
can someone suggest the idea.
Find more posts tagged with
Comments
kaalraa
R G,
Is it in your requirements that you need to put the functionality in perl module only instead of a simple perl file? As if you use a perl file you can directly call out the same from the workflows external task and put the values retrieved in workflow variables.
However, i dont think so.. that it is possible to call a sub from a wft as workflow can call a complete file from external task.
~ aks
Migrateduser
thanks, plz read my post. as i have a ipl in which i am retriving the value from a DCR and wants to populate a drop down list in TAG_info so i am stuck here to use direct call ipl in TAG_info or turn mu ipl into a perl module and make a call to that sub in wft.
can you just correct me how to achieve this.
http://devnet.interwoven.com/forums/cgi-bin/showflat.pl?Cat=&Board=DOWNLOADS_WORKFLOWS&Number=74464&page=&view=&sb=&o=&vc=1
thanks
iw_store
Hi,
use XX:
B_info qw(getDevConValues);
XX is the folde indside iw-perl/vendor/lib.
DB_info is the perl module inside that getDevConValues is a function.
my
@output
= getDevConValues(input to function);
Will help you.
Sanjeev
Migrateduser
thanks, is xx the default folder inside the vendor path. i am using TS6.5 on sun solaris and i am unable to find the xx folder.
iw_store
Hi,
If you want you can create your own folder or else you can keep in existing folders.
Sanjeev
Migrateduser
i mean that i did'nt find DB_info module in my perl lib, can you just let me know the location or can i download it from the net.
Adam Stoller
Hope that helps.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
Migrateduser
thanks ghoti, i done that as i write the module code in WFT itself with some other changes too. Appreciate your help. its working fine.......