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

    Channels missing in drools

    Wojciech Dobrowolski Newbie

      Hello

       

      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:service>

          <sca:component name="Events">

            <rules:implementation.rules>    

                 <rules:channels>

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

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

              </rules:channels>     

              <rules:manifest>       

                <rules:resources>         

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

                </rules:resources>         

              </rules:manifest>

            </rules:implementation.rules>

            <sca:service name="EventProcessingDrools">

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

            </sca:service>

            <sca:reference name="ConfigurationService">

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

            </sca:reference>

          </sca:component>

       

      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.

       

      Cheers,

      Wojtek