Hi Team,
I would like to inform you that we are using IBM App Connect Enterprise Edition v11.0.0.6. We did a small POC with MQInput/FileInput=>ComputeNode=>MQOutput/FileOutput. Nodes which converts the message from CSV to XMLNSC. We have specified mandatory properties in code and written below code in compute node but when we test this flow, nothing (content) is going into destination queue or file and not even exception. When we see the messages in MQExplorer also, we could see there is no MQSTR assigned to the Message Format but when we deploy same in previous versions, the content is going as expected. Kindly check and let us know the way forward on this.
Flow:
ESQL Code:
CREATE COMPUTE MODULE CSVTOXMLFlow_Compute
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
CALL CopyMessageHeaders();
CALL CopyEntireMessage();
RETURN TRUE;
END;
CREATE PROCEDURE CopyMessageHeaders() BEGIN
DECLARE I INTEGER 1;
DECLARE J INTEGER;
SET J = CARDINALITY(InputRoot.*[]);
WHILE I < J DO
SET OutputRoot.*[I] = InputRoot.*[I];
SET I = I + 1;
END WHILE;
END;
CREATE PROCEDURE CopyEntireMessage() BEGIN
DECLARE inRef REFERENCE TO InputRoot.DFDL.CSV.record;
CREATE LASTCHILD OF OutputRoot NAME 'XMLNSC';
DECLARE outRef REFERENCE TO OutputRoot.XMLNSC;
WHILE LASTMOVE (inRef) DO
CREATE LASTCHILD OF OutputRoot.XMLNSC AS outRef NAME 'Details';
SET outRef.FName = inRef.field1;
SET outRef.LName = inRef.field2;
SET outRef.City = inRef.field3;Hi
MOVE inRef NEXTSIBLING;
END WHILE;
--SET outRef.MSG = 'Hello';
END;
END MODULE;
MQ Explorer Output Queue:
Thanks & Regards,
Padma
------------------------------
Padma Maggari
------------------------------