configurationengine/source/plugins/common/ConeRulePlugin/ruleplugin/tests/ruleproject/rules/implml/container_with_rules.ruleml
changeset 3 e7e0ae78773e
parent 0 2e8eeb919028
--- a/configurationengine/source/plugins/common/ConeRulePlugin/ruleplugin/tests/ruleproject/rules/implml/container_with_rules.ruleml	Fri Mar 12 08:30:17 2010 +0200
+++ b/configurationengine/source/plugins/common/ConeRulePlugin/ruleplugin/tests/ruleproject/rules/implml/container_with_rules.ruleml	Tue Aug 10 14:29:28 2010 +0300
@@ -2,19 +2,24 @@
 <container xmlns="http://www.symbianfoundation.org/xml/implml/1">
     <container>
         <phase name="pre"/>
-        <rules:ruleml xmlns:rules="http://www.s60.com/xml/ruleml/1">
-          <rules:rule>imaker.imagetarget configures imakerapi.outputLocation = imaker.imagetarget</rules:rule>
-          <rules:rule>True configures StringConcatenationTest.Result1 = "Test " + "test"</rules:rule>
-          <rules:rule>True configures StringConcatenationTest.Result2 = StringConcatenationTest.Value1 + " Literal 2"</rules:rule>
+        <rules:ruleml xmlns:rules="http://www.s60.com/xml/ruleml/3">
+          <rules:rule>{% dummy_function(${imakerapi.PRODUCT_NAME}) %} configures ${imakerapi.PRODUCT_NAME} = "test product"</rules:rule>
+          <rules:rule>${imaker.imagetarget} configures ${imakerapi.outputLocation} = ${imaker.imagetarget}</rules:rule>
+          <rules:rule>True configures ${StringConcatenationTest.Result1} = "Test " + "test"</rules:rule>
+          <rules:rule>True configures ${StringConcatenationTest.Result2} = ${StringConcatenationTest.Value1} + " Literal 2"</rules:rule>
+          <eval_globals>
+def dummy_function(ref):
+    return ref
+        </eval_globals>
         </rules:ruleml>
     </container>
     <container>
         <phase name="normal"/>
-        <rules:ruleml xmlns:rules="http://www.s60.com/xml/ruleml/1">
-          <rules:rule>True configures StringConcatenationTest.Result3 = "Literal 1 " + StringConcatenationTest.Value2</rules:rule>
-          <rules:rule>True configures StringConcatenationTest.Result4 = StringConcatenationTest.Value1 + StringConcatenationTest.Value2</rules:rule>
-          <rules:rule>True configures StringConcatenationTest.Result5 = StringConcatenationTest.Value1 + " &amp; " + StringConcatenationTest.Value2</rules:rule>
-          <rules:rule>True configures StringConcatenationTest.Result6 = StringConcatenationTest.Value1 + u" € カタカナ"</rules:rule>      
+        <rules:ruleml xmlns:rules="http://www.s60.com/xml/ruleml/3">
+          <rules:rule>True configures ${StringConcatenationTest.Result3} = "Literal 1 " + ${StringConcatenationTest.Value2}</rules:rule>
+          <rules:rule>True configures ${StringConcatenationTest.Result4} = ${StringConcatenationTest.Value1} + ${StringConcatenationTest.Value2}</rules:rule>
+          <rules:rule>True configures ${StringConcatenationTest.Result5} = ${StringConcatenationTest.Value1} + " &amp; " + ${StringConcatenationTest.Value2}</rules:rule>
+          <rules:rule>True configures ${StringConcatenationTest.Result6} = ${StringConcatenationTest.Value1} + u" € カタカナ"</rules:rule>      
         </rules:ruleml>
     </container>
 </container>