0 Replies Latest reply on Jul 13, 2012 11:16 AM by Ashish Sinha

    retrieve list of workItemHandlers name from kSession?

    Ashish Sinha Newbie

      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?