how to filter translation by from in test997

25 views
Skip to first unread message

Ken

unread,
May 24, 2012, 3:21:36 PM5/24/12
to Bots Open Source EDI Translator
I'm working my way through the test997 example. I've hit a point that
I'm beginning to doubt my understanding of the plug-in.

I was wondering if someone would be willing to give a quick
explanation of the process in the plugin.
I've studied the following in the file with fixed pitch font.

test997 1: pickup 850*1 ask confirm 850*2 gen & send
850*2
send confirm 850*1 gen & send
997*1
test997 2: receive 997*1 confirm 850*1 gen xml*1
receive 850*2 ask confirm 850*3 gen 850*3
send confirm 850*2 gen & send
997*2
test997 3: receive 997*2 confirm 850*2 gen & send xml
(to trash)
send 850*3 (to
trash)
send xml (to
trash)
Perhaps a bit of explanation to the syntax of the *1 *2 & *3 would set
me straight. For instance, is part 1 only doing gen & send 850*2 in
order the demonstrate the ask confirm function of bots?
I fear I'm not understanding the order of operations as the code
executes. Are all in-channels read then all out-channels written?
When are files marked to be removed actually deleted. I'm also
unclear as to why 2 997s are created - one in each direction. Perhaps
this is the confusion henk-jan once commented on because of all parts
reading and writing to the file system i the example.

It seems like in production part 2 would actually use an out-channel
to a VAN.

But where I have a problem is that I think I must do a separate
translation filtered by from-partner. Our ERP system does not use the
partner ID as the customer number. So I set out to use a translation
that hard codes our customers acct number based on the from-partner in
edi. But it seems that I want part 1 of test997 to output the 850 via
x122x12 then part 3 actually would do the translation to my flat file
format. Once I include a filter part 1 will start doing that
translation instead of x122x12.

I have a working config for my one current trading partner picking up
850s from the VAN. I'm trying to add the 997.

Sorry for so many questions. This project has been very educational.
I'm sure all my answers are in the code but I'm not well versed in
python and was hoping not to have to study the language to use bots.

Ken


henk-jan ebbers

unread,
May 24, 2012, 4:45:26 PM5/24/12
to bots...@googlegroups.com
hi ken,

can we start by taking a look at the easiest part?
the sending of 997?
I will try to walk you thru the setting up of this.

(if you are 'standby')

henk-jan

On 05/24/2012 09:21 PM, Ken wrote:
> I'm working my way through the test997 example. I've hit a point that
> I'm beginning to doubt my understanding of the plug-in.
>
> I was wondering if someone would be willing to give a quick
> explanation of the process in the plugin.
> I've studied the following in the file with fixed pitch font.
>
> test997 1: pickup 850*1 ask confirm 850*2 gen& send
> 850*2
> send confirm 850*1 gen& send
> 997*1
> test997 2: receive 997*1 confirm 850*1 gen xml*1
> receive 850*2 ask confirm 850*3 gen 850*3
> send confirm 850*2 gen& send
> 997*2
> test997 3: receive 997*2 confirm 850*2 gen& send xml
> (to trash)
> send 850*3 (to
> trash)
> send xml (to
> trash)
> Perhaps a bit of explanation to the syntax of the *1 *2& *3 would set
> me straight. For instance, is part 1 only doing gen& send 850*2 in
Reply all
Reply to author
Forward
0 new messages