Posted: Tue Jul 07, 2015 12:04 pm Post subject: Timeout Control and Timeout Notification Node - Problem
Novice
Joined: 25 Jun 2015 Posts: 14
I am not sure if I am understanding it right or confusing myself . Please help me out.
I have a requirement in which I have to validate the incoming message using validate node w.r.t a particular message set and immediately after validation I have to update the DB as validated and only after 2 secs delay I have to send the incoming message further for processing. So basically the requirement is to delay for 2 secs and propagate the message after the database update. I researched and found the concept of Timeout Control and Timeout Notification Node to use.
I am sending the message to the Timeoutcontrol Node by overwriting the local environment properties as mentioned below .
----------------overwriting the local environment property ------------------
DECLARE jump INTERVAL;
SET jump = INTERVAL '3' SECOND;
DECLARE start TIME;
SET start = CURRENT_TIME + jump;
SET OutputLocalEnvironment.TimeoutRequest.Action = 'SET';
SET OutputLocalEnvironment.TimeoutRequest.Identifier = 'TimeOutCntrl';
SET OutputLocalEnvironment.TimeoutRequest.StartDate = 'TODAY';
SET OutputLocalEnvironment.TimeoutRequest.StartTime = start;
-------------------------------------------------------------------------
After 3 sec delay the I can see in the debug mode the Timeout Notification Node is invoked but the message is propagated to the failiure terminal with the below error . Am I doing something wrong ?
SET start = CURRENT_TIME + jump;
...
SET OutputLocalEnvironment.TimeoutRequest.StartDate = 'TODAY';
SET OutputLocalEnvironment.TimeoutRequest.StartTime = start;
could set a start time in the past... for instance.. 23:59:59 + 5 seconds = 00:00:04 (TODAY 00:00:04 < TODAY 23:59:59).
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum