-
Notifications
You must be signed in to change notification settings - Fork 80
Custom XPath Function with Maven
Please follow below steps to use Custom XPath Function(CXF) with BW -
-
Follow the steps at TIBCO BW6 Documentation to create Custom XPath Project - (Creating Custom XPath Functions)[https://docs.tibco.com/pub/activematrix_businessworks/6.5.0/doc/html/GUID-33FE3341-BB9B-44DD-A831-FC9ED96E99C1.html]
-
(Using Custom XPath Functions at Design time and Runtime)[https://docs.tibco.com/pub/activematrix_businessworks/6.5.0/doc/html/GUID-13795D07-F63C-4B27-8A6B-9E620A74BB16.html]
-
Create Sample BW Application which is using the Custom XPath Function created above.
- Ensure that the Custom XPath function(CXF) Project is added in Application
Includes
as below
- Launch Generate POM file wizard. You should see XPath function Project in the list
The parent project pom.xml should list down all the modules as below -
<modules>
<module>../CXFDemo</module>
<module>../CXFTest.module</module>
<module>../CXFTest</module>
</modules>
- Add cxf common extension dependency in Custom XPath Function project pom.xml
Note - The dependency artifact version is depend on BW version you are using.
To install execute command -
mvn install:install-file -Dfile=<path-to-cxf-common-jar> -DgroupId=com.tibco.plugins -DartifactId=com.tibco.xml.cxf.common -Dversion=<version> -Dpackaging=jar
Example - mvn install:install-file -Dfile=C:\tibco\bw\6.6\system\shared\com.tibco.xml.cxf.common_1.3.600.001.jar -DgroupId=com.tibco.plugins -DartifactId=com.tibco.xml.cxf.common -Dversion=1.3.600 -Dpackaging=jar
<dependencies>
<dependency>
<groupId>com.tibco.plugins</groupId>
<artifactId>com.tibco.xml.cxf.common</artifactId>
<version>1.3.600</version>
<scope>provided</scope>
</dependency>
</dependencies>
- Create bwutdev.properties file.
In your user home directory, create bwutdev.properties
file (example - on windows, C:\Users<user>\bwutdev.properties.
Add your XPath function project entry in the file.
CXFDemo=bin,target/classes
Note - Your BW application should have unit tests defined. Please refer (unit testing)[https://github.com/TIBCOSoftware/bw6-plugin-maven/wiki#unit-testing] section on the Wiki.
Note - TIBCO_HOME and BW_HOME properties should be provided in pom.xml.
-
Create new Maven Run configuration. Select BW application parent project as base directory.
-
Provide maven goal
clean test
. -
To generate an EAR, Provide maven goal
clean package
.
Source code for Above example (CXFTest.zip)
Getting started
- Steps to Mavenize BW Application
- Building applications for BWCE
- EAR deployment with Config File
- Shared Modules with Maven
- Add Process Diagram in EAR
- BW Design Utility Goals
- CI/CD using Jenkins
- Custom XPath Function
- Deploy Shared Module on Remote Repository
- TCI Deployment using Maven Plugin
Unit Testing
- Primitive Assertion
- Activity Assertion
- Activity Assertion with Gold Input File
- Mock Output
- Mock Fault
- Test Suite
- Plugin Properties
Help & Contribute