I’ve been using the Workflow Studio SDK for about a month and just wanted to share with everyone some things I’ve learned along the way. I figured a good approach to get the word out to our partners, customers, and Consulting teams about how to use the Workflow Studio SDK was to try a blogging series. Over the course of the next few weeks I’ll blog about some of the fundamentals of using the Workflow Studio SDK. This is part 1 of the series in answering some of the beginning questions.
What is the Workflow Studio SDK?
The Workflow Studio SDK is a series of C# templates for Visual Studio 2008 that allows you to create activities for Workflow Studio. There are two types of activities you can create using the templates:
- Powershell Activity - this is an activity based on a Powershell command. When you choose this activity type within Visual Studio, the Powershell Converter opens where you select the Powershell command you want to transform into an activity. The Powershell Converter then creates the activity code based on the Powershell command(s) that were selected. You can then further modify this code to customize as you see fit.
- Standard Activity - this is an activity used for standard actions not based on Powershell commands. Essentially, you will create a standard activity if you are not creating an activity based on a Powershell command. The code you get looks about 95% the same with a few differences.
What skills do I need to use the Workflow Studio SDK?
From a programming side I would say you need a background in using Visual Studio and C#. The templates are only available in C#, so if you are a VB or VB.NET programmer you’ll have to walk on the other side of the fence here.
In addition to the recommendations above, I would definitely recommend playing with the Workflow Studio product before you start using the SDK (that’s probably a given ). You’ll want to understand how activities tie to each other through binding, as you’ll be creating “bindable” properties in your code.
Using the SDK might sound pretty complex at the beginning, but the templates you are given have so many comments that they really guide you through the process as well.
Where can I find the Workflow Studio SDK?
The SDK can be found on the Citrix Developer Network site (http://community.citrix.com/cdn/wf/sdks).
Is there a Developer’s Guide for getting started with the SDK?
Yes, a great guide is available on the Citrix Developer Network site (http://community.citrix.com/cdn/wf/sdks). If you are new to using the SDK this guide is a must for getting started. You should come here first before venturing out on your own. This guide will walk you through creating two sample activities:
- “GetDate” Powershell activity - creates an activity based on the “Get-Date” powershell command. This activity returns the current date/time of the system.
- “AdvancedDelay” Standard activity - creates an activity that allows you to specify a time delay for your workflow. For example, in Workflow Studio if you want the runtime to pause a certain length of time before continuing with executing the rest of the workflow, you can add the AdvancedDelay activity to pause a certain amount of time.
Upcoming blogs in this series: