JBoss Community

Domain Service task default work item handler is not working if added through META-INF/*.wid file

created by vinayak Bhadage in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community