you can try to retrieve the List of Publishable DocTypes from Broker by using Broker JavaAPI.
You will have to filter the list on your custom DocType Names as there quite a lot system defined publishable DocTypes too.
Loop of the list and check their dependent objects.
Please note the special naming format for the DocTypes on the Broker, which needs to be transformed into the standard IS format.
Can you explain the business case behind your request, please?
Sounds very uncommon.
Unfortunately, there isn’t a way out-of-the-box to do what you want. You either have to write some Java code to leverage the IS internal API or you have to write some code to traverse through the flow.xml files and compile this information.
Just out of curiosity, I wanted to see how easy it would be to do the latter. So here’s a sample PowerShell script I threw together. I apologize for the lack of comments but if your packages are available on a Windows machine, give it a try. I ran it using PowerShell v4, by the way.
This should give you back the service name, the document being published, and the publish step’s comment:
Thanks all for the responses. Yeah I did not find any functionality which would help in any of the Wm packages, so I was looking at going through the flow.xml files and had some good results using XQuery tools.
Percio, great answer, thanks a lot. I didn’t realise Powershell had such rich xml parsing. Will definitely make use of some of that.
Business case for us is assessing the options with Broker EOL approaching. We’re gauging the scale of the work required to migrate to using generic JMS messaging if we decided not to go for the Universal Messaging path.
But what about the following scenario:
Having a list with available publishable DocTypes you can create a list of services which are using these DocTypes.
On the other side create a list of services which are using publish, publishAndWait and reply.
When a service is listed in both lists, in most cases this service publishes one of the doctypes.
Then you will only have to check these services for the publish step which DocType is published here.
Some Pseudo code:
find dependends for pub.publish:publish (List1)
find dependends for pub.publish:publishAndWait (List1)
find dependends for pub.publish:reply (List1)
get List of Publishable DocTypes from Broker
find dependends for DocType (List2)
compare the 2 lists for services being present in both (List3)
check each member if List3 for the details of the pub.publish:*-invoke step