Controlling the execution sequence for startup functions.

Controlling the execution sequence for startup functions.

book

Article ID: KB0088098

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

Resolution:
Description:
===========
Controlling the execution sequence for startup functions.

Environment:
===========
TIBCO BusinessEvents 5.x
All Operating Systems

Resolution:
===========
Create a main Startup rulefunction which is used for invoking all other startup rulefunction by order.

Assume you have StartUpRuleFunction with the name StartUp_1, StartUp_2, and StartUp_3. You want to execute the rulefunction in this sequence StartUp_1 -> StartUp_2 -> StartUp_3. You can just define a new StartUpRuleFunction StartUp_all and configure this rule function as the startup rulefunction in the cdd file.


In the StartUp_all StartUpRuleFunction, invoke the other startup rulefunctions with the sequence you want, in this case define startup rulefunction StartUp_all as follows:

void rulefunction RuleFunctions.StartUp_all {
    attribute {
        validity = ACTION;
    }
    scope {
    }
    body {
        RuleFunctions.StartUp_1();
        RuleFunctions.StartUp_2();
        RuleFunctions.StartUp_3();
    }
}

Issue/Introduction

Controlling the execution sequence for startup functions.