Written by

Collabera Technologies Limited
Question Fahima Ansari · Apr 1, 2024

stdout logging

In The Business Process and the Business Operation, I am using the following code to get the value of TimeCreated and TimeProcessed 

BP:

%Ensemble("Process").%PrimaryRequestHeader.TimeCreated

%Ensemble("Process").%PrimaryRequestHeader.TimeProcessed

BO:

..%RequestHeader.TimeCreated

..%RequestHeader.TimeProcessed

But I am trying to use ..%RequestHeader.TimeCreated in Business Service it is not storing any value.

How to get the value of TimeCreated and TimeProcessed in Business Service?

Product version: IRIS 2023.3

Comments

Enrico Parisi · Apr 1, 2024

Where in a Business Service you need this?

..%RequestHeader is the header of a received request, a BS does not receive a "production request", it SEND a request to other business host (BP or BO).

0
Fahima Ansari  Apr 1, 2024 to Enrico Parisi

I need this in the OnProcessInput Method.

0
Enrico Parisi  Apr 1, 2024 to Fahima Ansari

Well...in OnProcessInput method timeProcessed is current date/time!

No message or session has been created yet your (your code will do that).

0
Fahima Ansari  Apr 2, 2024 to Enrico Parisi

Got it @Enrico Parisi 
So is it a correct way to use ..%RequestHeader.TimeCreated in BO...I mean will it give the exact time?

0
Enrico Parisi  Apr 2, 2024 to Fahima Ansari

Yes, ..%RequestHeader.TimeCreated in BO contains the  exact time (up to the millisecond) when the BO's request message was created.

0