Skip to content

Commit

Permalink
data json file and src files for the loopback tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
zoe-lanham committed Mar 30, 2017
1 parent 692865d commit 51a970d
Show file tree
Hide file tree
Showing 8 changed files with 522 additions and 0 deletions.
335 changes: 335 additions & 0 deletions doc/_data.json

Large diffs are not rendered by default.

108 changes: 108 additions & 0 deletions src/LoopBack/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>LoopBack</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.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>
12 changes: 12 additions & 0 deletions src/LoopBack/LoopBackToCloudant_inputMessage.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MessagePool xmlns="http://wwww.ibm.com/iib/test/1.0.0">
<InputMessage timestamp="1490110830985" nodeId="FCMComposite_1_1" name="new message 1" id="1490110830985-6">
<plainText>2e78e4ab51111471f188e1bc1af40b6d</plainText>
</InputMessage>
<InputMessage timestamp="1490190245160" nodeId="FCMComposite_1_1" name="new message 2" id="1490190245160-388">
<plainText>%7B%22companyID%22%3A%22100%22%2C%22company%22%3A%22Barclays+PLC%22%2C%22phone%22%3A%220800400100%22%2C%22price%22%3A+171%7D</plainText>
</InputMessage>
<InputMessage timestamp="1490190411079" nodeId="FCMComposite_1_1" name="new message 3" id="1490190411079-495">
<plainText>%7B%22_id%22%3A+%222e78e4ab51111471f188e1bc1af40b6d%22%7D</plainText>
</InputMessage>
</MessagePool>
1 change: 1 addition & 0 deletions src/LoopBack/application.descriptor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?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>
24 changes: 24 additions & 0 deletions src/LoopBack/create.msgflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ComIbmWSInput.msgnode="ComIbmWSInput.msgnode" xmlns:ComIbmWSReply.msgnode="ComIbmWSReply.msgnode" xmlns:com_ibm_connector_loopback_ComIbmRequest.msgnode="com/ibm/connector/loopback/ComIbmRequest.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="create.msgflow" nsPrefix="create.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="create" bundleName="create" pluginId="LoopBack"/>
<colorGraphic16 xmi:type="utility:GIFFileGraphic" resourceName="platform:/plugin/LoopBack/icons/full/obj16/create.gif"/>
<colorGraphic32 xmi:type="utility:GIFFileGraphic" resourceName="platform:/plugin/LoopBack/icons/full/obj30/create.gif"/>
<composition>
<nodes xmi:type="ComIbmWSInput.msgnode:FCMComposite_1" xmi:id="FCMComposite_1_1" location="122,184" URLSpecifier="/create" messageDomainProperty="JSON">
<translation xmi:type="utility:ConstantString" string="HTTP Input"/>
</nodes>
<nodes xmi:type="ComIbmWSReply.msgnode:FCMComposite_1" xmi:id="FCMComposite_1_2" location="634,199">
<translation xmi:type="utility:ConstantString" string="HTTP Reply"/>
</nodes>
<nodes xmi:type="com_ibm_connector_loopback_ComIbmRequest.msgnode:FCMComposite_1" xmi:id="FCMComposite_1_3" location="332,174" connectorName="iib-loopback-connector" dataSource="CLOUDANT" object="share_price" operation="create" securityIdentity="CLOUDANT_SEC_ID" timeoutMilliseconds="5000" dataLocation="$Body" outputDataLocation="$OutputRoot" copyToLocalEnv="true" messageDomainProperty="JSON">
<translation xmi:type="utility:ConstantString" string="LoopBackRequest"/>
</nodes>
<connections xmi:type="eflow:FCMConnection" xmi:id="FCMConnection_2" targetNode="FCMComposite_1_2" sourceNode="FCMComposite_1_3" sourceTerminalName="OutTerminal.out" targetTerminalName="InTerminal.in"/>
<connections xmi:type="eflow:FCMConnection" xmi:id="FCMConnection_3" targetNode="FCMComposite_1_3" sourceNode="FCMComposite_1_1" sourceTerminalName="OutTerminal.out" targetTerminalName="InTerminal.in"/>
</composition>
<propertyOrganizer/>
<stickyBoard/>
</eClassifiers>
</ecore:EPackage>
12 changes: 12 additions & 0 deletions src/LoopBack/create_inputMessage.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MessagePool xmlns="http://wwww.ibm.com/iib/test/1.0.0">
<InputMessage timestamp="1490267707638" nodeId="FCMComposite_1_1" name="new message 1" id="1490267707638-6">
<plainText>%7B%22companyId%22%3A%22100%22%2C%22company%22%3A%22derp%22%2C%22phone%22%3A%220294848273%22%2C%22price%22%3A182%7D</plainText>
</InputMessage>
<InputMessage timestamp="1490267986958" nodeId="FCMComposite_1_1" name="new message 2" id="1490267986958-123">
<plainText>%7B%22companyID%22%3A+%22100%22%2C%0D%0A++%22company%22%3A+%22Barclays+PLC%22%2C%0D%0A++%22phone%22%3A+%220800400100%22%2C%0D%0A++%22price%22%3A+171%7D</plainText>
</InputMessage>
<InputMessage timestamp="1490268034261" nodeId="FCMComposite_1_1" name="new message 3" id="1490268034261-161">
<plainText>%7B%22companyID%22%3A%22103%22%2C%22company%22%3A%22Barclays+PLC%22%2C%22phone%22%3A+%220800400100%22%2C%22price%22%3A171%7D</plainText>
</InputMessage>
</MessagePool>
24 changes: 24 additions & 0 deletions src/LoopBack/retrieve.msgflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ComIbmWSInput.msgnode="ComIbmWSInput.msgnode" xmlns:ComIbmWSReply.msgnode="ComIbmWSReply.msgnode" xmlns:com_ibm_connector_loopback_ComIbmRequest.msgnode="com/ibm/connector/loopback/ComIbmRequest.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="retrieve.msgflow" nsPrefix="retrieve.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="retrieve" bundleName="retrieve" pluginId="LoopBack"/>
<colorGraphic16 xmi:type="utility:GIFFileGraphic" resourceName="platform:/plugin/LoopBack/icons/full/obj16/retrieve.gif"/>
<colorGraphic32 xmi:type="utility:GIFFileGraphic" resourceName="platform:/plugin/LoopBack/icons/full/obj30/retrieve.gif"/>
<composition>
<nodes xmi:type="ComIbmWSInput.msgnode:FCMComposite_1" xmi:id="FCMComposite_1_1" location="196,168" URLSpecifier="/retrieve" messageDomainProperty="JSON">
<translation xmi:type="utility:ConstantString" string="HTTP Input"/>
</nodes>
<nodes xmi:type="ComIbmWSReply.msgnode:FCMComposite_1" xmi:id="FCMComposite_1_2" location="733,188">
<translation xmi:type="utility:ConstantString" string="HTTP Reply"/>
</nodes>
<nodes xmi:type="com_ibm_connector_loopback_ComIbmRequest.msgnode:FCMComposite_1" xmi:id="FCMComposite_1_3" location="471,180" connectorName="iib-loopback-connector" dataSource="CLOUDANT" object="share_price" operation="retrieve" securityIdentity="CLOUDANT_SEC_ID" timeoutMilliseconds="120000" dataLocation="$Body" outputDataLocation="$OutputRoot" copyToLocalEnv="true" messageDomainProperty="JSON">
<translation xmi:type="utility:ConstantString" string="LoopBackRequest"/>
</nodes>
<connections xmi:type="eflow:FCMConnection" xmi:id="FCMConnection_1" targetNode="FCMComposite_1_3" sourceNode="FCMComposite_1_1" sourceTerminalName="OutTerminal.out" targetTerminalName="InTerminal.in"/>
<connections xmi:type="eflow:FCMConnection" xmi:id="FCMConnection_2" targetNode="FCMComposite_1_2" sourceNode="FCMComposite_1_3" sourceTerminalName="OutTerminal.out" targetTerminalName="InTerminal.in"/>
</composition>
<propertyOrganizer/>
<stickyBoard/>
</eClassifiers>
</ecore:EPackage>
6 changes: 6 additions & 0 deletions src/LoopBack/retrieve_inputMessage.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<MessagePool xmlns="http://wwww.ibm.com/iib/test/1.0.0">
<InputMessage timestamp="1490190585552" nodeId="FCMComposite_1_1" name="new message 1" id="1490190585552-575">
<plainText></plainText>
</InputMessage>
</MessagePool>

0 comments on commit 51a970d

Please sign in to comment.