Designer > POJO and XQuery Custom Functions > Custom Functions Overview

Custom Functions Overview

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:
  1. 1. Right-mouse on the project name and select Properties.
  2. 2. Select Java Build Path.
  3. 3. From the Libraries tab, select Add Library.
  4. 4. Select Process Developer Library as shown in the example.
See also Implementing the Function Context and Adding Annotations.