By default, all EPM documents are published via ESI to an ERP system.
My requirement is to publish to ERP/SAP only EPMDocuments which contain 2D Drawings. 3D drawings must not be published.
The differentiation can be made via the OOTB attribute doctype.
Customizing the ESIResponseMetaInfo.xml for separately for Drawings/Not Drawings is not possible.
I did not found any other OOTB way to configure a filter based on drawing types.
I think this requirement can be done only with customized code.
Anyone of you had a similar problem to solve? Can you give me some hint where to start customization?
Via an opened PTC case (https://www.ptc.com/appserver/cs/view/case.jsp?n=13841117) I found out the possibly the ESIEPMDocumentRenderer class must be customized.
If you can pass "doctype" in the ESI response, you should be able to filter in Tibco. We have a filter in place so that only certain document subtypes are added to the CBO and passed to SAP. Basically, you create a global variable that contains the list of allowable "DocType"s. Then, in CBO mapping, (Document, for-each and Document Reference Link, for-each), filter the response file based on a match between the global variable values and the "doctype" attribute.
Please take a look at the attached Tibco screenshot and feel free to followup with any questions.
Unfortunatelly we don't use TIBCO as a middle layer, but ActiveMQ and Bizztalk.
The customization was done by extending ESIBOMRenderer by adding new getEPMDocument and getDocument functions, which after calling their super, will call a custom function to filter out the unwanted Documents and their links from the collenctions.