TIBCO ActiveMatrix BusinessWorks 6 Integration
With the use of the TIBCO BusinessEvents API, you can run a TIBCO BusinessEvents engine from within BusinessWorks 6 to call rule functions, create events and concepts and assert events and concepts.
See TIBCO ActiveMatrix BusinessWorks documentation for more details about BusinessWorks 6.
Note: Note: For more information on BusinessEvents API, see online Java API Reference and MissManners and RuleFunctionAPI examples under
BE_HOME/examples/standard
to get familiar with the API.
- Procedure
- Install TIBCO BusinessEvents and TIBCO ActiveMatrix BusinessWorks 6.
- Import the TIBCO BusinessEvents project RuleFunctionAPI/RFAPI from the standard examples in TIBCO BusinessEvents Studio.
Create an EAR for the same project orCreate a new TIBCO BusinessEvents project with Rulefunction and create and EAR for it.
- Create a JAVA class to call the TIBCO BusinessEvents Rulefunction API.
- Create a JAR file from the same JAVA class.
- Create a TIBCO ActiveMatrix BusinessWorks 6 application with the JAVA INVOKE activity with the TIBCO ActiveMatrix BusinessWorks 6 Studio.
- Add the JAR file and the required JARs from TIBCO
BE_HOME/lib
as listed below to add to TIBCO ActiveMatrix BusinessWorks 6 application's build path libraries.The following are the TIBCO BusinessEvents Library that are required:be-functions.jar
cep-common.jar
cep-kernel.jar
cep-base.jar
commons-lang3-3.2.jar
cep-ui-rt-common.jar
org.eclipse.uml2.uml.jar
org.eclipse.uml2.types.jar
TIBCOrt.jar
javassist.jar
antlr-3.2.jar
- Configure the JAVA Invoke Activity by using the invoke method from the CallRuleFunction class to call TIBCO BusinessEvents RuleFunction API.
- Provide the required JAVA activity input parameters, such as REPO URL, TIBCO BusinessEvents engine TRA file, CDD file, PU, Rulefunction name and so on.
These parameters are TIBCO BusinessEvents project artifacts required to call TIBCO BusinessEvents RuleFunction.
- Go to the TIBCO ActiveMatrix BusinessWorks 6 Application Module Dependencies and import the packages as listed below required to call the TIBCO BusinessEvents RuleFunction API.
Packages required from TIBCO ActiveMatrix BusinessWorks 6 include:
org.eclipse.emf.ecore.resource.Resource$Factory$Registry
org.eclipse.emf.ecore.EObject
org.eclipse.emf.common
org.eclipse.emf.common.util.URI
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl
org.eclipse.emf.ecore.impl.EPackageImpl
org.eclipse.emf.ecore.xml.type.XMLTypePackage
org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl
org.eclipse.emf.ecore.util.FeatureMap
org.eclipse.emf.common.notify.Notification
org.apache.log4j.Appender
org.apache.log4j.spi.LoggerRepository
com.tibco.xml.tns.impl.TargetNamespaceCache
com.tibco.util.StringUtilities
com.tibco.xml.schema.SmType
org.eclipse.emf.ecore.xmi.XMLOptions
com.tibco.xml.schema.impl.SmNamespaceProviderImpl
com.tibco.xml.ws.wsdl.WsException
com.tibco.xml.tns
com.tibco.xml.tns.impl
com.tibco.xml.tns.parse
com.tibco.xml.tns.parse.helpers
com.tibco.xml.data.primitive
com.tibco.xml.datamodel
com.tibco.io.xml
com.tibco.xml.schema.channel.SchemaModelProvider
com.tibco.xml.validation.kernel.DefaultSchemaCache
com.tibco.xml.channel.error.helpers.ErrorThrower
com.tibco.xml.schema.parse.SmParseSupport
com.tibco.xml.schema.build.MutableSchema
com.tibco.xml.datamodel.helpers.XiChild
com.tibco.xml.schema.helpers.NoNamespace
com.tibco.xml.schema.flavor.XSDL
com.tibco.sax.ResolverUtilities
com.tibco.xml.data.primitive.values.XsBoolean
com.tibco.xml.datamodel.navigation
com.tibco.xml.xquery
- Deploy the application in TIBCO ActiveMatrix BusinessWorks 6 as "BW Application" or export the application to EAR and deploy in the TIBCO ActiveMatrix BusinessWorks domain with TIBCO Enterprise Administrator.