I have been asked to throw together a quick demo of Warewolf. To do this, I will show you how to very quickly build a web service using Warewolf. The service will validate that an email address has been passed in and return Success or Failure.
Before we begin there a four concepts that will help us build the web service:
First, each workflow in Warewolf is a web service end-point. This can be seen in a blue link just above the design surface.
Second, tools can be mashed-up in any way on the workflow design surface.
Third, variables are simply defined by typing them and using them e.g. [[variablename]]
Finally, the variable list defines if an item will be an Input, an Output or neither.
Let’s build an email address validation service on the Service Bus:
- Click New Workflow
- Drag the Decision tool onto the bottom of the Start node
- Check if [[Email]] variable Is Email and click Done
- Drag an Assign tool onto the True arm of the decision
- On the left of the Assign tool type [[Result]] and on the right type Success
- Drag an Assign tool onto the False arm of the decision
- On the left of the Assign tool type [[Result]] and on the right type Failure
- In the Variables window select Email as an Input and Result as an Output
- Press F5 to run and debug your service.
Watch this quick video to see it in action:
Leave A Comment?