Workato is an Enterprise-level automation platform service provider and offers an out-of-the-box way to quickly and easily connect and integrate with hundreds of business applications.
The Workato service provides customers the ability to build 'Recipes' that connect disparate systems together. These Recipes use ‘Connectors' to connect to various systems such as WoodWing Assets 10.
Connectors encapsulate the APIs of the target system and provide user interface elements that help a person, who may not be a developer, to create these connections.
This article describes how to use the Assets Connector for connecting Workato with the WoodWing Assets system.
Connector components
A Connector will have 2 parts:
- A Trigger which sets the Recipe in action.
- An Action which is an action that can be performed within the Assets 10 instance.
Each is explained in detail below.
Triggers
Every recipe must have a ‘Trigger’.
Example: A trigger could be waiting for a Webhook to be sent to it. A trigger could also be a polling operation that queries the source system every x minutes to see if there is any work to do.
It’s also important to note that Triggers can have ‘conditions’. For example, an event can be sent to a Recipe and the trigger can qualify the event by adding a condition such as ‘if the status equals 'New’, and then continue on with the recipe.
Within a Connector, the Trigger is responsible for the following:
- Logging into the Assets 10 system using a connection and creating a Webhook within Assets 10. The Webhook will then send data to the Recipe for processing.
- Deleting the Webhook from the Assets 10 instance when a recipe is stopped.
Triggers, Asset Types and Events
A Trigger event is what a Recipe receives that causes the recipe to start. Every recipe must have a Trigger. In the case of Assets 10 the Connector creates the Webhook that sends data to trigger.
A Trigger corresponds with an actual EVENT that takes place in Assets 10. For instance, if a user creates a new image in Assets 10 then the recipe will receive an 'Asset Created' Event from Assets 10 via the Webhook when the recipe is started.
When configuring a Trigger you need to choose one 'Asset Type' and then select one or more Events to serve as the trigger.
Asset Types are a type of filter for the trigger. Below is a list of the Asset Types:
- Asset - think of this as object like a image or other type of file
- Collection
- Folder
- Share Link
The following is a complete list of the Events that are supported within the connector:
- Asset Placeholder Created
- Asset Created
- Asset Created by Copy
- Asset Renamed
- Asset Metadata Changed
- Asset Metadata Extracted
- Asset Checked Out
- Asset Checkout Aborted
- Asset Checked In
- Asset Version Promoted
In the following figure, the 6 of the 12 available Events are seen. The blue checkmark indicates that, in this part of the recipe, the ‘Asset Created’ event and the 'Asset Created By Copy' are selected. The selected Events are listed at the top of dialog. This is done so that that when the disclosure arrow is turned up the selected Events are still visible.
Figure: Event Selection dialog in the Trigger setup.
Actions
Once the Trigger is set up, the next steps are to configure the recipe 'Actions' for the incoming Event.
For instance when an asset is created we will want to get tags from a service and save those tags as metadata for the image. To do that we first need to get the preview of the image from Assets. The process of retrieving the preview from Assets 10 will require an Action.
Actions within the Assets 10 Connector
The available Actions appear when a user creates an Action in the recipe and the selects the Assets 10 connector. In the figure below the user has a new Action selected and the Assets 10 Connector selected. A subset of the Actions are visible on the right side of the image.
Figure: Action Selection dialog within the Connector
The following list are the available Actions in the Assets 10 Connector:
- Add assets to Collection
- Copy asset
- Create asset
- Create asset new version
- Create collection
- Create folder
- Create share link
- Download asset file
- Move asset
- Move collection
- Move Folder
- Remove asset
- Remove asset from collection
- Remove collection
- Remove folder
- Retrieve asset
- Retrieve collection
- Retrieve folder
- Search assets, collections and folders
- Update asset
- Update collection metadata
More actions can be added, as needed, to the recipe to accomplish the required task.
1 As part of the purchase of WoodWing Connect, the customer is provided with an API License for WoodWing Assets 10. Additional licenses can be purchased.
2 Task usage is subject to fair use. Task overage will be evaluated for next year.
Comment
Do you have corrections or additional information about this article? Leave a comment! Do you have a question about what is described in this article? Please contact Support.
0 comments
Please sign in to leave a comment.