20181021 jython script show all your sca module defined in wps environment

System Blog

jython script show all your sca module defined in wps environment

 


well, in case you need to know it for whatever reason, migrate to mule or whatever for example.


This script will show you both import and export


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
import re

scaModules=AdminTask.listSCAModules().splitlines()

for sca in scaModules:
        print "##################################"
        _sca=re.split(':',sca)
        print 'Application '+_sca[1]
        print 'Module '+_sca[0]
        print 'import'
        print AdminTask.listSCAImports('-moduleName '+_sca[0]+' -applicationName '+_sca[1])
        print 'export'
        print AdminTask.listSCAExports('-moduleName '+_sca[0]+' -applicationName '+_sca[1])

print 'Done'





 

Posted by: leaonow on: Oct 21, 2018

 

dd
Your Name:

OneTime Password:



Pic of the day