Discussion:
[jboss-user] [jBPM] - JBPM workIteamHandler registration
sagar dhumal
2013-04-09 09:13:15 UTC
Permalink
sagar dhumal [https://community.jboss.org/people/dsagar1234] created the discussion

"JBPM workIteamHandler registration"

To view the discussion, visit: https://community.jboss.org/message/807158#807158

--------------------------------------------------------------
Hello All,

I had created domain specific service mentioned on one of JBPM article.When I run this as standalone java programme it works fine.I wanted to resister it with jbpm console,so changed the *default.session.properties  as below*

new SessionTemplate().{ 
    businessKey = "jbpm/consolesession",
    imported = false,
    persistenceUnit = "org.jbpm.persistence.jpa",

    properties = ["drools.processInstanceManagerFactory":"org.jbpm.persistence.processinstance.JPAProcessInstanceManagerFactory",
                  "drools.processSignalManagerFactory" : "org.jbpm.persistence.processinstance.JPASignalManagerFactory" 
                    ],

    workItemHandlers = ["Human Task" : "new org.jbpm.process.workitem.wsht.AsyncHornetQHTWorkItemHandler(\"jbpmConsoleHTHandler\", taskClient, ksession, org.jbpm.task.utils.OnErrorAction.LOG)",
                        "Service Task" : "new org.jbpm.process.workitem.bpmn2.ServiceTaskHandler(ksession)",*"Notification" : "new org.jbpm.process.workitem.bpmn2.NotificationWorkItemHandler()"*],

    eventListeners = ["new org.jbpm.process.audit.JPAWorkingMemoryDbLogger(ksession)",
                      "new org.jbpm.integration.console.listeners.TriggerRulesEventListener(ksession)"  ]
};

But I am getting exception as *org.drools.WorkItemHandlerNotFoundException: Could not find work item handler for Notification.*
*it looks like it doesnt get *NotificationWorkItemHandler class,so i tried to put in it server lib,i tried to deploy it as jar and finally i put it in package where other workitemHandler were.,but doesnt seem to be working.**
**Any ideas......**

Doesit it because GWT CONSOLE SERVER is trying to restore session from database and i had not register workitemHandler at that time.
If yes then how to register workIteam handler,because then it will be difficult to register new workItemHandler later once we create session.
**
**
*
*
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/807158#807158]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-04-10 06:02:58 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: JBPM workIteamHandler registration"

To view the discussion, visit: https://community.jboss.org/message/807333#807333

--------------------------------------------------------------
your jar file must be placed inside console-server.war/WEB-INF/lib so it can be found and initialized properly.

Please note that you should not change the default.session.template file but create a copy of it in jboss.config.dir (which is by default jboss_home/standalone/configuration) and name that file session.template. More can be found in http://docs.jboss.org/jbpm/v5.4/userguide/ch.console.html#d0e4698 documentation.

HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/807333#807333]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...