0% found this document useful (0 votes)
17 views7 pages

Creating Custom XPath Functions

This document provides steps to create custom XPath functions. It describes using a wizard to create a function group project and implement functions in Java.

Uploaded by

narasakuru79
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views7 pages

Creating Custom XPath Functions

This document provides steps to create custom XPath functions. It describes using a wizard to create a function group project and implement functions in Java.

Uploaded by

narasakuru79
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

3/8/2017 Creating Custom XPath Functions

Creating Custom XPath Functions


This topic provides the detailed procedure of creating a custom XPath function group. You can use the Custom XPath Function wizard to create your custom XPath
function group. It uses the com.tibco.xml.cxf.customXPathFunction extension.

Procedure

1. Launch TIBCO Business Studio and select File > New > Project.
2. In the New Project window, select Plug-in Project and click Next.

https://docs.tibco.com/pub/activematrix_businessworks/6.3.1/doc/html/GUID­33FE3341­BB9B­44DD­A831­FC9ED96E99C1.html?_ga=1.172702179.111191094.1488165525 1/7
3/8/2017 Creating Custom XPath Functions

3. Specify a name for the project that reflects the XPath functions, for example, MyCustomXPathFunctions. Retain all other default selections and click Next.

4. On the Plug-in Content page, locate the Options group and ensure This plug-in will make contributions to the UI is selected.

https://docs.tibco.com/pub/activematrix_businessworks/6.3.1/doc/html/GUID­33FE3341­BB9B­44DD­A831­FC9ED96E99C1.html?_ga=1.172702179.111191094.1488165525 2/7
3/8/2017 Creating Custom XPath Functions

5. Accept all of the defaults and click Next.

https://docs.tibco.com/pub/activematrix_businessworks/6.3.1/doc/html/GUID­33FE3341­BB9B­44DD­A831­FC9ED96E99C1.html?_ga=1.172702179.111191094.1488165525 3/7
3/8/2017 Creating Custom XPath Functions

6. Select Custom XPath Function Wizard on the Templates page, and click Next.

https://docs.tibco.com/pub/activematrix_businessworks/6.3.1/doc/html/GUID­33FE3341­BB9B­44DD­A831­FC9ED96E99C1.html?_ga=1.172702179.111191094.1488165525 4/7
3/8/2017 Creating Custom XPath Functions

7. In the New Custom XPath Function Group plug-in project window provide values for the following fields and click Next to continue.

Category: The name of the category that includes the custom XPath functions
Prefix: The prefix for the functions
Namespace: The namespace for the functions
Help Text: The description of the functions

https://docs.tibco.com/pub/activematrix_businessworks/6.3.1/doc/html/GUID­33FE3341­BB9B­44DD­A831­FC9ED96E99C1.html?_ga=1.172702179.111191094.1488165525 5/7
3/8/2017 Creating Custom XPath Functions

8. Specify the XPath Function and XPath Function Parameters in the XPath Function Group Creation Section dialog.

9. Click the Add button located on the right side of the XPath Functions table and provide values for:
Name: the name of the function
Return Type: the return type of the function
Description: the description of the function
10. Click the Add button located on the right side of the XPath Function Parameters table. Specify values for the following parameters and click Finish:
Name: the name of the parameter
Type: the data type of the parameter
Optional: select the check box if the parameter is optional.
11. The Open Associated Perspective dialog displays. Click Yes.
TIBCO Business Studio opens in Plug-in and the Plug-in Development perspective.

https://docs.tibco.com/pub/activematrix_businessworks/6.3.1/doc/html/GUID­33FE3341­BB9B­44DD­A831­FC9ED96E99C1.html?_ga=1.172702179.111191094.1488165525 6/7
3/8/2017 Creating Custom XPath Functions

12. Open the Java class in the newly created Custom XPath function plug-in and implement the Custom XPath function.

Now your Custom XPath function is ready for use at design time and run time.

Copyright © TIBCO Software Inc. All Rights Reserved.

https://docs.tibco.com/pub/activematrix_businessworks/6.3.1/doc/html/GUID­33FE3341­BB9B­44DD­A831­FC9ED96E99C1.html?_ga=1.172702179.111191094.1488165525 7/7

You might also like