Webmethods Flow Tutorial
Webmethods Flow Tutorial
1 Prerequisites
2 Step Outline
3 Step 1: Create a Flow Service
4 Step 2: Add String Inputs to the Service
5 Step 3: Insert Steps into the Service
6 Step 4: Map the Service Inputs
7 Step 5: Run the Flow Service
8 Step 5: Maintaining the Pipeline
9 Step 6: Run the Service and Verify the Output
10 Conclusion
Duration: 30 minutes
Flow is a simple, point-and-click programming language, optimized for
coding services. In this tutorial you will create and execute a Flow service
that will perform some simple operations.
Prerequisites #
This tutorial builds on concepts, techniques, and objects that were covered
in the previous tutorial.
Step Outline #
You create and run a Flow service by:
The New menu displays all the types of objects you can create on the IS.
In the New Flow Service dialog, enter customWriteToLog in the Element
name field and select Finish:
Designer creates the new flow service and opens it up in the Flow editor.
Expand the services folder to see your newly created flow service:
By default, the Tree tab is selected, showing an empty Flow. The
Flow Palette may be expanded by clicking on the arrow on the right side of
the flow editor:
You can now insert steps into the service that will operate on the inputs.
Select the
Tree tab at the bottom of the Flow Editor view, and expand
the Palette on the right side of the view:
From the
Insert section of the Palette, select Invoke… to invoke another
service as a step within your flow:
Note: As with the creation of the input/output variables, you may add an
Invoke step to your flow service in several ways:
1) Click-and-click: click on Invoke in the Palette and then click again on the
white space of the Tree area of the Flow Editor
2) Click-and-drag: click to select Invoke in the Palette and then drag it onto
the white space of the Tree area of the Flow Editor
3) Toolbar insert button: instead of using the Palette on the right side of
the Flow Editor, you may use the Insert button
at the top of the window in the Designer toolbar (use the drop-down arrow
for the same options as the Palette, or click the button to create the same
type of step as previously built (default is the Invoke… selection dialog
box))
4) Right click: right click on the white space of the Tree area of the Flow
Editor, and choose Insert->Invoke… from the context menu
5) Drag from Package Navigator: as you will see later, you may also drag
services directly from the Package Navigator view
6) Copy/paste: steps may be cut/copied from other parts of a flow or copied
from the Package Navigator view and pasted into your flow
Insert the Invoke step into your flow. Because Invoke… is not a specific
service, Designer will display a dialog box to prompt you to select the
service that you would like to invoke.
The Open dialog displays the IS packages.
Note: You may change the order of steps within a service by dragging and
dropping or by using the Shift buttons on the Designer toolbar:
Pipeline In
<selected service object>
Pipeline Out
The Link tool maps string1 to inString1.
To map the pub.string:toUpper step:
string
Hello-
1
string
World
2
The Results view displays the value of all variables after all the steps in the
flow service executes:
Step 5: Maintaining the Pipeline #
Services have the concept of a pipeline. The pipeline contains all the
variables and their values that are present at a given point in the service.
In this step: You will edit the pipeline to discard data that is not needed at
the specified steps.
Important: For normal Invoke steps, you can drop variables only from
the Pipeline Out side of the Pipeline view.
To edit the pipeline for the pub.string:concat step:
Save the service. You can now run the Flow service and verify the output
by examining the server log.
http://localhost:5555 or http://<hostname or IP address>:5555
The Integration Server displays the Authentication Required dialog:
Password: manage