Posted: Mon May 23, 2011 2:53 am Post subject: Storing Flow Name to the XML
Master
Joined: 04 Oct 2010 Posts: 220 Location: Somewhere in the World....
Hi All,
Here I am doing the ErrorHandling.. when ever the exception occurs I want to store the Error Description and the Flow name into a Queue.
For that I had mentioned the code like below.
Code:
CREATE COMPUTE MODULE ErrorHandlingFlow_Compute
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
DECLARE treeRef REFERENCE TO InputExceptionList.*[1];
DECLARE errorList REFERENCE TO InputExceptionList.*[1];
DECLARE FlowName CHARACTER;
SET FlowName = errorList.Name;
DECLARE errorInfo CHARACTER '';
DECLARE errorDesc CHARacter '';
DECLARE errorType CHARACTER;
DECLARE nIndex INTEGER 1;
DECLARE nInsert INTEGER 0;
WHILE treeRef.*[<].Number IS NOT NULL DO
MOVE treeRef LASTCHILD;
END WHILE;
WHILE errorList.Number IS NOT NULL DO
SET errorType = FIELDNAME(errorList);
IF errorList.Text IS NOT NULL THEN
SET errorDesc = errorList.Text;
END IF;
SET nInsert = CARDINALITY(errorList.Insert[]);
IF nInsert > 0 THEN
WHILE nIndex <= nInsert DO
IF errorList.Insert[nIndex].Text <> '' THEN
SET errorDesc = errorList.Insert[nIndex].Text;
END IF;
SET nIndex = nIndex + 1;
END WHILE;
END IF;
set nIndex = 1;
set errorDesc = errorDesc;
MOVE errorList LASTCHILD;
END WHILE;
SET OutputRoot.XMLNSC.Message.ErrorDesc = errorDesc;
SET OutputRoot.XMLNSC.Message.FlowName = RTRIM(FlowName);
RETURN TRUE;
END;
But while receving, I am getting the flow name like as below.
IF example the flow name is "ErrorHandling.msgflow".. I am getting like "ErrorHandling#FCMComposite_1_5"...
but I want only the flow name..
Is there any wrong from my side..
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