Search in sources :

Example 1 with DroolsManagementAgent

use of org.drools.core.management.DroolsManagementAgent in project drools by kiegroup.

the class KnowledgeBaseImpl method createRulebaseId.

private void createRulebaseId(final String id) {
    if (id != null) {
        this.id = id;
    } else {
        String key = "";
        if (config.isMBeansEnabled()) {
            DroolsManagementAgent agent = DroolsManagementAgent.getInstance();
            key = String.valueOf(agent.getNextKnowledgeBaseId());
        }
        this.id = "default" + key;
    }
}
Also used : DroolsManagementAgent(org.drools.core.management.DroolsManagementAgent)

Aggregations

DroolsManagementAgent (org.drools.core.management.DroolsManagementAgent)1