-
1. Re: Using Jbpm 5 in a commercial project
salaboy21 Dec 1, 2011 10:39 AM (in response to nash.komar)Hi Nash,
I think you should contact Red Hat's sales people for those questions. this is more a technical forum where we can answer more concrete technical questions.
It would be nice to see what kind of difficulties are you having and we can help you as community members who are working in the project.
CHeers
-
2. Re: Using Jbpm 5 in a commercial project
nash.komar Dec 2, 2011 8:12 AM (in response to salaboy21)Hi Mauricio,
Thank you for your quick reply, we are tarting to contact sales people.
sorry for the late reply, I was trying to simplify my process model to identify the source of the issue:
here are the details :
the process
when I try to access the process instance information Change Level workItemHandler:
public class ChangeLevelWorkItemHandler implements WorkItemHandler {
public void executeWorkItem(WorkItem workItem, WorkItemManager workItemManager) {
System.out.println(" Changing the level = " + workItem.getParameter("direction"));
ProcessManager.getProcessInstance(workItem.getProcessInstanceId());
in the processManager :
public static ProcessInstance getProcessInstance(
long processInstanceId) {
return ksession.getProcessInstance(processInstanceId);
}
I'm using a persisted ksession that I create exactly like in the jbpm console :
env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);
Properties properties = new Properties();
properties.put("drools.processInstanceManagerFactory", "org.jbpm.persistence.processinstance.JPAProcessInstanceManagerFactory");
properties.put("drools.processSignalManagerFactory", "org.jbpm.persistence.processinstance.JPASignalManagerFactory");
KnowledgeSessionConfiguration config = KnowledgeBaseFactory.newKnowledgeSessionConfiguration(properties);
try {
…..
the process is executed correctly, but after the transaction time out, there is a roll-back(ransactionReaper::check timeout …. Abort of action id 7f000101:e18b:4ed4a5a4:10b invoked while multiple threads active within it. ).
I activated hibernate sql logs, I can see the sql request to create the process, but not those to insert the workiteminfo and delete them after the end.
Every thing work correctly and I can see all the sql request if :
I remove the timer or the ProcessManager.getProcessInstance(workItem.getProcessInstanceId()) line from the workItemHandler.
I will try this process in the jbpm console to see how it behave. But I don't know where to put the workitem handler.
Many thanks for your help
-
timerTest.bpmn.zip 1.1 KB
-
-
3. Re: Using Jbpm 5 in a commercial project
swiderski.maciej Dec 2, 2011 9:30 AM (in response to nash.komar)Just as a side note, I believe there are few or even more people/companies that would be more than happy to assist you with your jBPM projects as consulting services here at the community. So if you are interested just post such question and is likely you will get some replies.
Cheers