How to define a custom shared resource using PDK

How to define a custom shared resource using PDK

book

Article ID: KB0078787

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in Development Kit 6.2.x

Description

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.
 

Issue/Introduction

How to define a custom shared resource using PDK

Environment

All

Additional Information

https://docs.tibco.com/pub/bwpdk/6.2.0/doc/html/GUID-4AF9E851-41E6-4A58-BE7E-31B2A5722369.html
https://docs.tibco.com/pub/activematrix_businessworks/6.5.1/doc/html/GUID-1D40A6A6-4DB9-4F80-BC93-498AE9634E83.html