Creating Custom XPath Functions
- Procedure
- Run TIBCO Business Studio - BPM Edition from the Start menu.
For example, select
- Select .
- In the New Project dialog under Plug-in Development, select Plug-in Project and click Next.
- Specify a name for the project that reflects the XPath functions (for example, My Custom Functions).
Accept all other defaults and click Next.
- On the Plug-in Content page, locate the Plug-in Options group, and select This plug-in will make contributions to the UI.
- Accept all other defaults, and click Next.
- In the Templates page, select Custom XPath Function Wizard and click Next.
- In the
Custom XPath Function Group dialog box, provide values:
Category: This is the name of the category that includes the custom XPath function.Prefix: The prefix for the functionsNamespace: The namespace for the functions.Help Text: The description of the functions.
- Click
Next to continue.
The XPath Function Group Creation Section dialog is displayed. Here you specify the function and function parameters.
- Click the
Add button located on the right side of the XPath Function table and provide values.
Name: The name of the function.Return Type: The return type of the function.Description: The description of the function.
- Click the
Add button located on the right side of the XPath Function Parameters table.
Name: The name of the parameter.Type: The data type of the parameter.Optional: Select the checkbox if the parameter is optional.
- Click Finish.
- TIBCO Business Studio - BPM Edition opens the Open Associated Perspective dialog, which asks if you want to open the Plug-in Development perspective.
Optionally, select the check box Remember my decision. Click Yes.
TIBCO Business Studio - BPM Edition opens the custom XPath function plug-in and the Plug-in Development perspective.
ResultAlong with the custom XPath plug-in, a SOA Project
< plug-in project name>.deploy.soa is created.
Your custom code is written in < plug-in project name>\src\<plug-in project name>\<category name>.java.