Skip to content

Commit

Permalink
Initial commit of TIBCO Cloud Integration Samples
Browse files Browse the repository at this point in the history
  • Loading branch information
retgits committed Jun 7, 2016
0 parents commit dd8e83b
Show file tree
Hide file tree
Showing 186 changed files with 40,591 additions and 0 deletions.
27 changes: 27 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,27 @@
Copyright (c) 2016, TIBCO Software Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
--Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
--Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
--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 HOLDERS 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.

8 changes: 8 additions & 0 deletions TIBCO Business Studio-Cloud Edition/readme.md
@@ -0,0 +1,8 @@
## Samples for TIBCO Business Studio - Cloud Edition
Here you can find samples for TIBCO Business Studio - Cloud Edition
* tibco.tci.samples.dcrm
* tibco.tci.samples.marketo
* tibco.tci.samples.netsuite
* tibco.tci.samples.salesforce
* tibco.tci.samples.salesforcemarketo
* tibco.tci.samples.soapcurrencyconverter
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,27 @@
Copyright (c) 2016, TIBCO Software Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
--Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
--Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
--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 HOLDERS 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.

@@ -0,0 +1,74 @@
# TIBCO Cloud Integgration Sample for Microsoft DCRM
## Synopsis
This project is a sample of how to use the TIBCO ActiveMatrix BusinessWorks Plug-in for Microsoft DCRM within the context of TIBCO Cloud Integration to create an account.

## Process Diagram
The process diagram in TIBCO Business Studio - Cloud Edition contains three activities:
* CreateEntity: An activity from the TIBCO ActiveMatrix BusinessWorks Plug-in for Microsoft DCRM palette which creates entities within Microsoft Dynamics CRM
* Log: An activity that logs information to the console or to the TIBCO Cloud Integration logs
* getOut: An activity that returns information as a response to the request that was received

![Process Diagram](CreateAccount.png "The process diagram for this sample")

## Installation
Download or clone this repository onto your local machine and import the project into an existing TIBCO Business Studio - Cloud Edition workspace. Before running the application make sure to configure the `DynamicsCRMConnection.dynamicscrmResource` with the proper credentials for your Microsoft Dynamics CRM installation.

## Deployment
There are two options to run this application. You can either debug this application using TIBCO Business Studio - Cloud Edition or deploy this application to the TIBCO Cloud Integration runtime.

### Debug using TIBCO Business Studio - Cloud Edition
To debug this application in TIBCO Business Studio - Cloud Edition follow the below steps:
* Click **Run > Debug Configurations**.
* At the left hand tree of Debug Configuration wizard, expand **BusinessWorks Application** and select **BWApplication**.
* Click the **Applications** tab and then click the **Deselect All** button if you have multiple applications. Select the check box next to **tibco.tci.samples.dcrm.application**.
* Click **Debug**. This will run the sample in Debug mode.
* After the console displays the message **Started BW Application [tibco.tci.samples.dcrm.application:1.0]** open a browser and go to `http://localhost:7777/tibco.tci.samples.dcrm.application/`
* Open the **GET** operation and provide values for _AccountNum_, _AccountName_ and _Address_ and click **Try it out!**
* After the application is finished it will display a _Response Body_ (e.g. **9ef562da-8720-e611-8129-c4346badb734 created successfully**) and a _Response Code_ (e.g. **200**). The console in TIBCO Business Studio - Cloud Edition will display a line like **c.t.b.p.g.L.t.tci.samples.dcrm.Log - Account created in Microsoft DCRM with account ID: 9ef562da-8720-e611-8129-c4346badb734**

### Run using TIBCO Cloud Integration
To deploy the application to TIBCO Cloud Integration and test it from there follow the below steps:
* Right-click on the project **tibco.tci.samples.dcrm.application** and select the option **Push to Cloud...**
* Open a browser and go to `http://cloud.tibco.com` and click **sign in**
* As soon as the application is started (shown by the **green** light in front of the application name) click on **Endpoint > VIEW API**
* Open the **GET** operation and provide values for _AccountNum_, _AccountName_ and _Address_ and click **Try it out!**
* After the application is finished it will display a _Response Body_ (e.g. **9ef562da-8720-e611-8129-c4346badb734 created successfully**) and a _Response Code_ (e.g. **200**).
* The **log** tab in the **application details** section will display a line like **c.t.b.p.g.L.t.tci.samples.dcrm.Log - Account created in Microsoft DCRM with account ID: 9ef562da-8720-e611-8129-c4346badb734**

## Question on this sample?
Feel free to open a Github issue or ask a question on the [TIBCO Community](https://community.tibco.com)

## Contributors
[Leon Stigter](https://github.com/retgits)

## License
Copyright (c) 2016, TIBCO Software Inc.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

--Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

--Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

--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 HOLDERS 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.
@@ -0,0 +1,4 @@
{
"records": [],
"resources": []
}
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<config:ProjectConfig xmlns:config="http://www.tibco.com/XPD/projectConfig">
<projectDetails id="tibco.tci.samples.dcrm.application">
<globalDestinations/>
</projectDetails>
<config:specialFolders>
<config:folder id="_6uza0AE-EeaX9tAh5n_IgA" kind="com.tibco.bw.packageUnit.folder" location="META-INF"/>
</config:specialFolders>
</config:ProjectConfig>
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>tibco.tci.samples.dcrm.application</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.tibco.xpd.validation.validationBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.tibco.zion.dc.ValidationBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.tibco.zion.dc.ApplicationNature</nature>
<nature>com.tibco.xpd.resources.xpdNature</nature>
</natures>
</projectDescription>
@@ -0,0 +1,10 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: tibco.tci.samples.dcrm.application
Bundle-SymbolicName: tibco.tci.samples.dcrm.application
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: TIBCO Software Inc.
TIBCO-BW-Version: 1.0.0 V72 2016-04-06
TIBCO-BW-Edition: bwcloud
TIBCO-BW-Application: META-INF/TIBCO.xml
TIBCO-BW-ConfigProfile: META-INF/default.substvar
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<packaging:packageUnit xmlns:packaging="http://schemas.tibco.com/tra/model/core/PackagingModel" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<packaging:description></packaging:description>
<packaging:properties>
<packaging:property>
<packaging:name>//tibco.tci.samples.dcrm//BW.APPNODE.NAME</packaging:name>
<packaging:type>xsd:string</packaging:type>
<packaging:visibility>private</packaging:visibility>
<packaging:scalable>true</packaging:scalable>
<packaging:overrideValue>false</packaging:overrideValue>
</packaging:property>
<packaging:property>
<packaging:name>//tibco.tci.samples.dcrm//BW.DEPLOYMENTUNIT.NAME</packaging:name>
<packaging:type>xsd:string</packaging:type>
<packaging:visibility>private</packaging:visibility>
<packaging:scalable>true</packaging:scalable>
<packaging:overrideValue>false</packaging:overrideValue>
</packaging:property>
<packaging:property>
<packaging:name>//tibco.tci.samples.dcrm//BW.HOST.NAME</packaging:name>
<packaging:type>xsd:string</packaging:type>
<packaging:visibility>private</packaging:visibility>
<packaging:scalable>true</packaging:scalable>
<packaging:overrideValue>false</packaging:overrideValue>
</packaging:property>
<packaging:property>
<packaging:name>//tibco.tci.samples.dcrm//BW.DEPLOYMENTUNIT.VERSION</packaging:name>
<packaging:type>xsd:string</packaging:type>
<packaging:visibility>private</packaging:visibility>
<packaging:scalable>true</packaging:scalable>
<packaging:overrideValue>false</packaging:overrideValue>
</packaging:property>
<packaging:property>
<packaging:name>//tibco.tci.samples.dcrm//BW.MODULE.VERSION</packaging:name>
<packaging:type>xsd:string</packaging:type>
<packaging:visibility>private</packaging:visibility>
<packaging:scalable>true</packaging:scalable>
<packaging:overrideValue>false</packaging:overrideValue>
</packaging:property>
<packaging:property>
<packaging:name>//tibco.tci.samples.dcrm//BW.MODULE.NAME</packaging:name>
<packaging:type>xsd:string</packaging:type>
<packaging:visibility>private</packaging:visibility>
<packaging:scalable>true</packaging:scalable>
<packaging:overrideValue>false</packaging:overrideValue>
</packaging:property>
</packaging:properties>
<packaging:modules>
<packaging:module>
<packaging:symbolicName>tibco.tci.samples.dcrm</packaging:symbolicName>
<packaging:technologyType>osgi-bundle,bw-appmodule</packaging:technologyType>
<packaging:technologyVersion>1.0.0.qualifier</packaging:technologyVersion>
</packaging:module>
</packaging:modules>
</packaging:packageUnit>
@@ -0,0 +1,53 @@
<?xml version = "1.0" encoding = "UTF-8"?>
<repository xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns = "http://www.tibco.com/xmlns/repo/types/2002">
<globalVariables>
<globalVariable>
<name>//tibco.tci.samples.dcrm//BW.APPNODE.NAME</name>
<value></value>
<deploymentSettable>false</deploymentSettable>
<serviceSettable>false</serviceSettable>
<type>String</type>
<isOverride>false</isOverride>
</globalVariable>
<globalVariable>
<name>//tibco.tci.samples.dcrm//BW.DEPLOYMENTUNIT.NAME</name>
<value></value>
<deploymentSettable>false</deploymentSettable>
<serviceSettable>false</serviceSettable>
<type>String</type>
<isOverride>false</isOverride>
</globalVariable>
<globalVariable>
<name>//tibco.tci.samples.dcrm//BW.HOST.NAME</name>
<value>localhost</value>
<deploymentSettable>false</deploymentSettable>
<serviceSettable>false</serviceSettable>
<type>String</type>
<isOverride>false</isOverride>
</globalVariable>
<globalVariable>
<name>//tibco.tci.samples.dcrm//BW.DEPLOYMENTUNIT.VERSION</name>
<value></value>
<deploymentSettable>false</deploymentSettable>
<serviceSettable>false</serviceSettable>
<type>String</type>
<isOverride>false</isOverride>
</globalVariable>
<globalVariable>
<name>//tibco.tci.samples.dcrm//BW.MODULE.VERSION</name>
<value></value>
<deploymentSettable>false</deploymentSettable>
<serviceSettable>false</serviceSettable>
<type>String</type>
<isOverride>false</isOverride>
</globalVariable>
<globalVariable>
<name>//tibco.tci.samples.dcrm//BW.MODULE.NAME</name>
<value></value>
<deploymentSettable>false</deploymentSettable>
<serviceSettable>false</serviceSettable>
<type>String</type>
<isOverride>false</isOverride>
</globalVariable>
</globalVariables>
</repository>
@@ -0,0 +1,17 @@
{
"records": [{
"name": "Cloud",
"items": [],
"url": "https://integration.cloud.tibco.com:443"
}],
"resources": [
{
"location": "Service Descriptors/dcrm.CreateAccount-Resource.json",
"type": "generated"
},
{
"location": "Service Descriptors/tibco.tci.samples.dcrm.CreateAccount-Resource.json",
"type": "generated"
}
]
}
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<config:ProjectConfig xmlns:config="http://www.tibco.com/XPD/projectConfig">
<projectDetails id="com.example.tibcotcisamplesdcrm">
<globalDestinations/>
</projectDetails>
<config:assetTypes id="com.tibco.amx.zion.schema.asset"/>
<config:assetTypes id="com.tibco.bw.process.asset"/>
<config:assetTypes id="com.tibco.xpd.asset.wsdl"/>
<config:assetTypes id="com.tibco.amx.zion.resource.asset"/>
<config:assetTypes id="com.tibco.bw.core.design.policy.asset"/>
<config:specialFolders>
<config:folder id="_6JaOwAE-EeaX9tAh5n_IgA" kind="com.tibco.amx.zion.schema" location="Schemas"/>
<config:folder id="_6KIAcAE-EeaX9tAh5n_IgA" kind="com.tibco.bw.process.folder" location="Processes"/>
<config:folder id="_6KRKYAE-EeaX9tAh5n_IgA" kind="wsdl" location="Service Descriptors"/>
<config:folder id="_6Ka7YAE-EeaX9tAh5n_IgA" kind="com.tibco.amx.zion.resource" location="Resources"/>
<config:folder id="_6KlTcAE-EeaX9tAh5n_IgA" kind="com.tibco.amx.zion.policy" location="Policies"/>
<config:folder id="_6mKcMAE-EeaX9tAh5n_IgA" kind="com.tibco.bw.module.folder" location="META-INF"/>
</config:specialFolders>
</config:ProjectConfig>

0 comments on commit dd8e83b

Please sign in to comment.