• View Communities
    • Citrix Developer Network
      The place for unfiltered straight talk on Citrix products. Blogs, code downloads, best practices, APIs, and more can all be found here.
    • Citrix Ready Community Verified
      Does it work with Citrix? Application compatibility questions are a thing of the past with the new Citrix Community Verified site.
    • Blogs
      Learn the latest from the Citrix employees who are building application delivery infrastructure technologies.
    • Blogosphere
      The Citrix Blogosphere is a window into the thousands of conversations taking place about Citrix and Application Delivery.
  •  Sign In
Workflow Studio Developer Network

Tips, Tricks, and Best Practices

This article is open for editing by the community and will serve as a placeholder for all the tips and tricks that don't need to have a full article dedicated to them.

Automatic Login

You can configure Workflow studio to login to a specific server/database with command-line arguments. Create a shortcut to wfs.exe that contains the server and database parameters as follows:

"C:\Program Files\Citrix\Workflow Studio\wfs.exe" server sql1 database wfdb

The parameters are not case sensitive and if they fail to connect the login screen will be displayed.

Renaming a workflow

If you need to rename a workflow you can download the Stand-alone Workflow Designer from the Workflow Studio SDK page. This utility provides access to a version of the Workflow Designer that works with workflows on the file system instead of the SQL database. There is a File...Save As option that will allow you to rename a workflow. Be careful using this utility - if you save a workflow with an invalid name (names are used in the workflow code) then you will render the workflow unusable.

Removing manually added activities from the Designer

If you have added activity libraries from within the Designer using the Choose Activities dialog and now want to remove them, there is a PowerShell interface to do so:

Add-PSSnapin Citrix.WorkflowStudio.Installer
Remove-ActivityLibraryFromTree -StrongName 'CitrixAccessGateway, Version=1.0.0.0, Culture=neutral, PublicKeyToken=abaa165176dd2ef2'

If the activity library is not in the GAC, then you can remove it by the file name:

Add-PSSnapin Citrix.WorkflowStudio.Installer
Remove-ActivityLibraryFromTree -ActivityLibrary 'C:\Program Files\Citrix\WorkflowStudio\CitrixAccessGateway.dll'

The entries can also be removed/modified manually by editing the configuration files. Make sure to make a backup before editing these files as incorrect configuration entries can cause Workflow Studio to not start. There are two configuration files - one for the machine and one for the user and the settings are merged to determine the settings. These files are located in the following locations:

  • User - %USERPROFILE%\Local Settings\Application Data\Citrix\Workflow Studio\WorkflowStudio\2.0.0.0\user.config
  • Machine - %ALLUSERSPROFILE%\Application Data\Citrix\Workflow Studio\WorkflowStudio\2.0.0.0\wfs.config

If you added the library from the Designer Choose Activities dialog you will want to look in the user.config file while activities added using the PowerShell cmdlet with the AllUsers flag will appear in the Machine location.

Strong Name

This isn't really a Workflow Studio specific tip, but these are useful PowerShell scripts to get strong names for use with the Workflow Studio automation cmdlets.

Get the strong name for a specific assembly by filename
[System.Reflection.AssemblyName]::GetAssemblyName("C:\Program Files\Citrix\Workflow Studio\WFS.exe").FullName

Get the strong name for all assemblies in the GAC
[appdomain]::currentdomain.getassemblies() | sort -property fullname | format-table fullname

Tags

workflow-studio workflow-studio Delete
tips tips Delete
tricks tricks Delete
best practices best practices Delete
articles articles Delete
Enter tags to add to this page:
Please wait 
Looking for a tag? Just start typing.
Related Links