Sidebar

How to get job id for an executing QIE channel.

0 votes
279 views
asked Apr 29, 2019 by (330 points)
edited Apr 29, 2019 by

I want to add some custom logs for tracking purposes so that i need to track job id for every execution of a channel.

(For example  if channel is executing and let's say channel execution id or job id is 'QIE-123' and for each file transfer i am getting job instance id using qie.evaluateTemplate("{MSGID}") but here my question is how do i create or get channel execution id or job id in follwing channel.

in above channel i am hitting one rest end point and saving json response in file system.

script is as folloing

so with that script  i also want to save job id or channel execution id.how to do that?

or else if i put my own custom job id then that job id will generate for every execution of script while i want i unique job id unless channel will not stop and restart again.

 

1 Answer

0 votes
You can create an ID and store it in channelCache if you run your channel "First In First Out'. QIE does not create a new processing job for each message and there is no way to get the id of the processing thread that processed that particular message and if you did it would not be unique.

I am not sure what you need for your logging but I would suggest an ID that is in the content of message you are receiving.
answered Apr 29, 2019 by brandon-w-8204 (33,270 points)
...