Commit caa5d68e authored by Strahil Vitkov's avatar Strahil Vitkov
Browse files

Import IBM app connect toolkit workspace

parent bf88178a
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>CF_DpMiscinfo</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.ibm.etools.mft.applib.applibbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.applib.applibresourcevalidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.connector.policy.ui.PolicyBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.applib.mbprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.msg.validation.dfdl.mlibdfdlbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.flow.adapters.adapterbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.flow.sca.scabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.msg.validation.dfdl.mbprojectresourcesbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.esql.lang.esqllangbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.map.builder.mslmappingbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.flow.msgflowxsltbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.flow.msgflowbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.decision.service.ui.decisionservicerulebuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.pattern.capture.PatternBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.json.builder.JSONBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.restapi.ui.restApiDefinitionsBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.policy.ui.policybuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.msg.validation.dfdl.dfdlqnamevalidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.bar.ext.barbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.unittest.ui.TestCaseBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.ibm.etools.msgbroker.tooling.applicationNature</nature>
<nature>com.ibm.etools.msgbroker.tooling.messageBrokerProjectNature</nature>
</natures>
</projectDescription>
server.bin=C:/Program Files/IBM/ACE/11.0.0.10/server/bin
workspaces.dir=C:/Projects/DEV_ConnectorsAPI
test.nodes.name=ITEST
test.svrs.name=SERVER_7800_7843
test.node.ip1=172.23.155.71
test.node.ip2=172.23.155.72
prod.nodes.name=IPROD
prod.svrs.name=SERVER_7800_7843
prod.node.ip1=172.23.155.141
prod.node.ip2=172.23.155.142
\ No newline at end of file
<project name="project" default="run">
<target name="run" description="Building ORN Archive Files">
<tstamp>
<format property="time.stamp" pattern="ddMMyyyy"/>
</tstamp>
<property environment="env" />
<property file="${basedir}/build.properties" />
<property name="bar.file.build.path" value="${basedir}\out" />
<property name="bar.name" value="C:\Projects\DEV_ConnectorsAPI\GeneratedBarFiles\CallFlows_DpMiscinfo_${time.stamp}.generated.bar" />
<property name="test.bar.name" value="C:\Projects\DEV_ConnectorsAPI\GeneratedBarFiles\CallFlows_DpMiscinfo_${time.stamp}.test.bar" />
<property name="prod.bar.name" value="C:\Projects\DEV_ConnectorsAPI\GeneratedBarFiles\CallFlows_DpMiscinfo_${time.stamp}.prod.bar" />
<antcall target="mqsicreatebar.build.project.bar" />
<antcall target="deploy.test.bar.node1" />
<antcall target="deploy.test.bar.node2" />
<!-- antcall target="deploy.prod.bar.node1" />
<antcall target="deploy.prod.bar.node2" / -->
</target>
<!-- Target to build the broker archive using mqsicreatebar -->
<target name="mqsicreatebar.build.project.bar">
<echo message="Build CallableFlow project BAR file ... " />
<exec executable="mqsicreatebar"
failifexecutionfails="true">
<arg value="-data" />
<arg value="${workspaces.dir}" />
<arg value="-b" />
<arg value="${bar.name}" />
<arg value="-a" />
<arg value="CallFlows_DpMiscinfo" />
<arg value="-trace" />
<!-- arg value="-deployAsSource" / -->
</exec>
<echo message="Completed building CallableFlow project BAR file: ${bar.name}." />
</target>
<target name="deploy.test.bar.node1">
<echo message="Deploy CallableFlow TEST BAR file to NODE1 ..." />
<exec executable="mqsideploy">
<arg value="-i" />
<arg value="${test.node.ip1}" />
<arg value="-p" />
<arg value="4414" />
<arg value="${test.nodes.name}" />
<arg value="-e" />
<arg value="${test.svrs.name}" />
<arg value="-a" />
<arg value="${bar.name}" />
<arg value="-w" />
<arg value="600" />
</exec>
</target>
<target name="deploy.test.bar.node2">
<echo message="Deploy CallableFlow TEST BAR file to NODE2 ..." />
<exec executable="mqsideploy">
<arg value="-i" />
<arg value="${test.node.ip2}" />
<arg value="-p" />
<arg value="4414" />
<arg value="${test.nodes.name}" />
<arg value="-e" />
<arg value="${test.svrs.name}" />
<arg value="-a" />
<arg value="${bar.name}" />
<arg value="-w" />
<arg value="600" />
</exec>
</target>
<target name="deploy.prod.bar.node1">
<echo message="Deploy CallableFlow PROD BAR file to NODE1 ..." />
<exec executable="mqsideploy">
<arg value="-i" />
<arg value="${prod.node.ip1}" />
<arg value="-p" />
<arg value="4414" />
<arg value="${prod.nodes.name}" />
<arg value="-e" />
<arg value="${prod.svrs.name}" />
<arg value="-a" />
<arg value="${prod.bar.name}" />
<arg value="-w" />
<arg value="600" />
</exec>
</target>
<target name="deploy.prod.bar.node2">
<echo message="Deploy CallableFlow PROD BAR file to NODE2 ..." />
<exec executable="mqsideploy">
<arg value="-i" />
<arg value="${prod.node.ip2}" />
<arg value="-p" />
<arg value="4414" />
<arg value="${prods.nodes.name}" />
<arg value="-e" />
<arg value="${prod.svrs.name}" />
<arg value="-a" />
<arg value="${prod.bar.name}" />
<arg value="-w" />
<arg value="600" />
</exec>
</target>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ComIbmCallableFlowInput.msgnode="ComIbmCallableFlowInput.msgnode" xmlns:ComIbmCallableFlowReply.msgnode="ComIbmCallableFlowReply.msgnode" xmlns:ComIbmCompute.msgnode="ComIbmCompute.msgnode" xmlns:ComIbmThrow.msgnode="ComIbmThrow.msgnode" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:eflow="http://www.ibm.com/wbi/2005/eflow" xmlns:utility="http://www.ibm.com/wbi/2005/eflow_utility" nsURI="DpMiscinfo_Pars.msgflow" nsPrefix="DpMiscinfo_Pars.msgflow">
<eClassifiers xmi:type="eflow:FCMComposite" name="FCMComposite_1">
<eSuperTypes href="http://www.ibm.com/wbi/2005/eflow#//FCMBlock"/>
<translation xmi:type="utility:TranslatableString" key="DpMiscinfo_Pars" bundleName="DpMiscinfo_Pars" pluginId="CF_DpMiscinfo"/>
<colorGraphic16 xmi:type="utility:GIFFileGraphic" resourceName="platform:/plugin/CF_DpMiscinfo/icons/full/obj16/DpMiscinfo_Pars.gif"/>
<colorGraphic32 xmi:type="utility:GIFFileGraphic" resourceName="platform:/plugin/CF_DpMiscinfo/icons/full/obj30/DpMiscinfo_Pars.gif"/>
<composition>
<nodes xmi:type="ComIbmCallableFlowInput.msgnode:FCMComposite_1" xmi:id="FCMComposite_1_1" location="66,93" callableInputEndpoint="DpMiscinfoPars">
<translation xmi:type="utility:ConstantString" string="CallableInput"/>
</nodes>
<nodes xmi:type="ComIbmCompute.msgnode:FCMComposite_1" xmi:id="FCMComposite_1_2" location="286,96" computeExpression="esql://routine/#miscinfoChecking_Compute.Main" computeMode="destinationAndMessage">
<translation xmi:type="utility:ConstantString" string="miscinfoCheck"/>
</nodes>
<nodes xmi:type="ComIbmCallableFlowReply.msgnode:FCMComposite_1" xmi:id="FCMComposite_1_3" location="641,92">
<translation xmi:type="utility:ConstantString" string="CallableReply"/>
</nodes>
<nodes xmi:type="ComIbmThrow.msgnode:FCMComposite_1" xmi:id="FCMComposite_1_4" location="652,15" messageText="Somthing wrong with message flow DpMiscinfo_Pars.">
<translation xmi:type="utility:ConstantString" string="Throw"/>
</nodes>
<connections xmi:type="eflow:FCMConnection" xmi:id="FCMConnection_1" targetNode="FCMComposite_1_2" sourceNode="FCMComposite_1_1" sourceTerminalName="OutTerminal.out" targetTerminalName="InTerminal.in"/>
<connections xmi:type="eflow:FCMConnection" xmi:id="FCMConnection_2" targetNode="FCMComposite_1_3" sourceNode="FCMComposite_1_2" sourceTerminalName="OutTerminal.out" targetTerminalName="InTerminal.in"/>
<connections xmi:type="eflow:FCMConnection" xmi:id="FCMConnection_3" targetNode="FCMComposite_1_4" sourceNode="FCMComposite_1_2" sourceTerminalName="OutTerminal.failure" targetTerminalName="InTerminal.in"/>
</composition>
<propertyOrganizer/>
<stickyBoard/>
</eClassifiers>
</ecore:EPackage>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns2:appDescriptor xmlns="http://com.ibm.etools.mft.descriptor.base" xmlns:ns2="http://com.ibm.etools.mft.descriptor.app"><references/></ns2:appDescriptor>
\ No newline at end of file
CREATE COMPUTE MODULE "miscinfoChecking_Compute"
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
DECLARE DpMiscinfo_PARS BOOLEAN 'TRUE';
DECLARE DpMiscinfo CHARACTER '';
CALL CopyEntireMessage();
CALL CopyMessageHeaders();
CALL CopyLocalEvironment();
/*
SET OutputLocalEnvironment.Variables.systemOID = SUBSTRING(SUBSTRING(InputRoot.HTTPInputHeader."Dp-Miscinfo" AFTER 'OID:') BEFORE '/');
SET OutputLocalEnvironment.Variables.CN = SUBSTRING(SUBSTRING(InputRoot.HTTPInputHeader."Dp-Miscinfo" AFTER 'CN=') BEFORE '|');
SET OutputLocalEnvironment.Variables.representedPersonID = SUBSTRING(SUBSTRING(InputRoot.HTTPInputHeader."Dp-Miscinfo" AFTER 'representedPersonID:') BEFORE '|');
SET OutputLocalEnvironment.Variables.correspondentOID = SUBSTRING(SUBSTRING(InputRoot.HTTPInputHeader."Dp-Miscinfo" AFTER 'correspondentOID:') BEFORE '|');
SET OutputLocalEnvironment.Variables.operatorID = SUBSTRING(InputRoot.HTTPInputHeader."Dp-Miscinfo" AFTER 'operatorID:');
*/
IF OutputLocalEnvironment.Variables.DpMiscinfo.headerValue IS NULL THEN
SET DpMiscinfo = InputRoot.HTTPInputHeader."Dp-Miscinfo";
ELSE
SET DpMiscinfo = OutputLocalEnvironment.Variables.DpMiscinfo.headerValue;
END IF;
SET OutputLocalEnvironment.Variables.DpMiscinfo.headerValue = DpMiscinfo;
SET OutputLocalEnvironment.Variables.DpMiscinfo.OID = SUBSTRING(SUBSTRING(DpMiscinfo AFTER 'OID:') BEFORE '/');
SET OutputLocalEnvironment.Variables.DpMiscinfo.CN = SUBSTRING(SUBSTRING(DpMiscinfo AFTER 'CN=') BEFORE '|');
SET OutputLocalEnvironment.Variables.DpMiscinfo.representedPersonID = SUBSTRING(SUBSTRING(DpMiscinfo AFTER 'representedPersonID:') BEFORE '|');
SET OutputLocalEnvironment.Variables.DpMiscinfo.correspondentOID = SUBSTRING(SUBSTRING(DpMiscinfo AFTER 'correspondentOID:') BEFORE '|');
SET OutputLocalEnvironment.Variables.DpMiscinfo.operatorID = SUBSTRING(DpMiscinfo AFTER 'operatorID:');
SET DpMiscinfo_PARS = DpMiscinfo_PARS AND (OutputLocalEnvironment.Variables.DpMiscinfo.OID IS NOT NULL);
SET DpMiscinfo_PARS = DpMiscinfo_PARS AND (OutputLocalEnvironment.Variables.DpMiscinfo.CN IS NOT NULL);
SET DpMiscinfo_PARS = DpMiscinfo_PARS AND (OutputLocalEnvironment.Variables.DpMiscinfo.representedPersonID IS NOT NULL);
SET DpMiscinfo_PARS = DpMiscinfo_PARS AND (OutputLocalEnvironment.Variables.DpMiscinfo.correspondentOID IS NOT NULL);
SET DpMiscinfo_PARS = DpMiscinfo_PARS AND (OutputLocalEnvironment.Variables.DpMiscinfo.operatorID IS NOT NULL);
/*
IF DpMiscinfo_PARS THEN
PROPAGATE TO TERMINAL 'out';
ELSE
SET OutputLocalEnvironment.Destination.HTTP.ReplyStatusCode = 401;
SET OutputRoot.JSON.Data.failureOrigin = 'OAUTH';
SET OutputRoot.JSON.Data.cause[1].code = '401';
SET OutputRoot.JSON.Data.cause[1].message = 'Authentication parameter does not exist.';
PROPAGATE TO TERMINAL 'fault';
END IF;
*/
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
SET OutputRoot = InputRoot;
END;
CREATE PROCEDURE CopyLocalEvironment() BEGIN
SET OutputLocalEnvironment = InputLocalEnvironment;
END;
END MODULE;
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>CF_eDelivery</name>
<comment></comment>
<projects>
<project>WSDL_eDelivery_v1</project>
</projects>
<buildSpec>
<buildCommand>
<name>com.ibm.etools.mft.applib.applibbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.applib.applibresourcevalidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.connector.policy.ui.PolicyBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.applib.mbprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.msg.validation.dfdl.mlibdfdlbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.flow.adapters.adapterbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.flow.sca.scabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.msg.validation.dfdl.mbprojectresourcesbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.esql.lang.esqllangbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.map.builder.mslmappingbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.flow.msgflowxsltbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.flow.msgflowbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.decision.service.ui.decisionservicerulebuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.pattern.capture.PatternBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.json.builder.JSONBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.restapi.ui.restApiDefinitionsBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.policy.ui.policybuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.msg.validation.dfdl.dfdlqnamevalidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.bar.ext.barbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.ibm.etools.mft.unittest.ui.TestCaseBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.ibm.etools.msgbroker.tooling.applicationNature</nature>
<nature>com.ibm.etools.msgbroker.tooling.messageBrokerProjectNature</nature>
</natures>
</projectDescription>
server.bin=C:/Program Files/IBM/ACE/11.0.0.10/server/bin
workspaces.dir=C:/Projects/DEV_ConnectorsAPI
test.nodes.name=ITEST
test.svrs.name=SERVER_7800_7843
test.node.ip1=172.23.155.71
test.node.ip2=172.23.155.72
prod.nodes.name=IPROD
prod.svrs.name=SERVER_7800_7843
prod.node.ip1=172.23.155.141
prod.node.ip2=172.23.155.142
\ No newline at end of file
<project name="project" default="run">
<target name="run" description="Building ORN Archive Files">
<tstamp>
<format property="time.stamp" pattern="yyyyMMdd"/>
</tstamp>
<property environment="env" />
<property file="${basedir}/build.properties" />
<property name="bar.file.build.path" value="${basedir}\out" />
<property name="bar.name" value="C:\Projects\DEV_ConnectorsAPI\GeneratedBarFiles\CF_eDelivery_${time.stamp}.generated.bar" />
<property name="test.bar.name" value="C:\Projects\DEV_ConnectorsAPI\GeneratedBarFiles\CF_eDelivery_${time.stamp}.test.bar" />
<property name="prod.bar.name" value="C:\Projects\DEV_ConnectorsAPI\GeneratedBarFiles\CF_eDelivery_${time.stamp}.prod.bar" />
<antcall target="mqsicreatebar.build.project.bar" />
<antcall target="deploy.test.bar.node1" />
<!-- antcall target="deploy.test.bar.node2" / -->
<!-- antcall target="deploy.prod.bar.node1" />
<antcall target="deploy.prod.bar.node2" / -->
</target>
<!-- Target to build the broker archive using mqsicreatebar -->
<target name="mqsicreatebar.build.project.bar">
<echo message="Build CallableFlow project BAR file ... " />
<exec executable="mqsicreatebar"
failifexecutionfails="true">
<arg value="-data" />
<arg value="${workspaces.dir}" />
<arg value="-b" />
<arg value="${bar.name}" />
<arg value="-a" />
<arg value="CF_eDelivery" />
<arg value="-trace" />
<!-- arg value="-deployAsSource" / -->
</exec>
<echo message="Completed building CallableFlow project BAR file: ${bar.name}." />
</target>
<target name="deploy.test.bar.node1">
<echo message="Deploy CallableFlow TEST BAR file to NODE1 ..." />
<exec executable="mqsideploy">
<arg value="-i" />
<arg value="${test.node.ip1}" />
<arg value="-p" />
<arg value="4414" />
<arg value="${test.nodes.name}" />
<arg value="-e" />
<arg value="${test.svrs.name}" />
<arg value="-a" />
<arg value="${bar.name}" />
<arg value="-w" />
<arg value="600" />
</exec>
</target>
<target name="deploy.test.bar.node2">
<echo message="Deploy CallableFlow TEST BAR file to NODE2 ..." />
<exec executable="mqsideploy">
<arg value="-i" />
<arg value="${test.node.ip2}" />
<arg value="-p" />
<arg value="4414" />
<arg value="${test.nodes.name}" />
<arg value="-e" />
<arg value="${test.svrs.name}" />
<arg value="-a" />
<arg value="${bar.name}" />
<arg value="-w" />
<arg value="600" />
</exec>
</target>
<target name="deploy.prod.bar.node1">
<echo message="Deploy CallableFlow PROD BAR file to NODE1 ..." />
<exec executable="mqsideploy">
<arg value="-i" />
<arg value="${prod.node.ip1}" />
<arg value="-p" />
<arg value="4414" />
<arg value="${prod.nodes.name}" />
<arg value="-e" />
<arg value="${prod.svrs.name}" />
<arg value="-a" />
<arg value="${prod.bar.name}" />
<arg value="-w" />
<arg value="600" />
</exec>
</target>
<target name="deploy.prod.bar.node2">
<echo message="Deploy CallableFlow PROD BAR file to NODE2 ..." />
<exec executable="mqsideploy">
<arg value="-i" />
<arg value="${prod.node.ip2}" />
<arg value="-p" />
<arg value="4414" />
<arg value="${prods.nodes.name}" />
<arg value="-e" />
<arg value="${prod.svrs.name}" />
<arg value="-a" />
<arg value="${prod.bar.name}" />
<arg value="-w" />
<arg value="600" />
</exec>
</target>
</project>
\ No newline at end of file
CREATE COMPUTE MODULE KeyNotFound_DBError
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
SET OutputLocalEnvironment.Destination.HTTP.ReplyStatusCode = 500;
SET OutputRoot.JSON.Data.failureOrigin = 'INTEGRATION';
SET OutputRoot.JSON.Data.cause[1].code = 500;
SET OutputRoot.JSON.Data.cause[1].message = 'System OID Not Found in Database';
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
SET OutputRoot = InputRoot;
END;
END MODULE;
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ns2:appDescriptor xmlns="http://com.ibm.etools.mft.descriptor.base" xmlns:ns2="http://com.ibm.etools.mft.descriptor.app"><references/></ns2:appDescriptor>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ComIbmCallableFlowInput.msgnode="ComIbmCallableFlowInput.msgnode" xmlns:ComIbmCallableFlowInvoke.msgnode="ComIbmCallableFlowInvoke.msgnode" xmlns:ComIbmCallableFlowReply.msgnode="ComIbmCallableFlowReply.msgnode" xmlns:ComIbmCompute.msgnode="ComIbmCompute.msgnode" xmlns:ComIbmDatabaseRetrieve.msgnode="ComIbmDatabaseRetrieve.msgnode" xmlns:ComIbmRoute.msgnode="ComIbmRoute.msgnode" xmlns:ComIbmThrow.msgnode="ComIbmThrow.msgnode"
xmlns:ComIbmTrace.msgnode="ComIbmTrace.msgnode" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" xmlns:eflow="http://www.ibm.com/wbi/2005/eflow" xmlns:utility="http://www.ibm.com/wbi/2005/eflow_utility" nsURI="eDeliveryConfig.msgflow" nsPrefix="eDeliveryConfig.msgflow">
<eClassifiers xmi:type="eflow:FCMComposite" name="FCMComposite_1" useDefaults="true" udpSupport="true">
<eSuperTypes href="http://www.ibm.com/wbi/2005/eflow#//FCMBlock"/>
<translation xmi:type="utility:TranslatableString" key="eDeliveryConfig" bundleName="eDeliveryConfig" pluginId="CF_eDelivery"/>
<colorGraphic16 xmi:type="utility:GIFFileGraphic" resourceName="platform:/plugin/CF_eDelivery/icons/full/obj16/eDeliveryConfig.gif"/>
<colorGraphic32 xmi:type="utility:GIFFileGraphic" resourceName="platform:/plugin/CF_eDelivery/icons/full/obj30/eDeliveryConfig.gif"/>
<composition>
<nodes xmi:type="ComIbmRoute.msgnode:FCMComposite_1" xmi:id="FCMComposite_1_2" location="532,96">
<outTerminals terminalNodeID="Match" dynamic="true" label="Match"/>
<translation xmi:type="utility:ConstantString" string="Route"/>
<filterTable filterPattern="boolean($Root/JSON/Data/failureOrigin)" routingOutputTerminal="Match"/>
</nodes>