Creating step types
このトピックは、ArcEditor および ArcInfo にのみ適用されます。
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:
- Profile—Contains basic information about the step type
- Description—An optional setting that allows you to configure additional information about what the step will do or what the user should do to complete the step
- Execution—Defines the step behavior
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 |
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.
- Open the Workflow Manager Administrator and connect to your Workflow Manager database.
- 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.
-
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.
- Enter the basic information about a step type: Name and Description.
-
Choose the indicator for the step.
This setting defines the shape of the step in the workflow.
-
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.
- From the Step Type Properties dialog box, click the Description tab.
-
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.
Configuring custom object step execution
The step Execution tab allows you to configure the behavior of the individual steps when executed in a workflow.
- From the Step Type Properties dialog box, click the Execution tab.
- Select the Custom Step Object execution type.
-
Click the ellipsis (...) button to the right of CLSID/ProgID to navigate to the step you wish to use.
- Click OK to close the Browse for Custom Steps dialog box.
- Click List Expected Arguments to see a list of required and optional arguments for the custom step selected.
- Enter any required arguments.
- Enter any optional arguments.
- Click Validate Arguments to ensure that those entered are valid.
- Choose the supported platform.
-
Click OK to save changes to the step type and close the Step Type Properties dialog box.
メモ:
- 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.
- From the Step Type Properties dialog box, click the Execution tab.
- Select the Open File option.
- Click the ellipsis (...) button to the right of the File Path text box.
-
Browse to the file that you would like Workflow Manager to open during the execution of this step.
メモ:
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.
- Click Open to associate the file with this step.
-
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.
- 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.
- From the Step Type Properties dialog box, click the Execution tab.
- Choose the Executable option.
- Browse to the location of the executable you would like this step to execute.
-
Enter any arguments for the executable.
メモ:
Keep in mind that tokens can be entered here.
- Click the Supported Platform drop-down arrow and choose the supported platform type.
-
Click OK to save the step type and close the dialog box.
メモ:
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.
- From the Step Type Properties dialog box, click the Execution tab.
- Choose the Launch URL option.
- Enter the path that you would like to have launched when Workflow Manager executes this step.
-
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.
- 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.
- From the Step Type Properties dialog box, click the Execution tab.
- Choose the Ask Question option.
-
Click the ellipsis (...) button to the right of the Question text box.
The Question Editor dialog box opens.
- Enter the question to be asked.
- Enter a title for the dialog box that will appear to the user with the step is run.
- Enter the possible responses in the text box on the left.
- Click Add to add them to the options or press ENTER as a shortcut and add another response right away.
- Click OK when you've configured your question and responses as desired.
-
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.
- Click OK to save the step type and close the dialog box.
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.
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.
- Open the Workflow Manager Administrator and connect to your Workflow Manager database.
- In the Administrator, navigate to the Step Types folder under the Job Components.
The list will show all the currently configured step types.
- 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.