Products | Versions |
---|---|
TIBCO Cloud Integration - Connect ( Scribe ) | - |
Storing a variable (or state) of fields/values, multiple entities, and child records can be complex to design and even more difficult to maintain using out-of-the-box functions. In addition, you may want to store a JSON format of your data when using Connectors such as Files, HTTP, and Variables. Mapper can help you create a blueprint for your dataset, such as JSON, and provide the ability to get and set the entities and fields in that variable/state.
These simple Maps/flows attempt to demonstrate some concepts and how they can be achieved using the Mapper Connector. Review the Group Block labels in the flows that explain the purpose of the Blocks inside the Group.
To import and use the attached Sample Maps/flows, you must first install the Mapper Connector and configure the Mapper Connection. The Mapper Connection configuration includes the names of the entities used in the Maps/flows as well as a JSON sample for each entity. Configure the following three entities and copy/paste the associated JSON sample into the Mapper Connection dialog.
Entity: customer
Sample JSON for customer:
{ "active":true, "id":"string", "integratedflag":"string", "region":"string", "xrefid":"string", "company" : { "name":"string", "number":"string", "fax":"string", "phone":"string", "primaryaddrname":"string" }, "contact": { "name":"string", "title":"string", "email":"string" }, "metadata":{ "createdby":"string", "createdon":"string", "modifiedby":"string", "modifiedon":"string" }, "finances": { "creditamount":10000, "creditonhold":true, "paymentterms":"string", "pricelist":"string" } }
[ { "active": true, "id": null, "integratedflag": null, "region": "North", "xrefid": null, "company": { "name": "Aberdeen Inc.", "number": "ABERDEEN0001", "fax": "(617) 832-9863", "phone": "(617) 832-7300", "primaryaddrname": "Main" }, "contact": { "name": "Mr. Harold Michaelson", "title": "President", "email": null }, "metadata": { "createdby": "SYSTEM_USER", "createdon": "2016-04-01 00:00:00", "modifiedby": "SYSTEM_USER", "modifiedon": "2016-04-07 11:07:43" }, "finances": { "creditamount": 10000.0, "creditonhold": false, "paymentterms": "Net30", "pricelist": "Retail" } } ]
{ "json": [ { "active": true, "id": null, "integratedflag": null, "region": "North", "xrefid": null, "company": { "name": "Aberdeen Inc.", "number": "ABERDEEN0001", "fax": "(617) 832-9863", "phone": "(617) 832-7300", "primaryaddrname": "Main" }, "contact": { "name": "Mr. Harold Michaelson", "title": "President", "email": null }, "metadata": { "createdby": "SYSTEM_USER", "createdon": "2016-04-01 00:00:00", "modifiedby": "SYSTEM_USER", "modifiedon": "2016-04-07 11:07:43" }, "finances": { "creditamount": 10000.0, "creditonhold": false, "paymentterms": "Net30", "pricelist": "Retail" } } ] }
The Working with Arrays Map/flow demonstrates the following:
When configuring sample JSON in the Mapper Connection dialog, the square brackets [ ] indicate that the sample is an array. The top level of this array corresponds to the object labeled Anonymous in the Include tab of the Serialize and Fetch Blocks. To reveal and access the objects within the array, you must select the Anonymous object on the Include tab. The Include tab displays the format of the JSON as TIBCO Scribe® Online / TIBCO Cloud™ Integration - Connect interprets it.
The Working with HTTP Map/flow is a more complete scenario and demonstrates the following:
Scribe Online Classic Users
For more information on prerequisites, importing the Maps, and using the Files Connector, see Connector Extensions and Mapper Connector.
TIBCO Cloud Integration - Connect Users
For more information on prerequisites, importing the flows, and using the Files Connector, see Connector Extensions and Mapper Connector.
Copyright (c) 2020, TIBCO Software Inc. All rights reserved.
No Support. You acknowledge that TIBCO will not provide any maintenance or support for this software. You have no right to receive any upgrades, patches, enhancements, bug fixes, new versions or new releases of the software.
Internal Use Only License Grant. TIBCO hereby grants you a limited, non‐transferable, non‐exclusive license to use the software solely for your internal business purposes. The name of TIBCO Software Inc. may not be used to endorse or promote products derived from this software without specific prior written permission of TIBCO Software Inc.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT OWNERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.