You can create and use custom functions in BPEL processes. A custom function is a POJO that implements a function context interface from Process Developer library. It also contains Process Developer annotations to register and display custom functions in the Functions list of the Expression and Query Builders.
You can create and use custom functions in one or more projects. A custom function is deployed as a project resource within a deployment contribution. Custom functions can be in the same project as your BPEL files or in referenced project. Any JAR files that support your custom functions must be in the classpath of your project.
For an easy way to implement the function context interface, create a new Java enabled orchestration project, described in
Orchestration Project Templates. The required Process Developer library is automatically added to your project, as shown in the illustration:
If you have an existing Java-enabled orchestration project, add the Process Developer library as follows:
Right-mouse on the project name and select
Java Build Path
From the Libraries tab, select
Select Process Developer Library as shown in the example.