Writing Java
When you create a message flow, you include input nodes that receive messages and, optionally, output nodes that send out new or updated messages. If the message processing requires it, you can include other nodes after the input node that are customized in Java™ to complete the actions that your applications need.
About this task
You can customize the processing that some of the built-in nodes provide. In a JavaCompute node, you can provide Java code that controls precisely the behavior of the node. This set of topics discusses how you can use Java to customize the JavaCompute node.
You can use a JavaCompute node to check and manipulate message content. The node can read the contents of the input message, then construct new output messages that are created from all, part, or none of the input message.
You can also use a JavaCompute node to interact with a global cache. You can write Java code that stores data in a global cache, or retrieves data for further processing or routing.
Use the Debug perspective to debug a message flow that contains a JavaCompute node. When control passes to a JavaCompute node during debugging, the perspective opens the Java debugger, allowing you to step through the Java class code for the node.
- Creating Java code for a JavaCompute node
- Opening an existing Java file
- Saving a Java file
- Adding Java code dependencies
- Deploying JavaCompute node code
- Manipulating message body data
- Manipulating other parts of the message tree
- Accessing the global cache by using a JavaCompute node
- Accessing user-defined properties
- Accessing a user-defined policy from a JavaCompute node
- Executing ODM business rules by using a JavaCompute node
- Creating ODM classes by using the Process via Operational Decision Manager ruleset wizard
- Interacting with databases
- Calling an Enterprise Java Bean
- Handling exceptions
- Logging errors