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?