Posted: Tue May 13, 2008 12:38 pm Post subject: How to use MQ constants in message flow
Chevalier
Joined: 31 Mar 2006 Posts: 411 Location: New York
I have a compute node that propagate msg to different terminals based on the MQMD.MsgType. But it seems I can't use the MQMT_* constants in a case statement.
I also tried to cast the OutputRoot.MQMD.MsgType into integer, but it always goes to else directly. I don't want to put the numeric value in the case statement.
Am I missing anything here?
case cast(OutputRoot.MQMD.MsgType as integer)
when MQMT_REQUEST then
RETURN TRUE;
when MQMT_DATAGRAM then
propagate to terminal 'out1' message InputRoot;
return false;
...
else
return false;
end case; _________________ pcelari
-----------------------------------------
- a master of always being a newbie
Posted: Tue May 13, 2008 12:47 pm Post subject: solved
Chevalier
Joined: 31 Mar 2006 Posts: 411 Location: New York
it's a bug. I mistakenly put OutputRoot, although I set the mode to LocalEnvironment only. Now it works correctly. _________________ pcelari
-----------------------------------------
- a master of always being a newbie
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