You can add as many functions as you want to a graph function.
You can also reuse graph functions. Define the graph functions and then use the graph functions like any other function in the cleanse libraries. For example, you can add a graph function inside another graph function.
Start the Cleanse Functions tool.
Acquire a write lock.
Click the graph function, and then click the
Details
tab.
The graphical representation of the function is called the workspace. You might need to resize the window to see both the input and output in the workspace.
By default, graph functions have one input and one output that are of type String. The gray circles represent the inputs and outputs. Your function might require more inputs or outputs and different data types.
Right-click the workspace and select
Add Function
.
The Cleanse Functions tool displays the
Choose Function to Add
dialog box.
Expand the folder containing the function you want to add, select the function, and then click
OK
.
The available functions depend on your cleanse engine configuration.
The Cleanse Functions tool displays the function in the workspace. To move a function, drag it to the new location.
Right-click the function and select
Expanded Mode
.
The expanded mode shows the labels for all the inputs and outputs. The color of the circle indicates the data type of the input or output. The data types must match.
Mouse-over the input connector, which is the little circle on the right side of the input box. The circle turns red when ready for use.
Click the node and draw a line to one of the function input nodes.
Draw a line from one of the function output nodes to the output box node.
Click
Save
.
To learn about testing your the graph function, see
Testing Functions.