- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 08-22-2018 08:39 AM
I was working with some Orchestration Pack workflow activities and came across a scenario where the activity worked as intended, but I couldn’t figure out how to further use output data from the activity. Enter the Orchestration Databus, which “enables workflow designers to track the flow of data through an Orchestration workflow and provides access to output data that can be consumed by other custom activities”. I wanted to expand further on the article.
For this example, I’m working with the Resolve DNS Name activity. The activity is pretty simple, just supply a FQDN to determine if the name resolves in DNS.
The activity will then return “resolved” or “unresolved”. Again, I couldn’t figure out how to get access to the result output from the activity since there is no place to run a Sensor Script.
Using the Databus, I could get output data from the Resolve DNS Name activity and drop it into a Run Script activity. Here’s how:
- Within the Run Script activity, click on the “Toggle Script Tree” icon. Expand “Activities” and then the activity you want to use.
- Click on the output variable you want to use, for example “Result”. This will give you a code snippet for like get(16).result. The value within the parenthesis is the unique index value of the activity. You can find the activity indexes under the Data tab within your workflow.
- Sample code and result using the Databus:
- 2,099 Views
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Thanks for the article - that helped with my first Orchestration project!!!
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Rick, Thanks for the article. Do you have any idea how to get that index value dynamically?
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
That's a great question and not something I thought of doing. I think you could do the lookup since the Databus value is stored on the activity in the "wf_activity" table.
We've changed my example workflow since writing this post and my Databus ID is now "32". Here's a screen grab of the record.
You might be able to do something in the run script where you query for the definition you want and the workflow version = your current workflow and published = true, then you can get the Databus Lookup ID.
Again, that's just a thought, but I may try this in the future.