0
Answer

can't load the ruleml into dataset

pramod chaudhary

pramod chaudhary

19y
1.6k
1
i want to read the foll ruleml into dataset but it dosen't allow it .
plz suggest some solution .

the  ruleml is as  follows 


  <?xml version="1.0" encoding="ISO8859-1" ?>
  <!DOCTYPE root (View Source for full doctype...)>
- <root>
- <config>
- <engine-cfg>
- <logging>
  <directory>/root/</directory>
  <size>500000</size>
  <level>Debug 1</level>
  </logging>
- <monitor>
  <port>4455</port>
  </monitor>
  <debug-mode>on</debug-mode>
  </engine-cfg>
- <event-inputs>
- <event-input name="None" type="xmlrpc">
  <port>4600</port>
  </event-input>
  </event-inputs>
- <rules>
- <rule name="rule1" delivery="all" limit="None" create="single" parameter="append">
  <description />
  <event-ref enabled="yes">sit1</event-ref>
  <condition-ref enabled="no" />
  <action-ref enabled="no" />
  <instance-limit />
  </rule>
- <rule name="rule2" delivery="all" limit="None" create="single" parameter="append">
  <description />
  <event-ref enabled="yes">sit1</event-ref>
  <condition-ref enabled="no" />
  <action-ref enabled="yes">action1</action-ref>
  <instance-limit />
  </rule>
  </rules>
- <event-defs>
- <event-def name="e1" type="basic">
- <parameters>
  <parameter name="event_a" type="string" />
  <parameter name="host_name" type="string" />
  </parameters>
  </event-def>
- <event-def name="e2" type="basic">
- <parameters>
  <parameter name="service_name" type="string" />
  <parameter name="host_name" type="string" />
  <parameter name="price" type="number" />
  </parameters>
  </event-def>
- <event-def name="e3" type="basic">
- <parameters>
  <parameter name="eve_3" type="string" />
  </parameters>
  </event-def>
- <event-def name="e4" type="basic">
- <parameters>
  <parameter name="e4_param" type="number" />
  </parameters>
  </event-def>
- <event-def name="sit1" type="composite">
  <detect-event>e3</detect-event>
  <no-detect-event />
- <event-selector name="">
  <condition>con1</condition>
  <scope>global</scope>
- <events>
  <event-ref type="type">e1</event-ref>
  <event-ref type="type">e2</event-ref>
  </events>
  </event-selector>
- <detector>
- <sequence>
  <event-ref name="order">e1</event-ref>
  <event-ref name="sales">e2</event-ref>
  </sequence>
  </detector>
  </event-def>
- <event-def name="sit2" type="composite">
  <detect-event>e3</detect-event>
  <no-detect-event />
- <event-selector name="">
  <condition />
  <scope>global</scope>
  <events />
  </event-selector>
- <detector>
- <and>
  <event-ref name="sdfsd">e1</event-ref>
  <event-ref name="event_2">e2</event-ref>
  </and>
  </detector>
  </event-def>
  </event-defs>
- <condition-defs>
- <condition-def always-true="no" composite="no" name="con1">
- <parameters>
- <parameter name="param1">
  <event-ref type="type">e1</event-ref>
  <param-ref>event_a</param-ref>
  <instance>last</instance>
  <function />
  <key>no</key>
  </parameter>
  </parameters>
- <expressions>
- <expression name="cond_one">
- <lhs>
  <param-ref>param1</param-ref>
  </lhs>
  <operator>equal</operator>
- <rhs>
  <value>1</value>
  </rhs>
  </expression>
  </expressions>
- <composite-condition>
  <not />
  <condition-ref>cond_one</condition-ref>
  </composite-condition>
  </condition-def>
  </condition-defs>
- <action-defs>
- <action-def name="action1">
  <action-item type="script" name="act1">/root/helllo.sh</action-item>
  </action-def>
  <action-def name="action2" />
  </action-defs>
- <global-filter-defs>
- <global-filter name="filter1">
  <in-event>e1</in-event>
  <out-event>e1</out-event>
  <condition-ref>con1</condition-ref>
- <mappings>
- <map>
  <source>event_a</source>
  <destination>host_name</destination>
  </map>
  </mappings>
  </global-filter>
  </global-filter-defs>
  </config>
  </root>