The Problem what I m facing can be formulated in the following way :
We are dealing with two X12 transaction set 850 & 860.
Everytime when our getFromVan service get invoked , it picks a flatfile from VAN & submits to TN
In TN we have defined our custom TPA which have split option on Interchange Header. But still we are getting different documents for different transaction set while I think we should get documents of different interchange header, & giving the impression that our custom TPA is not getting used & still TN using default TPA which has split option as transaction.
Now in processing rule, we gave X12 Envelope as document type. so whenever an envelope documents comes to TN it triggers the processing rule & in turn different processing services for different Transaction type like 850/860.
But we are facing another problem that because envelope may contain 850 or 860, how can we distinguish between two transactions because TN does not gives any isolated field in bizdoc which could specify the transaction type. But along with bizdoc document , TN also gives some other pipeline variables like /editn_env/group/transaction/type & this is the variable we are using currently for resolving the Transaction type. But I m not sure that whether it is enough reliable variable to use.
And in any case we dont want to call our processing service multiple times for multiple ST documents, what we will have to do if we use X12 4010 850 as document type in processing rule.
Please let me know if u find any solution of this business case.
[/size][/font]Thanks & Regards,