How to re-use hawk rulebases across different nodes in TIBCO BusinessWorks 6.x

How to re-use hawk rulebases across different nodes in TIBCO BusinessWorks 6.x

book

Article ID: KB0075224

calendar_today

Updated On:

Products Versions
TIBCO Hawk 5.x, 6.x

Description

BW6 microagent name contains a random number in *.hrb file. e.g. "BusinessWorks6AppNode-1765031668"
The behaviour is expected. See article 000021935
https://support.tibco.com/s/article/Tibco-KnowledgeArticle-Article-45917

Hawk rulebases cannot be re-used because of the random code.

Issue/Introduction

How to re-use hawk rulebases across different nodes in TIBCO BusinessWorks 6.x

Environment

All

Resolution

1. Download and compile the jave code(ShowMicroAgentName.java in attachment)
2. Run it with appNode, appSpace and domain name to get the appNode-microagent-name with hashcode
Input is the following 3 arguments in order: AppNode name,  AppSpace name,  Domain name
e.g.
$java ShowMicroAgentName "HawkAppNode1" "HawkAppSpace1" "HawkTestDomain"
$MicroAgentName = BusinessWorks6AppNode-37776035 when appNode=[HawkAppNode1], appSpace=[HawkAppSpace1] and domain=[HawkTestDomain]
3. Open *.hrb file in text mode, replace BusinessWorks6AppNode-12345(old) to BusinessWorks6AppNode-67890(new).

Note:
If domain/appSpace/appNode is deleted and recreated, BusinessWorks6AppNode-<hashcode> in the *.hrb file must be updated to assure that rulebases work with the new appNode.

----Updated-on-May-29-2020----
A simple tool can achieve this easier in article 000037087.

Additional Information

AMBW-20466
 

Attachments

How to re-use hawk rulebases across different nodes in TIBCO BusinessWorks 6.x get_app