JBoss Community

Re: Instantiating a process in JBPM5

created by Imran Naqvi in jBPM - View the full discussion

Thank you for your answer.

I took out the db logger for now.

 

I am getting the followin gexception:

 

java.lang.IllegalArgumentException: Could not connect task client

        at org.jbpm.process.workitem.wsht.CommandBasedWSHumanTaskHandler.connect(CommandBasedWSHumanTaskHandler.java:88)

        at org.jbpm.process.workitem.wsht.CommandBasedWSHumanTaskHandler.executeWorkItem(CommandBasedWSHumanTaskHandler.java:101)

        at org.drools.process.instance.impl.DefaultWorkItemManager.internalExecuteWorkItem(DefaultWorkItemManager.java:70)

        at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:105)

 

 

 

Evaluate.bpmn has manual tasks in it. According to the documentation I must initialize the TaskService as a separate service. The task service itself takes an instance of an EntitymanagerFactory:

 

      EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.drools.task");

      TaskService taskService = new TaskService(emf);

      MinaTaskServer server = new MinaTaskServer( taskService );

      Thread thread = new Thread( server );

      thread.start();

 

 

Is there any way of getting the task service without jpa?

Reply to this message by going to Community

Start a new discussion in jBPM at Community