I have been supporting IBM WPS suite over a decade, overall, despite its learning curve, it’s a good product. Unfortunately, technology is evolving and this product is slowly dying , users are moving away and looking for its replacement.

The company I am working for at the moment is migrating all APIs from WPS to Mule, and the Tech lead want to know all SCA imports and Export we have in our environment, if you are doing the same, or need to have this list for whatever reason, here is the script.

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'