I have been scouring the forums and website for the past week and trying to work my way through some simple projects involving processes and finally decided to create an account and just ask my questions.
I am very new to this technology so there is still a lot I do not understand.
I have a few questions:
1. Some sample projects suggest that I create a runtime environment and runtime manager, knowledge sessions and then add in the .bpmn files as part of the resource while others go straight into creating the builders, making the sessions and adding the process without ever building an environment first. I was wondering why there were two approaches to this and if one is more efficient than the other? I am confused because they both seem to create the session and start my process. And, what is the best method for me to execute my process from now on?
I have gone through the jbpm 6.0 manual online and have read up on simple examples and have added an work item using a wid file and a drools configuration file in the META-INF folder. I was wondering where I am find an example of adding a workItem (or ServiceTask) not in a declarative way but rather through code? So that my work is checked at runtime rather than at compile time. i.e creating a work item and registering that with my process and work item handler. I cant find a good example on this.
I currently have RuntimeEnvironment environment = RuntimeEnvironmentBuilder.Factory.get().newDefaultInMemoryBuilder().addAsst(ResourceFactory.newClassPathResource("com.sample.bpmn"), ResourceType.BPMN2).get(); to load up my process that I created.
How would I add in a second resource into this environment? I have a rules file .newRules.drl that I would like to incorporate into a business rules node in my process sample.bpmn but I cannot find a good example of where to begin.
In a nut shell, I am looking to touch the process flow as little as possible and manipulate everything through code and I am looking for a medium-level example to guide me. Any suggestion is greatly appreciated!
I understand these questions are basic but I have been searching for a few days now and I am disappointed at the progress I have made and was hoping to look for help.