Java Task

The Java task enables you to add functionality to call and execute user-defined Java code. The functionality is similar to the rule function script task and provides an integrated development and debugging environment.

In TIBCO BusinessEvents Studio integrated development environment (IDE) you can write code in Java and Rule Language in the same project. You can also seamlessly debug the code written in Java and Rule Language.

Using the Java task you can use third party Java code libraries to integrate with TIBCO BusinessEvents.

Data Type

The Java Rule API allows for easy integration with TIBCO BusinessEvents type system, such as concepts, process, and TIBCO BusinessEvents primitive data types.

The following are the accepted Java primitives:

  • int
  • double
  • long
  • boolean

The following are the accepted wrapper objects:

  • Integer
  • Double
  • Long
  • Date-Time
  • Boolean

String data type is also supported. For computation of the collections, you can use Array of all of the accepted types.

Note: In the Java code you can only use java.util.Calendar type for referring to Date-Time data types of BusinessEvents.