This content has been marked as final.
Show 2 replies
-
1. Re: I want to create jbpmn as an standalone service.
salaboy21 May 27, 2014 7:19 AM (in response to ankitgr8)That's because you need to add the bpmn2 file to the kie container. And then you should start it with the process id no the file name.
Regards
-
2. Re: I want to create jbpmn as an standalone service.
ankitgr8 May 27, 2014 8:12 AM (in response to salaboy21)I am doing the same when I Said setupWorkFlow = this method add the resources in the knowledge base..below is the code ---let me know if i am missing out something
private void setupWorkFlows(KieHelper kie){
List<String> bpmnfiles = findBPMNFiles();
Map<String,ResourceType> resourceList = new HashMap<String,ResourceType>(bpmnfiles.size());
for(String bpmnfile :bpmnfiles){
System.out.println("file name " + bpmnfile);
kie = kie.addResource(ResourceFactory.newFileResource(bpmnfile));
}
}