3 Replies Latest reply on Jul 3, 2013 11:34 AM by David Ward

    Channels missing in drools

    Wojciech Dobrowolski Newbie



      We are currently investigating Event Processing in Switchyard 0.8.

      What we are trying to do is to send facts to the Drools service, process them and distribute results through channels.

      However we cannot access channels from drools. Neither channel listing through drools global nor direct access to the channels object works.

      Apparently, there are no channels being registered.


      We are trying to register a channel as follows:

      <sca:service name="EventProcessingDrools" promote="Events/EventProcessingDrools">

            <sca:interface.java interface="com.example.EventProcessingDrools"/>


          <sca:component name="Events">



                <rules:channel class="com.example.impl.ChannelExample" name="ChannelExample"/>

                <!-- <rules:channel class="com.example.ConfigurationService" name="ConfigurationService" operation="updateConfiguration" reference="ConfigurationService"/> -->




                  <rules:resource location="Events.drl" type="DRL"/>           




            <sca:service name="EventProcessingDrools">

              <sca:interface.java interface="com.example.EventProcessingDrools"/>


            <sca:reference name="ConfigurationService">

              <sca:interface.java interface="com.example.ConfigurationService"/>




      What we have realized is that even when we are trying to use a switchyard service as a channel, the "rules:channel" element requires a class attribute.


      I would appreciate any advice on this problem.