Hello,
We have a processing chain formed from 2 applications (an example is given in the snippets below).
Basically, an application creates a file and passes it to another application that performs some operations on this file. The first application waits for the second to finish.
What we would like to know if is possible to create transactions for each processing of each file by the two systems and how?
For example, we would like to be able to create a transaction that starts from the event:
"2014-08-27T09:44:33 created file with ID1"
and ends with :
"2014-08-27T09:44:47 ID1 status - completed"
but contains also the events from the second application that are related to ID1 (i.e. the events containing OD1).
Note that the two IDs chaines are interleaved so trying to use startswith and endswith did not helped us too much.
Also, we cannot use harcoded values for the file names (i.e. the IDs) as these vary. In our particular case we should have 2 transactions (one for ID1 and containing also the events for OD1 and the second for ID2 and containing also the events for OD2).
The sample logs for the two applications are:
App1
2014-08-27T09:44:33 created file with ID1
2014-08-27T09:44:34 file ID1 handed off to App2
2014-08-27T09:44:35 polling App2 for ID1
2014-08-27T09:44:36 created file with ID2
2014-08-27T09:44:37 polling App2 for ID1
2014-08-27T09:44:38 ID1 status - waiting
2014-08-27T09:44:38 file ID2 handed off to App2
2014-08-27T09:44:39 polling App2 for ID2
2014-08-27T09:44:40 ID2 status - waiting
2014-08-27T09:44:41 polling App2 for ID1
2014-08-27T09:44:42 polling App2 for ID2
2014-08-27T09:44:43 ID2 status - waiting
2014-08-27T09:44:44 ID1 status – waiting
2014-08-27T09:44:45 polling App2 for ID1
2014-08-27T09:44:46 polling App2 for ID2
2014-08-27T09:44:47 ID1 status - completed
2014-08-27T09:44:48 ID2 status – waiting
2014-08-27T09:44:49 polling App2 for ID2
2014-08-27T09:44:50 ID2 status – waiting
2014-08-27T09:44:51 polling App2 for ID2
2014-08-27T09:44:52 ID2 status – completed
App2:
2014-08-27T09:44:33 checking input queue – nothing there
2014-08-27T09:44:35 checking input queue – 1 file found ID1
2014-08-27T09:44:35 checking input queue – nothing there
2014-08-27T09:44:36 mapping input file ID1 to order OD1
2014-08-27T09:44:37 checking input queue – nothing there
2014-08-27T09:44:38 processing stage 1 OD1
2014-08-27T09:44:38 checking input queue – 1 file found ID2
2014-08-27T09:44:38 mapping input file ID2 to order OD2
2014-08-27T09:44:39 checking input queue – nothing there
2014-08-27T09:44:39 processing stage 1 OD1
2014-08-27T09:44:39 processing stage 2 OD1
2014-08-27T09:44:39 processing stage 1 OD2
2014-08-27T09:44:40 checking input queue – nothing there
2014-08-27T09:44:41 processing stage 3 OD1
2014-08-27T09:44:42 processing stage 2 OD2
2014-08-27T09:44:43 checking input queue – nothing there
2014-08-27T09:44:44 processing stage 3 OD2
2014-08-27T09:44:45 processing stage 4 OD2
2014-08-27T09:44:46 checking input queue – nothing there
2014-08-27T09:44:47 completed OD1 – status OK
2014-08-27T09:44:52 completed OD2 – status OK
2014-08-27T09:44:55 checking input queue – nothing there
Thank you very much.
... View more