Sun Java System Portal Server 7.1 Developer's Guide

Using your New Robot Application Functions

When you have compiled and arranged for the loading of your functions, you need to provide for their execution. All functions are called as follows:

Directive fn=function [name1=value1] ... [nameN=valueN]

These two parameters are mandatory. In addition, there may be an arbitrary number of function-specific parameters, each of which is a name-value pair.

You will need to specify your function in the directive for which it was written. For example, the following line uses a plug-in function called word count that can be used in the Data stage. This function counts the words in a resource and assigns the count to a destination specified by a parameter called dst.

Data fn=wordcount dst=word-count