PowerWF News, Tutorials, and more...

Get the latest tips and tricks directly from the PowerWF development team. Find out about new releases and upcoming features.


Seamless Automation

From the Desktop to the Data Center

The PowerWF family of products are easy enough for desktop and departmental automation, yet powerful and scalable enough for the Data Center. PowerWF compliments Opalis and other RBA solutions, lets you leverage your workforce and preserves your investment as your automation needs grow.


Special - 20% Discount


In conjunction with our recently announced Silver Award from Windows IT Magazine we would like to offer our customers an opportunity to save 20% off any Devfarm product purchase through the end of the year. This includes all PowerWF products as well as Devfarm's new PowerVI product!

PowerVI

vSphere Automation fueled by PowerShell


Designed for the VMware Administrator, PowerVI eases the automation of vSphere infrastructures. PowerVI includes over 100 PowerShell automation scripts that simplify everyday VMware administration tasks and PowerVI makes it easy to author new scripts.
November 2, 2009

Tutorial: Portable Workflows – Console Applications

This tutorial is the first in a series of tutorials on portable workflows; executing workflows outside of PowerWF Studio.


Regardless of the complexity of the workflow that is created, the workflow needs to be portable so it can be used outside PowerWF. PowerWF Studio allows workflows to be deployed a number of different ways. This tutorial will take the HelloWorld workflow and show how it can be deployed and run from as a console application.

Topics Discussed

  • Deploying a workflow to run from a console
  • Setting Help Text for input parameters

Procedure

  1. Open the HelloWorld workflow from the previous tutorial.
  2. When the HelloWorld workflow was created, Help Text was not added. Help Text instructs a user of the purpose of an input parameter. Click on the Parameters button and enter the Help Text, “Enter the text to be displayed in the message box.” Click OK.
  3. On the “Deploy” tab, click the “Console” button on the ribbon bar.
  4. PowerWF Studio will show the currently selected Workflow, as well as prompt for an executable name and output directory. Note the output directory, and then click OK to accept the defaults.

    Note: The workflow can be executed immediately, but in this case that is not necessary.
  5. The workflow can now be launched as a command line application by opening a command prompt and navigating to the output directory. The workflow application will be in a subdirectory named “HelloWorld”. Enter “HelloWorld -?” to see how to use the application.
  6. To launch the application, type: HelloWorld –outputText=“a man a plan a canal panama”

Summary

This tutorial showed how to create a console application from an existing workflow. Help Text for Input Parameters was also briefly discussed. Subsequent tutorials will discuss other forms of portable workflows.



blog comments powered by Disqus