JBoss Community

retrieve list of workItemHandlers name from kSession?

created by Ashish Sinha in jBPM - View the full discussion

Hi,

I am using JBPM 5+ with spring and want to know if there is any way to get workItemHandler name using kSession.

 

Below is the xml setting of handler within kSession.

 

<bean class="AbcHandler" ref="abcHandler"/>

 

<drools:ksession id="kSession" type="stateful" kbase="kBase">

                    <drools:configuration>

                              <drools:work-item-handlers>

                        <drools:work-item-handler name="AbcServiceTask" ref="abcHandler"/>

               </drools:work-item-handlers>

         </drools:configuration>

</drools:ksession>

 

I believe there must be something

 

String[] handlers =  kSession.getCongiguration().getWorkItemHandlers() ?

 

any idea?

Reply to this message by going to Community

Start a new discussion in jBPM at Community