I would like to execute bpmn file which is in another project. Could anyone tell me how to do this?
I have something like this in my rule, but it's doesn't work:
function performScenario()
{
KieHelper kHelper = new KieHelper();
KieBase kBase = kHelper.addResource(ResourceFactory.newFileResource("D:\\jbpm-installer\\workspace\\JbpmTest\\src\\main\\resources\\sample.bpmn")).build();
KieSession kieSession = kBase.newKieSession();
kieSession.startProcess("com.sample.bpmn.hello");
}
I have error: Unknown process ID