I think it might be easier building a flow service for this as there are some helpful services in the WmART-Package for this (see Build-In-Services-Guide for details).
put.art:listRegisteredAdapters (to get the name of the JDBC-Adapter for the next step)
put.art.service:listAdapterServices (to get the existing services for a specific Adapter)
With the List of Services you can get the node.ndf from the File-System (using pub.file:* services from WmPublic) for decoding the IRTNODE-element and check if the service references the table you are looking for.
Remember that the Package name is not part of the service name so you might have to add it to the path additionally.
Transform the dots and colons in the service name to slashes for the path of the node.ndf.
IntegrationServer/[<instance-name for wM 9.6+ >/]packages//ns//node.ndf.
Note that relative pathes are relative to IntegrationServer/-directory.
This service will return list of adapter services and table name it refers in a given package.
service Input & Output structure:
Input:
Package Name: // enter valid package name --service will validate the package name against installed packages
list in the IS
Output:
StatusMessage : //null if input package is valid else return error message
DocumentList:
packgeName : // input Package Name
AdapterName : //Adapter Service name
TableName : //table name to which the adapter service refer(display only for
select/insert/delete/update and null
for the custom and dynamic)
QueryType : //select/insert/delete/udpate/custom/dynamic/procedure
I tried my level best ,If anyone could find a better solution than this please post it.
RMG is asking you to explore the services in WmART package.
I looked at your code its nice (but I did not test it yet) and if you have time and patience also you can refer 6-5_ADK_Users_Guide I hope it might help you.
RMG is asking you to explore the services in WmART package.
I looked at your code its nice (but I did not test it yet) and if you have time and patience also you can refer 6-5_ADK_Users_Guide I hope it might help you.