The TIBCO Platform is a real-time, composable data platform that will bring together an evolving set of your TIBCO solutions - and it's available now!
A chart showing the TIBCO Platform vision
Jump to content
Forums
Ask questions and gain insight from discussions

Recommended Posts

Posted

Hi,

 

I'm trying to right a Hawk Rule Base utilzing the Business Works microagent such that we can monitor and alert on the status of our BW Engines.

 

We have multiple Business Works engines, and I'd like to be able to write the one Hawk Rule Base, and push this to out to the 5 Business Works engines.

 

The problem i'm facing is that the MircoAgent name for each of our engines differs and I have not found a way to re-use the same rule as within Hawk Display I can't substitue any value for the Data Source field.

 

For example,

 

The microagent name follows the syntax ;

 

COM.TIBCO.ADAPTER.bwengine...

 

eg. we have 5 available microagents named;

COM.TIBCO.ADAPTER.bwengine.MyDomain.MyDeployment.MyDeploymentHost1

COM.TIBCO.ADAPTER.bwengine.MyDomain.MyDeployment.MyDeploymentHost2

COM.TIBCO.ADAPTER.bwengine.MyDomain.MyDeployment.MyDeploymentHost3

COM.TIBCO.ADAPTER.bwengine.MyDomain.MyDeployment.MyDeploymentHost4

COM.TIBCO.ADAPTER.bwengine.MyDomain.MyDeployment.MyDeploymentHost5

 

Is there a way in which I can use a variable, or substitution in the Data Source of the Hawk Rulebase defintion such that I don't need to write five different .hrb's I would like to be able to develop the one .hrb and deploy this to the five servers.

 

Any thoughts would be much appreciated.

 

Regards,Bob Neil

Posted

Create a rulebase template like so:

Instead of using the direct microagent datacource directly, use the TIBCORuntimeagent datasource. Then, choose the method "getComponentInstanceStatus".

The method arguments are:

- in field Deployment, enter the value "${Internal.Current RuleBase}".

- in field Component Instance, enter value "Process Archive."

 

Then, rename the rulebase to you specific bw instance.

 

Hope this helps!

  • 7 years later...
Posted

Hi Joshua,

 

Your approach is working but can you please suggest me in case when i want to run the rule for all different "Deployment" simultaneously. for eg my tibco applications are named as 

 

 

 

App1,App2,App3... and i want to create a single rulebase which can restart all applications in one go.

 

 

 

Thanks in advance!!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...