Products | Versions |
---|---|
TIBCO ActiveMatrix BusinessWorks Plug-in Development Kit | 6.2.x |
In PDK v6.2.0 TIBCO has added support for various shared resources which includes 'JAVA Global Instance' shared resource. To create a custom shared resource one can establish the link to the 'JAVA Global Instance' shared resource with the custom activity. This can be done by creating an attribute with Property Field from Control Type list while defining the attributes of the activity and then select type of a resource as 'JAVA Global Instance' from Values list.
While the Custom Plugin code is generated this will create an instance of 'com.tibco.bw.sharedresource.java.runtime.JavaGlobalInstanceResource' named as 'myJavaGlobalInstance' which can be then used to get the java object contained in the referenced JAVA Global Instance resource. Now using the 'JAVA Global Instance' you can implement the shared resource based on your requirement by providing required Java class. You can now use access the required object via Java reflection.