Sunday, August 27, 2023

How to use Custom Java Code in BW5

In some specific cases, you may have to use Java code in Tibco BW5.

Use cases like some complex business logic has been implemented in Java or legacy code already existed, where you can use Java palette for your business case.

Feel free to go through Tibco documentation for Java activities based on your use case.

Here, the business process will take first name and last name as inputs and concat these names with the help of Java code and returns full name.



On Start activity:
Take two strings, fName,lName 

On Java Code Activity
Java Code activity is available in Java Palette..define input and output parameters, type and cardinality 

Under Code Tab

If no compilation errors and go to next step, else fix the errors and then proceed.

Under Input Tab/Output Tab
Map input variables as shown below and Output tab shows parameters as your Java Code.

Output: After executed Business Process:
Input:
Result Output:









No comments:

Post a Comment

XML Palette Activities

The XML palette provides activities for parsing XML strings into schemas and rendering schemas into XML strings Parse XML: Parse XML  is use...