use the output of one route and run the same route with different mapping

36 views
Skip to first unread message

shik...@gmail.com

unread,
Dec 6, 2021, 8:23:00 AM12/6/21
to Bots Open Source EDI Translator
Hello, 

the process is supposed to be: 
i write the xml_1 to xml_2 and send it out with http_1
then i should get the response of the http above and write another xml_1 and send it out with the same http_1

I have read the docu about the chained translations, i think this does not belong to the same issue. The point here is: i need to send the second http request immediately as long as i get a response from the first request. Because there are some info could not be edited for the first time and they can only be updated after it's created. 

Do you have an Idea how to do this? 

Regards,
Ke

Henk-Jan Ebbers

unread,
Dec 6, 2021, 5:39:54 PM12/6/21
to bots...@googlegroups.com
try again to explain it. 
(i do not understand)

kind regards
Henk-Jan Ebbers

--
You received this message because you are subscribed to the Google Groups "Bots Open Source EDI Translator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/botsmail/f7584991-f7e8-499e-bb4d-972096a14ae6n%40googlegroups.com.

Ke SHI

unread,
Dec 6, 2021, 7:32:04 PM12/6/21
to bots...@googlegroups.com
I want to use the output or infomation of outcommunication for the input of the next route, which includes this info. The next Route should be done immediately after the first route was done. Can this explanation help you to understand?

regards,
Ke



-------- Ursprüngliche Nachricht --------
Von: Henk-Jan Ebbers <hjeb...@gmail.com>
Datum: Mo., 6. Dez. 2021, 21:27
An: bots...@googlegroups.com
Betreff: Re: [Bots Open Source EDI Translator] use the output of one route and
run the same route with different mapping
You received this message because you are subscribed to a topic in the Google Groups "Bots Open Source EDI Translator" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/botsmail/qgFtGyUvh74/unsubscribe.
To unsubscribe from this group and all its topics, send an email to botsmail+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/botsmail/CAEY1zk8YWv1nVmm2ggW8mQ7kY6SLJ0Nm-Mx9WPAT2C2Ccsgqiw%40mail.gmail.com.

Henk-Jan Ebbers

unread,
Dec 7, 2021, 3:25:47 AM12/7/21
to bots...@googlegroups.com
routes are run in alphabetic sequence.
so route AAAA runs firt; write that output to filesystem.
that AAAB runs after that, and pick up that output on filesystem.


kind regards,
Henk-Jan Ebbers




Ke SHI

unread,
Dec 7, 2021, 3:48:25 AM12/7/21
to bots...@googlegroups.com
I will need the dir monitoring. If a file is in, then the two routs should run...In this situation, maybe I should also watch the first of the output of the route 1 so that the route 2 can barely automatically run, right?

regards,
Ke




-------- Ursprüngliche Nachricht --------
Von: Henk-Jan Ebbers <hjeb...@gmail.com>
Datum: Di., 7. Dez. 2021, 09:25

Henk-Jan Ebbers

unread,
Dec 7, 2021, 4:11:39 AM12/7/21
to bots...@googlegroups.com

Hans

unread,
Dec 9, 2021, 9:27:12 AM12/9/21
to Bots Open Source EDI Translator
You could also queue the 2nd route from the mapping of the first route if something was processed.
os.system("/usr/local/bin/bots-job2queue.py -p200 bots-engine.py route2")

Op dinsdag 7 december 2021 om 10:11:39 UTC+1 schreef hjebbers:
To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Bots Open Source EDI Translator" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/botsmail/qgFtGyUvh74/unsubscribe.
To unsubscribe from this group and all its topics, send an email to botsmail+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Bots Open Source EDI Translator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Bots Open Source EDI Translator" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/botsmail/qgFtGyUvh74/unsubscribe.
To unsubscribe from this group and all its topics, send an email to botsmail+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Bots Open Source EDI Translator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+unsubscribe@googlegroups.com.

Ke SHI

unread,
Dec 9, 2021, 11:11:18 AM12/9/21
to bots...@googlegroups.com
this is also a good idea. But i have achieved this with dir monitoring. Because i need the file to be processed, when it comes. thanks again! 


To unsubscribe from this group and all its topics, send an email to botsmail+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/botsmail/0a8fa6eb-3aa8-4b9c-9971-7f4e02cb83e6n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages