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?
Comments
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).
I need this in the OnProcessInput Method.
Well...in OnProcessInput method timeProcessed is current date/time!
No message or session has been created yet your (your code will do that).
Got it @Enrico Parisi
So is it a correct way to use ..%RequestHeader.TimeCreated in BO...I mean will it give the exact time?
Yes, ..%RequestHeader.TimeCreated in BO contains the exact time (up to the millisecond) when the BO's request message was created.