› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › DUPLICATE A CHARGE TRANSACTION FOR ADDITIONAL BILLING
I think that is possible.
However, in my opinion, the Integration Engine is not the correct place to be creating charges.
There is virtually no acceptable audit potential and folks have been known to sue over unsubstantiable charges.
There might even be some violation of various billing rules, etc.
Jim Kosloskey
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.
The source application’s charge services module should accomodate this.
There are a lot of things the sending and receiving systems should do that they do not. That is why we have interface engines. Certainly the first preference is for the sending system to send the charges correctly but since they may not be able to do that…
I think as long as you can document what your engine is doing and have a way to show which charges were created by the engine then there is no reason not use the full capabilities of the engine to get the job done. It would be a simple matter to write a line to a file every time you add a charge within the engine. This file could then be used as the audit log on those charges.
Not as clean as having the sending system do it for you but, IMHO, it’s better than having someone keying a charge manually.
Scott
Based on your suggestion, I created an xlate consisting of a BULKCOPY, a SEND, an IF statement to catch the charge to duplicate (containing a COPY to move in the new charge code, and another SEND), and finally a SUPPRESS. The problem I’m having is that the new charge transaction messages remain in pending and are not transmitted unless I stop and start the thread. Is there something I’m missing? Thanks.
We’ve done the logic differently here:
BULKCOPY
…
…Table or tcl proc to return whether the message needs to be duped
…
IF @SecondMsg eq =True
SEND
COPY in new CDM
–End IF–
The xlate process would send the second message with no other SEND or SUPPRESS needed. But I don’t see why your messages would stall as pending…maybe someone else can tell us.
The MSH-10 content of an HL/7 message in and of itself will not cause messages to queue Pending in the Engine.
What may be happening is the receiving system is not acknowledging or the duplicate MSH-10 causes the receiving system to NAK the message and you are not handling that properly.
email me and I will email you a Tcl proc to manage the MSH-10 in an Xlate.
Jim Kosloskey
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.
The problem I’m having is that the new charge transaction messages remain in pending and are not transmitted unless I stop and start the thread.
When you say pending, what state are the messages in the recovery database?
-mh
I also agree with not creating additional charges via the engine. However, sometimes you just have to do what is necessary to get it right because the vendor cannot comply.
Since you are only spinning off 1 message and following the spin off, a new message with a new MSH-10 will come thru so you won’t have to worry about counters or duplicates.
To add my 2 cents, I agree with the rest of those who think the engine should not create charges.
Hope this helps,
-mh