vinayak Bhadage
2013-02-27 13:13:53 UTC
vinayak Bhadage [https://community.jboss.org/people/vinayakpict] created the discussion
"Domain Service task default work item handler is not working if added through META-INF/*.wid file"
To view the discussion, visit: https://community.jboss.org/message/799865#799865
--------------------------------------------------------------
Hi ,
In JBPM5, I am using domain service task and also created work item handler for the same.
If at the time of creating knowledge session or before starting the process I have registered the custome work item handler in ksession.
then work item handler is executed perfectly.
Now from drool rule, want to start the process, in that case I have defined SAMPLE.wid file added in drools.rulebase.conf.
the wid file as below:
import org.drools.process.core.datatype.impl.type.StringDataType;
[
  [
   "name" : "SampleTask",
   "parameters" : [
             "name" : new StringDataType()
   ],
   "displayName" : "SampleTask",
   "icon" : "",
   "defaultHandler" : "com.sample.SampleTaskWorkItemHandler",
   "dependencies" : [
   ]
 ]
]
I this case work item handler is not found to ksession.
Please let me know that this approach will work.
Can jbpm5 process engine load the deafault handler mentioned in *.wid?
I have just started to learn about JBPM5. Please help me to resolve this issue.
Thanks & regards,
-vinayak
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/799865#799865]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
"Domain Service task default work item handler is not working if added through META-INF/*.wid file"
To view the discussion, visit: https://community.jboss.org/message/799865#799865
--------------------------------------------------------------
Hi ,
In JBPM5, I am using domain service task and also created work item handler for the same.
If at the time of creating knowledge session or before starting the process I have registered the custome work item handler in ksession.
then work item handler is executed perfectly.
Now from drool rule, want to start the process, in that case I have defined SAMPLE.wid file added in drools.rulebase.conf.
the wid file as below:
import org.drools.process.core.datatype.impl.type.StringDataType;
[
  [
   "name" : "SampleTask",
   "parameters" : [
             "name" : new StringDataType()
   ],
   "displayName" : "SampleTask",
   "icon" : "",
   "defaultHandler" : "com.sample.SampleTaskWorkItemHandler",
   "dependencies" : [
   ]
 ]
]
I this case work item handler is not found to ksession.
Please let me know that this approach will work.
Can jbpm5 process engine load the deafault handler mentioned in *.wid?
I have just started to learn about JBPM5. Please help me to resolve this issue.
Thanks & regards,
-vinayak
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/799865#799865]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]