Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
38e9eff
Create readme.md
maam1 Jun 25, 2019
2b506b8
Add files via upload
maam1 Jun 25, 2019
766814f
Update readme.md
maam1 Jun 25, 2019
bb0dc26
Update readme.md
maam1 Jun 25, 2019
9fac6bf
Update readme.md
maam1 Jun 25, 2019
a4293f1
Create readme.md
maam1 Jun 25, 2019
634eef0
Add files via upload
maam1 Jun 25, 2019
c60c128
Update readme.md
maam1 Jun 25, 2019
50ad099
Create readme.md
maam1 Jun 25, 2019
1c8b801
Update readme.md
maam1 Jun 26, 2019
ff87a9b
Delete SuccessTesting.PNG
maam1 Jun 26, 2019
4cdc127
Delete AddFreshDeskService.PNG
maam1 Jun 26, 2019
1c850b4
Delete AddGlobalErrorHandler.PNG
maam1 Jun 26, 2019
68b870d
Delete AddLogger.PNG
maam1 Jun 26, 2019
d132b68
Delete CompleteWorkFlow.PNG
maam1 Jun 26, 2019
02866c5
Delete CreateNewWorkflow.PNG
maam1 Jun 26, 2019
637772d
Rename CumulocityAlarmToFreshdesk.json to cumulocityalarm-freshdesk.json
maam1 Jun 26, 2019
b979a33
Delete CumulocityAlarmToFreshdesk.zip
maam1 Jun 26, 2019
672d624
Delete CumulocityConnection.PNG
maam1 Jun 26, 2019
2b1b8c4
Delete CumulocityTrigger.PNG
maam1 Jun 26, 2019
35fd7b5
Delete ErrorTesting.PNG
maam1 Jun 26, 2019
54396da
Delete FreshDeskConnection.PNG
maam1 Jun 26, 2019
b509299
Delete GlobalErrorHandlerMapping.PNG
maam1 Jun 26, 2019
b9d726a
Delete LoggerMapping.PNG
maam1 Jun 26, 2019
ef329ad
Delete Mapping.PNG
maam1 Jun 26, 2019
0f6375c
Delete SelectFreshDeskAction.PNG
maam1 Jun 26, 2019
9730cd6
Add files via upload
maam1 Jun 26, 2019
0942a2e
Delete addglobalrrrorhandler.PNG
maam1 Jun 26, 2019
ff82a32
Add files via upload
maam1 Jun 26, 2019
6b620c5
Delete addglobalerrrorhandler.PNG
maam1 Jun 26, 2019
fdfa38f
Add files via upload
maam1 Jun 26, 2019
946cae3
Update readme.md
maam1 Jun 26, 2019
99d5d3a
Delete completeworkFlow.PNG
maam1 Jun 26, 2019
88242a1
Add files via upload
maam1 Jun 26, 2019
1f30454
Delete completeworkFlow.PNG
maam1 Jun 26, 2019
bcacb7c
Add files via upload
maam1 Jun 26, 2019
4d1bf23
Add files via upload
maam1 Jun 26, 2019
d27c632
Delete createnewworkflow.PNG
maam1 Jun 26, 2019
49a5ffc
Update readme.md
maam1 Jun 26, 2019
06ca09e
Delete readme.md
maam1 Jun 26, 2019
25827f8
Update readme.md
maam1 Jun 26, 2019
3d0bcdc
Delete AddDropBox.PNG
maam1 Jun 26, 2019
9eacf9d
Delete AddSendEmail.PNG
maam1 Jun 26, 2019
e792159
Delete CreateWorkflow.PNG
maam1 Jun 26, 2019
194004f
Rename DropBoxToSendEmail.json to dropboxtosendemail.json
maam1 Jun 26, 2019
e18b05e
Delete DropBoxToSendEmail.zip
maam1 Jun 26, 2019
0d67532
Delete DropboxAction.PNG
maam1 Jun 26, 2019
5a12cc1
Delete DropboxConnection.PNG
maam1 Jun 26, 2019
727a0f8
Delete DropboxConnection_Success.PNG
maam1 Jun 26, 2019
5cc83cb
Delete SendEmailMapping.PNG
maam1 Jun 26, 2019
bbacb7a
Delete SourcefileMapping.PNG
maam1 Jun 26, 2019
af9ae2f
Delete Testing.PNG
maam1 Jun 26, 2019
bb6e6f3
Delete Testing_ui.PNG
maam1 Jun 26, 2019
c351343
Add files via upload
maam1 Jun 26, 2019
390ae85
Update readme.md
maam1 Jun 26, 2019
7c86ce1
Delete testing_ui.PNG
maam1 Jun 26, 2019
81883dd
Add files via upload
maam1 Jun 26, 2019
9c3ec94
Update readme.md
maam1 Jun 26, 2019
3be41a0
Create readme.md
maam1 Jun 26, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added cumulocitytofreshdesk/addfreshdeskservice.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cumulocitytofreshdesk/addglobalerrorhandler.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cumulocitytofreshdesk/addlogger.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cumulocitytofreshdesk/completeworkflow.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cumulocitytofreshdesk/createworkflow.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cumulocitytofreshdesk/cumulocityalarm-freshdesk.json

Large diffs are not rendered by default.

Binary file not shown.
Binary file added cumulocitytofreshdesk/cumulocityconnection.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cumulocitytofreshdesk/cumulocitytrigger.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cumulocitytofreshdesk/errortesting.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cumulocitytofreshdesk/freshdeskconnection.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cumulocitytofreshdesk/loggermapping.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cumulocitytofreshdesk/mapping.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions cumulocitytofreshdesk/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Cumulocity Alarm To FreshDesk Ticket with Global Error Handling

This example shows how easy it is, to create the freshdesk ticket for each device alarms created in cumulocity.

## Prerequisite
We should have the device added to cumulocity SaaS and an alarm should be created for device health monitoring
We should have a FreshDesk access to create the tickets


## Setup

1. Go ahead and get started creating a blank workflow. If you need a refresher on how to get to this point, this [guide](https://docs.webmethods.io/workflow-building-blocks/creating-first-workflow) can be a great introduction. Your starting point should resemble ![CreateWorkFlow](https://github.com/maam1/webmethodsio-examples/blob/master/cumulocitytofreshdesk/createworkflow.PNG)

2. Add the cumulocity trigger by editing the start button and selecting the cumulocity trigger from the search result.![CumulocityTrigger](https://github.com/maam1/webmethodsio-examples/blob/master/cumulocitytofreshdesk/cumulocitytrigger.PNG)

3. Enter the cumulocity connection details and also trigger details. Select Trigger as Alarm and Device ID.![CumulocityConnection](
https://github.com/maam1/webmethodsio-examples/blob/master/cumulocitytofreshdesk/cumulocityconnection.PNG)

4. Add the FreshDesk service in the canvas by searching under available services.![AddFreshDeskService](https://github.com/maam1/webmethodsio-examples/blob/master/cumulocitytofreshdesk/addfreshdeskservice.PNG)

5. Click on the small settings icon on the freshdesk service to add the action "create ticket". ![SelectFreshDeskAction](https://github.com/maam1/webmethodsio-examples/blob/master/cumulocitytofreshdesk/selectfreshdeskaction.PNG)

6. Add the fresh desk connection details to create the connection to freshdesk.![FreshDeskConnection](https://github.com/maam1/webmethodsio-examples/blob/master/cumulocitytofreshdesk/freshdeskconnection.PNG)

7. Now map the required data from cumulocity alarm to freshdesk ticket. Do not forget to map the required fields.![Mapping](https://github.com/maam1/webmethodsio-examples/blob/master/cumulocitytofreshdesk/mapping.PNG)

8. We have a cool feature which is logging where you can log the necessary unique data so that you can visualize the data in monitoring workflows. Search for logging and drag and drop the logging service to canvas.![addlogger](https://github.com/maam1/webmethodsio-examples/blob/master/cumulocitytofreshdesk/addlogger.PNG)

9. Map the required fields in the logging. In the below example we have mapped the complete cumulocity alarm information.![AddLogger](https://github.com/maam1/webmethodsio-examples/blob/master/cumulocitytofreshdesk/loggermapping.PNG)

10. This completes the workflow and connect to stop step. We can add the global error handler for the complete workflow. If any error happens in the workflow is catch the error by the global error handler.![AddGlobalErrorHandler](https://github.com/maam1/webmethodsio-examples/blob/master/cumulocitytofreshdesk/addglobalerrorhandler.PNG)

11. If any error happens we create one more ticket in the freshdesk so that necessary actions can be taken. Do the mapping for freahdesk ticket.![GlobalErrorHandlerMapping](https://github.com/maam1/webmethodsio-examples/blob/master/cumulocitytofreshdesk/globalerrorhandlermapping.PNG)

12. This is the complete workflow looks like. ![completeworkflow](https://github.com/maam1/webmethodsio-examples/blob/master/cumulocitytofreshdesk/completeworkflow.PNG)

13. We can test the success scenario by creating the cumulocity alarm for the device added. ![SuccessTesting](
https://github.com/maam1/webmethodsio-examples/blob/master/cumulocitytofreshdesk/successtesting.PNG)

14. We can test the negative scenario by not passing the required field while creating the freshdesh ticket. This scenario will invoke the global error handler.![SuccessTesting](https://github.com/maam1/webmethodsio-examples/blob/master/cumulocitytofreshdesk/errortesting.PNG)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cumulocitytofreshdesk/successtesting.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dropbox-sendemail/adddropbox.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dropbox-sendemail/addsendemail.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dropbox-sendemail/createworkflow.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dropbox-sendemail/dropboxaction.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dropbox-sendemail/dropboxconnection.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dropbox-sendemail/dropboxconnectionsuccess.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions dropbox-sendemail/dropboxtosendemail.json

Large diffs are not rendered by default.

Binary file added dropbox-sendemail/dropboxtosendemail.zip
Binary file not shown.
28 changes: 28 additions & 0 deletions dropbox-sendemail/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Download the file from dropbox and send an email to respective people by attaching the downloaded file.

This example shows how easy it is, to send an email to respective audience with the downloaded file from dropbox as an attachment.

## Prerequisite
Have the email address handy to send the attachment
Get the files uploaded to dropbox SaaS application

## Setup

1. Go ahead and get started creating a blank workflow. If you need a refresher on how to get to this point, this [guide](https://docs.webmethods.io/workflow-building-blocks/creating-first-workflow) can be a great introduction. Your starting point should resemble ![CreateWorkFlow](https://github.com/maam1/webmethodsio-examples/blob/master/dropbox-sendemail/createworkflow.PNG)

2. Add the dropbox service in the canvas by drag and drop feature. This automatically connects with the start of the step![AddDropBox](https://github.com/maam1/webmethodsio-examples/blob/master/dropbox-sendemail/adddropbox.PNG)

3. Click on the small settings icon on the Dropbox service to add the action "Download File". ![DropboxAction](https://github.com/maam1/webmethodsio-examples/blob/master/dropbox-sendemail/dropboxaction.PNG)

4. Add the Dropbox connection details to create the connection to dropbox. We can use the automatic default feature to connect where the webmethods.io picks up the connection details from browser cookies. You just need to sign into dropbox on the browser and webmethods.io does everything behind the scene![dropboxconnection](https://github.com/maam1/webmethodsio-examples/blob/master/dropbox-sendemail/dropboxconnection.PNG)
![DropboxConnection_Success](https://github.com/maam1/webmethodsio-examples/blob/master/dropbox-sendemail/dropboxconnectionsuccess.PNG)

5. Now map the source file to download from dropbox.![SourcefileMapping](https://github.com/maam1/webmethodsio-examples/blob/master/dropbox-sendemail/sourcefilemapping.PNG)

6. We have a cool feature which is sending email where you can send the content to respective audience. Search for "send an email" and drag and drop the "Send an Email" service to canvas.![AddSendEmail](https://github.com/maam1/webmethodsio-examples/blob/master/dropbox-sendemail/addsendemail.PNG)

7. Map the required fields in the Send an Email service. In the below example we have mapped the to address, subject and attached the file from the dropbox.![SendEmailMapping](https://github.com/maam1/webmethodsio-examples/blob/master/dropbox-sendemail/sendemailmapping.PNG)

8. This completes the workflow and connects to stop step. We can test this from the UI to review the results in action tab. ![testingui](https://github.com/maam1/webmethodsio-examples/blob/master/dropbox-sendemail/testingui.PNG)

9. Check the email to review the results of the workflow![Testing](https://github.com/maam1/webmethodsio-examples/blob/master/dropbox-sendemail/testing.PNG)
Binary file added dropbox-sendemail/sendemailmapping.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dropbox-sendemail/sourcefilemapping.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dropbox-sendemail/testing.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dropbox-sendemail/testingui.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions hybrid-connection/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@