Instream CallBack
Overview
Using a Java Class for Instream Callback allows you to select validation guidelines and profiles based on the contents of the input data by modifying the Java code.
Enable Callback
To enable an Instream CallBack:
- Select the TIBCO ActiveMatrix BusinessWorks™ Application Module when creating a new project.
- Enter a Project name, select the Use Java configuration checkbox, and click Next.
-
Select the CallBack checkbox in the Instream activity General tab and click the Create a new class icon .
-
Fill in Class Name and click Finish.
A Java class is created with default functions and variables.
Result
MSH information will set to HashMap<String, String> infoMap.
Use the “get” function to access the values in the map.
infoMap.get("Info.MessageTypeMessageCode")
Setting Guidelines and Profiles
You can set guidelines and profiles by modifying public void selectGuideline() in the Java code.
If Guideline Resides on Disk (Instream Database Directory)
Sign the map image to variable mapFileBuffer.
guidelineName = “VXR_V03.std”;
If Guideline Resides in Memory (Database)
Setting a Profile
Directly assign the profile name to the variable apfFileName.
apfFilename=”user_profile.apf”;