1 Reply Latest reply on Jun 18, 2012 12:02 PM by salaboy21

    How do we use AsyncMinaHTWorkItemHandler with the drools.workItemHandlers configuration file

      Hello

       

      This AsyncMinaHTWorkItemHandler seems to require the session as a constructor, but I've not seen any examples of using the drools.workItemHandlers where you pass a session as a constructor.

       

      All I've seen is this:

       

      [

                "My Task": new com.my.MyTaskHandler()

      ]

       

      Can we do something like this:

       

      [

        "My Task": new com.my.MyTaskHandler(sessionFromSomewhere)

      ]

       

      Can someone give some help?

       

      Thanks


      Tim

        • 1. Re: How do we use AsyncMinaHTWorkItemHandler with the drools.workItemHandlers configuration file
          salaboy21

          This is a really good question. I'm not sure if you can do that..

          Can you try configuring the WorkItemHandler via code instead of Using the properties file?

          Can you create a Jira Issue to describe the problem, so we can take a look on that?

          The drools.workItemHandlers file, if I don't remember wrong in an MVEL file, so that means that we can inject the session to be used as a variable, but as you mention I don't remember an example of that either.

           

          Cheers