Creating step types

This topic applies to ArcEditor and ArcInfo only.

Step types are the building blocks of your workflows. They provide the basic information as to what happens when the step is executed and how it is represented. When a step type is added to a workflow, it becomes a step but still references all the properties of the original step type. Multiple occurrences of a step type can appear in a single workflow.

Step types have three components:

Execution types

The following step execution types are available:

Procedural

Manual step with no managed execution

Custom step object

Calls a custom class implementing IJTXCustomStep

Open File

Opens a file from the workflow

Executable

Launches an executable

Launch URL

Launches a URL

Ask Question

Asks the user a question with configurable answers

Step execution types
NoteNote:

Custom steps built using IJTXCustomExecute can still be run with the current version of Workflow Manager. However, you are encouraged to upgrade your step libraries to take advantage of the new options with IJTXCustomStep. Please see the developer kit for help upgrading step libraries.

Building step types

Defining basic step type properties

With the basic step properties, you define more descriptive information for the steps that make up your Workflow Manager system.

Steps:
  1. Open the Workflow Manager Administrator and connect to your Workflow Manager database.
  2. In the Administrator, navigate to the Step Types folder under the Job Components.

    The list will show all the currently configured step types. If no step types are configured, the list will be blank.

  3. Right-click the folder and click Add Step type or select an existing step and click Edit Item.

    The Step Type Properties dialog box appears.

  4. Enter the basic information about a step type: Name and Description.
  5. Choose the indicator for the step.

    This setting defines the shape of the step in the workflow.

  6. If the user needs to interact only with the logic of the step, check the Hide WMX While Running check box. This setting is most useful when the step will launch another application that the user will be interacting with, like ArcMap, for example.

    If it's fully automated, leave it unchecked.

Configuring step descriptions

Step descriptions allow you to enter more specific information about the step that will be shown to your users in the Workflow Manager client application.

Steps:
  1. From the Step Type Properties dialog box, click the Description tab.
  2. Choose whether you would like to show a description. If yes, choose how you want to store the HTML.
    • URL Link: Choose this option if all your Workflow Manager users can see the link you enter. This could be a link to a Web page or an .html document you've authored.
    • Embedded HTML: Choose this option to enter simple text or HTML formatted text that will be available to all users, no matter where they access the Workflow Manager system from.
    StepDescription
    Use step descriptions to provide more detailed information about the step to the user.

Configuring custom object step execution

The step Execution tab allows you to configure the behavior of the individual steps when executed in a workflow.

Steps:
  1. From the Step Type Properties dialog box, click the Execution tab.
  2. Select the Custom Step Object execution type.
  3. Click the ellipsis (...) button to the right of CLSID/ProgID to navigate to the step you wish to use.
    Step Execution
    Select what should happen when the user executes or reaches this step in the workflow.
  4. Click OK to close the Browse for Custom Steps dialog box.
  5. Click List Expected Arguments to see a list of required and optional arguments for the custom step selected.
  6. Enter any required arguments.
  7. Enter any optional arguments.
  8. Click Validate Arguments to ensure that those entered are valid.
  9. Choose the supported platform.
  10. Click OK to save changes to the step type and close the Step Type Properties dialog box.

    NoteNote:

    • Some custom Workflow Manager steps can accept dynamic arguments using tokens.
    • Arguments should be separated using spaces. In the case where the argument itself contains spaces, enclose the argument in double quotes (").
    • Not all the custom steps that come with Workflow Manager can be executed on the Web. The steps have been divided into two categories: DesktopSteps (which run on desktop only) and Steps (which can run on the desktop or on the Web).

Configuring open file execution

The step Execution tab allows you to configure the behavior of the individual steps when executed in a workflow. This option allows you to open a file through a Workflow Manager step.

Steps:
  1. From the Step Type Properties dialog box, click the Execution tab.
  2. Select the Open File option.
  3. Click the ellipsis (...) button to the right of the File Path text box.
  4. Browse to the file that you would like Workflow Manager to open during the execution of this step.
    NoteNote:

    This file will be stored in the database. If it is large, you may need to work with your DBA to increase the MAXBLOBSIZE setting.

  5. Click Open to associate the file with this step.
  6. Click the Supported Platform drop-down arrow and choose the supported platform for the step.

    The Open File execution type was designed to work on both the desktop and the server.

  7. Click OK to save the step type and close the dialog box.

Configuring executable execution

The step Execution tab allows you to configure the behavior of the individual steps when executed in a workflow. This option allows you to run an executable through a Workflow Manager step.

Steps:
  1. From the Step Type Properties dialog box, click the Execution tab.
  2. Choose the Executable option.
  3. Browse to the location of the executable you would like this step to execute.
  4. Enter any arguments for the executable.
    NoteNote:

    Keep in mind that tokens can be entered here.

  5. Click the Supported Platform drop-down arrow and choose the supported platform type.
  6. Click OK to save the step type and close the dialog box.
    NoteNote:

    Arguments should be separated using spaces. In the case where the argument itself contains spaces, enclose the argument in double quotes (").

Configuring launch URL execution

The step Execution tab allows you to configure the behavior of the individual steps when executed in a workflow. This option allows you to open a Web browser with a specified URL through a Workflow Manager step.

Steps:
  1. From the Step Type Properties dialog box, click the Execution tab.
  2. Choose the Launch URL option.
  3. Enter the path that you would like to have launched when Workflow Manager executes this step.
  4. Click the Supported Platform drop-down arrow and choose the supported platform.

    The Launch URL execution type was designed to work on both the desktop and the server.

  5. Click OK to save the step type and close the dialog box.

Configuring ask question execution

The step Execution tab allows you to configure the behavior of the individual steps when executed in a workflow. This option allows you to define steps that ask your users questions when executed in the Workflow Manager step.

Steps:
  1. From the Step Type Properties dialog box, click the Execution tab.
  2. Choose the Ask Question option.
  3. Click the ellipsis (...) button to the right of the Question text box.

    The Question Editor dialog box opens.

  4. Enter the question to be asked.
  5. Enter a title for the dialog box that will appear to the user with the step is run.
  6. Enter the possible responses in the text box on the left.
  7. Click Add to add them to the options or press ENTER as a shortcut and add another response right away.
  8. Click OK when you've configured your question and responses as desired.
  9. NoteNote:

    Take note of the return value in this list. If you are routing your workflows based on the response from the question, this value will be the return code from the step. Plug this return code into the path properties for automatic advancement of the workflows.

    Question Editor
    Enter the question you want to ask and possible responses in the Question Editor.
  10. Click the Supported Platform drop-down arrow and choose the supported platform for the step.

    The Ask Question execution type was designed to work on both the desktop and the server.

  11. Click OK to save the step type and close the dialog box.

Cloning Step Types

The step types in your workflow manager repository can be re-used. For example you may want to re-use the edit data step, you can make a copy by cloning this step type and all the properties defined.

Steps:
  1. Open the Workflow Manager Administrator and connect to your Workflow Manager database.
  2. In the Administrator, navigate to the Step Types folder under the Job Components.

    The list will show all the currently configured step types.

  3. Select a step, right-click and choose Clone Step Type.

    A copy of the step type is added to the list of existing step types.


Published 6/7/2010