Setting Input/Output (string/numerical values)
String and numerical inputs can be directly introduced by right click on the input section of the XML Input splitter and selecting constant value:
And then introducing a value:
Inputs as constant values will be identified as a constant-value service box (in this case named input1_value and input2_value)
Using a constant value service, it's simple way to add an input that doesn't require user prompt, another way, is by connecting a workflow input port. Workflow input ports are a user-oriented prompt UI that will query for data input when the process is run. Inputs can be a simple string, XML or URL.
To add an input port: Menu Insert > Workflow input and then setting a proper identifier name. Worflow inputs are identifier by a red triangle
The input port is added to the workflow without any connection information. By pressing down the left mouse button over the input port a connection arrow will appear and the user should connect the input port to the XMLspliter input. The arrow will turn green if the connection is possible:
By releasing the mouse button the connection between input port and service will be set.
XML Output splitter will split the server response *BUT* it will need to pass the values to another service (chaining) or to an workflow output port where the user can check the value. Workflow outputs are identified with an inverted green triangle. Menu insert > Workflow output port will add a port to the workflow that will be connected to the XMLSplitter Output.
Adding all the input/output ports the workflow will look like this:
The workflow is now completed and the user can run it, File Menu > Run workflow will kick-start the workflow.
A new window will appear quering the user to indicate the location or value of the input ports.
Each input port will have its own tab where the user can add its value, file with content (XML or string data) or URL with input (URL pointing to a string, XML etc). for the dummy process it's enough to click on new value and some number, and then click on "Run workflow"
The workflow will run in a different window called (Results). This window will contain the workflow graphic and results indicating the input values and the results.
By selecting the output2_OutputPort tab, it's possible to see its result value of 99.0.
Clicking the wokflow graphic it's possible to see the XML that invoked the service or the response. In the example below the ExecuteProcess_dummyprocess was clicked and the XML invoking the service is shown as Datainputs
Clicking the ProcessOutputs tab, its possible to see the service's response, that will be sent to the XMLOutput splitter
Any string, float and base64 values are easily processed by the XMLOutput splitters, and can be used as input to another service.
--Wikiadmin 17:11, 10 January 2011 (UTC)