JBoss Community

Instantiating the KnowledgeBase

created by Julio Faerman in jBPM - View the full discussion

The samples/docs instantiates the KnowledgeBase hard-coding the proccess definitions, like:

 

{code}

KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();

kbuilder.add(ResourceFactory.newClassPathResource("Evaluation.bpmn"), ResourceType.BPMN2);

{code}

 

I am thinking that this approach is not usable for real applications, when new process are deployed in runtime.

Is it possible to instantiate a KnowledgeBuilder that searches Guvnor for process definitions on-demand?

Reply to this message by going to Community

Start a new discussion in jBPM at Community