Commit fbb2a21c authored by Raj Shah's avatar Raj Shah
Browse files

Release 3.2.51

parent 7f5e9d2c
<policy id='urn:policy:a:b' name="with wrong sequence" description='should fail because of the sequence order' xmlns='http://www.iese.fraunhofer.de/ind2uce/3.2.46/ind2uceLanguage' xmlns:tns='http://www.iese.fraunhofer.de/ind2uce/3.2.46/ind2uceLanguage'
xmlns:parameter='http://www.iese.fraunhofer.de/ind2uce/3.2.46/parameter' xmlns:pip='http://www.iese.fraunhofer.de/ind2uce/3.2.46/pip' xmlns:function='http://www.iese.fraunhofer.de/ind2uce/3.2.46/function'
xmlns:constant='http://www.iese.fraunhofer.de/ind2uce/3.2.46/constant'
xmlns:event='http://www.iese.fraunhofer.de/ind2uce/3.2.46/event' xmlns:variableDeclaration="http://www.iese.fraunhofer.de/ind2uce/3.2.46/variableDeclaration" xmlns:variable='http://www.iese.fraunhofer.de/ind2uce/3.2.46/variable'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<mechanism event='urn:action:a:b'>
<if>
<valueChanged to="true">
<variable:boolean reference="atIESE" />
</valueChanged>
<then>
<modify method="bla" eventParameter="blubb" />
<modify method="bla" eventParameter="blubb" />
<execute action='urn:action:ind2uce-local:notification'>
<parameter:string name='message' value='You are now at IESE!' />
</execute>
</then>
</if>
<elseif>
<valueChanged to="false">
<variable:boolean reference="atIESE" />
</valueChanged>
<then>
<execute action='urn:action:ind2uce-local:notification'>
<parameter:string name='message' value='You are now NOT at IESE!' />
</execute>
</then>
</elseif>
<else>
<execute action='urn:action:ind2uce-local:notification'>
<parameter:string name='message' value='Nothing changed!' />
</execute>
</else>
</mechanism>
<variableDeclaration:boolean name="foo">
</variableDeclaration:boolean>
</policy>
\ No newline at end of file
<policy id='urn:policy:ind2uce-local:thenWithoutIf' name="then with missing if" description='should fail because of lacking if' xmlns='http://www.iese.fraunhofer.de/ind2uce/3.2.46/ind2uceLanguage' xmlns:tns='http://www.iese.fraunhofer.de/ind2uce/3.2.46/ind2uceLanguage'
xmlns:parameter='http://www.iese.fraunhofer.de/ind2uce/3.2.46/parameter' xmlns:pip='http://www.iese.fraunhofer.de/ind2uce/3.2.46/pip' xmlns:function='http://www.iese.fraunhofer.de/ind2uce/3.2.46/function'
xmlns:constant='http://www.iese.fraunhofer.de/ind2uce/3.2.46/constant'
xmlns:event='http://www.iese.fraunhofer.de/ind2uce/3.2.46/event' xmlns:variableDeclaration="http://www.iese.fraunhofer.de/ind2uce/3.2.46/variableDeclaration" xmlns:variable='http://www.iese.fraunhofer.de/ind2uce/3.2.46/variable'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<variableDeclaration:boolean name="atIESE">
<or>
<pip:boolean method='urn:info:ind2uce-local:wificonnected' default='false'>
<parameter:string name='ssid' value='WLAN-mab' />
</pip:boolean>
<pip:boolean method='urn:info:ind2uce-local:wificonnected' default='false'>
<parameter:string name='ssid' value='wlan-extern' />
</pip:boolean>
<pip:boolean method='urn:info:ind2uce-local:networkconnected' default='false'>
<parameter:string name='description' value='AnyConnect' />
<parameter:string name='dns' value='iese.fhg.de' />
</pip:boolean>
</or>
</variableDeclaration:boolean>
<mechanism event='urn:action:ind2uce-local:evaluate'>
<then>
<modify method="bla" eventParameter="blubb" />
<modify method="bla" eventParameter="blubb" />
<execute action='urn:action:ind2uce-local:notification'>
<parameter:string name='message' value='You are now at IESE!' />
</execute>
</then>
</mechanism>
</policy>
\ No newline at end of file
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
<allow> <allow>
<modify> <modify>
<param:event name="latitude"> <param:event name="latitude">
<function:engine name="delete" /> <function:engine method="delete" />
</param:event> </param:event>
<param:event name="longitude"> <param:event name="longitude">
<function:engine name="delete" /> <function:engine method="delete" />
</param:event> </param:event>
</modify> </modify>
</allow> </allow>
...@@ -34,10 +34,10 @@ ...@@ -34,10 +34,10 @@
<allow> <allow>
<modify> <modify>
<param:event name="latitude"> <param:event name="latitude">
<function:engine name="delete" /> <function:engine method="delete" />
</param:event> </param:event>
<param:event name="longitude"> <param:event name="longitude">
<function:engine name="delete" /> <function:engine method="delete" />
</param:event> </param:event>
</modify> </modify>
</allow> </allow>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<policy xmlns="http://www.iese.fraunhofer.de/ind2uce/3.0.25/enforcementLanguage" xmlns:tns="http://www.iese.fraunhofer.de/ind2uce/3.0.25/enforcementLanguage" xmlns:param="http://www.iese.fraunhofer.de/ind2uce/3.0.25/param" <policy xmlns="http://www.iese.fraunhofer.de/ind2uce/3.0.25/enforcementLanguage" xmlns:tns="http://www.iese.fraunhofer.de/ind2uce/3.0.25/enforcementLanguage" xmlns:param="http://www.iese.fraunhofer.de/ind2uce/3.0.25/param"
xmlns:pip="http://www.iese.fraunhofer.de/ind2uce/3.0.25/pip" xmlns:function="http://www.iese.fraunhofer.de/ind2uce/3.0.25/function" xmlns:constant="http://www.iese.fraunhofer.de/ind2uce/3.0.25/constant" xmlns:pip="http://www.iese.fraunhofer.de/ind2uce/3.0.25/pip" xmlns:function="http://www.iese.fraunhofer.de/ind2uce/3.0.25/function" xmlns:constant="http://www.iese.fraunhofer.de/ind2uce/3.0.25/constant"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="urn:policy:a:b" description="Policy for Fleet PoC Use Case 1"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="urn:policy:ppe:b" description="Policy for Fleet PoC Use Case 1">
<preventiveMechanism id="decideOnStorageOfPositionUpdates"> <preventiveMechanism id="decideOnStorageOfPositionUpdates">
<description>Decides whether to store a position update coming from a vehicle.</description> <description>Decides whether to store a position update coming from a vehicle.</description>
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<condition> <condition>
<not> <not>
<function:contains> <function:contains>
<pip:list method="urn:pip:fleet:currentTripEqualsType" default="[]" ttlAmount="30" /> <pip:list method="urn:pip:ppe:currentTripEqualsType" default="[]" ttlAmount="30" />
<constant:float value="214" /> <constant:float value="214" />
</function:contains> </function:contains>
<!-- thingId is labeled as vehicleId --> <!-- thingId is labeled as vehicleId -->
...@@ -58,9 +58,9 @@ ...@@ -58,9 +58,9 @@
<condition> <condition>
<and> <and>
<not> <not>
<pip:boolean method="urn:pip:local:isAssignedDriver" default="false"> <pip:boolean method="urn:pip:ppe:isAssignedDriver" default="false">
<param:string name="userId"> <param:string name="userId">
<pip:string method="urn:pip:im:getUserName" default="UNKNOWN"> <pip:string method="urn:pip:ppe:getUserName" default="UNKNOWN">
<param:string name="contextId" /> <param:string name="contextId" />
</pip:string> </pip:string>
</param:string> </param:string>
...@@ -68,20 +68,20 @@ ...@@ -68,20 +68,20 @@
</not> </not>
<and> <and>
<!-- values of roleName are not known --> <!-- values of roleName are not known -->
<pip:boolean method="urn:pip:im:hasRole" default="false"> <pip:boolean method="urn:pip:ppe:hasRole" default="false">
<param:string name="contextId" /> <param:string name="contextId" />
<param:string name="roleName" value="FleetManager" /> <param:string name="roleName" value="FleetManager" />
<!-- FleetManager, Driver --> <!-- FleetManager, Driver -->
</pip:boolean> </pip:boolean>
<and> <and>
<pip:boolean method="urn:pip:local:isShowPrivateTripsAggregated" default="false"> <pip:boolean method="urn:pip:ppe:isShowPrivateTripsAggregated" default="false">
<param:string name="userName"> <param:string name="userName">
<pip:string method="urn:pip:im:getUserName" default="UNKNOWN"> <pip:string method="urn:pip:ppe:getUserName" default="UNKNOWN">
<param:string name="contextId" /> <param:string name="contextId" />
</pip:string> </pip:string>
</param:string> </param:string>
</pip:boolean> </pip:boolean>
<pip:boolean method="urn:pip:local:isVehicleStolen" default="false"> <pip:boolean method="urn:pip:ppe:isVehicleStolen" default="false">
<param:string name="vehicleId"> <param:string name="vehicleId">
<param:string name="thingId" /> <param:string name="thingId" />
</param:string> </param:string>
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
<param:event name="trips"> <param:event name="trips">
<function:engine method="aggregate"> <function:engine method="aggregate">
<param:string name="carStolenDate"> <param:string name="carStolenDate">
<pip:string method="urn:pip:local:getVehicleStolenDate" default=""> <pip:string method="urn:pip:ppe:getVehicleStolenDate" default="">
<param:string name="vehicleId"> <param:string name="vehicleId">
<param:string name="fasdlkf" /> <param:string name="fasdlkf" />
</param:string> </param:string>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<policy xmlns="http://www.iese.fraunhofer.de/ind2uce/3.0.25/enforcementLanguage" xmlns:tns="http://www.iese.fraunhofer.de/ind2uce/3.0.25/enforcementLanguage" xmlns:param="http://www.iese.fraunhofer.de/ind2uce/3.0.25/param" <policy xmlns="http://www.iese.fraunhofer.de/ind2uce/3.0.25/enforcementLanguage" xmlns:tns="http://www.iese.fraunhofer.de/ind2uce/3.0.25/enforcementLanguage" xmlns:param="http://www.iese.fraunhofer.de/ind2uce/3.0.25/param"
xmlns:pip="http://www.iese.fraunhofer.de/ind2uce/3.0.25/pip" xmlns:function="http://www.iese.fraunhofer.de/ind2uce/3.0.25/function" xmlns:constant="http://www.iese.fraunhofer.de/ind2uce/3.0.25/constant" xmlns:pip="http://www.iese.fraunhofer.de/ind2uce/3.0.25/pip" xmlns:function="http://www.iese.fraunhofer.de/ind2uce/3.0.25/function" xmlns:constant="http://www.iese.fraunhofer.de/ind2uce/3.0.25/constant"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="urn:policy:a:b" description="smallest valid detective"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="urn:policy:ppe:b" description="smallest valid detective">
<detectiveMechanism id="id1"> <detectiveMechanism id="id1">
<event action="urn:action:ppe:cr-writeData" /> <event action="urn:action:ppe:cr-writeData" />
<condition> <condition>
<true /> <true />
</condition> </condition>
<executeAction name="urn:action:bla:bla" /> <executeAction name="urn:action:ppe:bla" />
</detectiveMechanism> </detectiveMechanism>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<condition> <condition>
<true /> <true />
</condition> </condition>
<executeAction name="urn:action:bla:bla" /> <executeAction name="urn:action:ppe:bla" />
</detectiveMechanism> </detectiveMechanism>
</policy> </policy>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<policy xmlns="http://www.iese.fraunhofer.de/ind2uce/3.0.25/enforcementLanguage" xmlns:tns="http://www.iese.fraunhofer.de/ind2uce/3.0.25/enforcementLanguage" xmlns:param="http://www.iese.fraunhofer.de/ind2uce/3.0.25/param" <policy xmlns="http://www.iese.fraunhofer.de/ind2uce/3.0.25/enforcementLanguage" xmlns:tns="http://www.iese.fraunhofer.de/ind2uce/3.0.25/enforcementLanguage" xmlns:param="http://www.iese.fraunhofer.de/ind2uce/3.0.25/param"
xmlns:pip="http://www.iese.fraunhofer.de/ind2uce/3.0.25/pip" xmlns:function="http://www.iese.fraunhofer.de/ind2uce/3.0.25/function" xmlns:constant="http://www.iese.fraunhofer.de/ind2uce/3.0.25/constant" xmlns:pip="http://www.iese.fraunhofer.de/ind2uce/3.0.25/pip" xmlns:function="http://www.iese.fraunhofer.de/ind2uce/3.0.25/function" xmlns:constant="http://www.iese.fraunhofer.de/ind2uce/3.0.25/constant"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="urn:policy:a:b" description="smallest valid detective"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="urn:policy:ppe:b" description="smallest valid detective">
<preventiveMechanism id="decideOnStorageOfPositionUpdates"> <preventiveMechanism id="decideOnStorageOfPositionUpdates">
<event action="urn:action:ppe:cr-writeData"/> <event action="urn:action:ppe:cr-writeData"/>
......
<policy id="urn:policy:cs4:anonymizeTasksOfOthers" name="at IESE" description="Foremen can only see their own tasks in full detail. " xmlns="http://www.iese.fraunhofer.de/ind2uce/3.2.46/ind2uceLanguage"
xmlns:tns="http://www.iese.fraunhofer.de/ind2uce/3.2.46/ind2uceLanguage" xmlns:parameter="http://www.iese.fraunhofer.de/ind2uce/3.2.46/parameter" xmlns:pip="http://www.iese.fraunhofer.de/ind2uce/3.2.46/pip"
xmlns:function="http://www.iese.fraunhofer.de/ind2uce/3.2.46/function" xmlns:event="http://www.iese.fraunhofer.de/ind2uce/3.2.46/event" xmlns:constant="http://www.iese.fraunhofer.de/ind2uce/3.2.46/constant"
xmlns:variable="http://www.iese.fraunhofer.de/ind2uce/3.2.46/variable" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<mechanism event="urn:action:cs4:show-task">
<if>
<and>
<equals>
<pip:string method="urn:info:cs4:getRoleByUsername" default="">
<parameter:string name="userId">
<event:string eventParameter="user" jsonPathQuery="$.userId" default="" />
</parameter:string>
</pip:string>
<constant:string value="ROLE_USER" />
</equals>
<not>
<equals>
<event:string eventParameter="user" jsonPathQuery="$.userId" default="" />
<event:string eventParameter="task" jsonPathQuery="$.foreman.userId" default="" />
</equals>
</not>
</and>
<then>
<modify eventParameter="task" method="anagram" jsonPathQuery="$.expression">
<parameter:number name="percentage" value="100" />
</modify>
<modify eventParameter="task" method="replace" jsonPathQuery="$.name">
<parameter:object name="replaceWith" value="XXXX" />
</modify>
<modify eventParameter="task" method="delete" jsonPathQuery="$.budget" />
</then>
</if>
</mechanism>
</policy>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment