+<?xml version="1.0" encoding="UTF-8"?>\r
+<wsag:Agreement \r
+ xmlns:wsag="http://www.ggf.org/namespaces/ws-agreement"\r
+ xmlns:sla="http://sla.atos.eu"\r
+ AgreementId="agreement02">\r
+\r
+ <wsag:Name>ExampleAgreement</wsag:Name>\r
+ <wsag:Context>\r
+ <wsag:AgreementInitiator>RandomClient</wsag:AgreementInitiator>\r
+ <wsag:AgreementResponder>provider-prueba</wsag:AgreementResponder>\r
+ <!--\r
+ The AgreementResponder (in this case) is mandatory if slagui is multi service provider\r
+ -->\r
+ <wsag:ServiceProvider>AgreementResponder</wsag:ServiceProvider>\r
+ <wsag:ExpirationTime>2014-03-07T12:00:00</wsag:ExpirationTime>\r
+ <wsag:TemplateId>contract-template-2007-12-04</wsag:TemplateId>\r
+ <sla:Service>ExampleService</sla:Service>\r
+ </wsag:Context>\r
+ <wsag:Terms>\r
+ <wsag:All>\r
+ <!-- FUNCTIONAL DESCRIPTION -->\r
+ <wsag:ServiceDescriptionTerm wsag:Name="SDTName1" wsag:ServiceName="ServiceName">\r
+ DSL expression\r
+ </wsag:ServiceDescriptionTerm>\r
+ <wsag:ServiceDescriptionTerm wsag:Name="SDTName2" wsag:ServiceName="ServiceName">\r
+ DSL expression\r
+ </wsag:ServiceDescriptionTerm>\r
+ \r
+ <!-- OPTIONAL SERVICE REFERENCE -->\r
+ \r
+ <!-- OPTIONAL SERVICE PROPERTIES : non funcional properties-->\r
+ <wsag:ServiceProperties wsag:Name="NonFunctional" wsag:ServiceName="ServiceName">\r
+ <wsag:Variables>\r
+ <wsag:Variable wsag:Name="ResponseTime" wsag:Metric="xs:double">\r
+ <wsag:Location>qos:ResponseTime</wsag:Location>\r
+ </wsag:Variable>\r
+ <wsag:Variable wsag:Name="Performance" wsag:Metric="xs:double">\r
+ <wsag:Location>qos:Performance</wsag:Location>\r
+ </wsag:Variable>\r
+ </wsag:Variables>\r
+ </wsag:ServiceProperties>\r
+ <wsag:GuaranteeTerm Name="GT_ResponseTime">\r
+ <wsag:ServiceScope ServiceName="ServiceName">/operation1</wsag:ServiceScope>\r
+ <wsag:ServiceScope ServiceName="ServiceName">/operation2</wsag:ServiceScope>\r
+ <!-- The qualifying conditions that must be met before the guarantee is evaluated -->\r
+ <!-- \r
+ <wsag:QualifyingCondition>state EQ 'ready'</wsag:QualifyingCondition>\r
+ -->\r
+ <wsag:ServiceLevelObjective>\r
+ <wsag:KPITarget>\r
+ <wsag:KPIName>ResponseTime</wsag:KPIName> <!-- same name as property for the moment -->\r
+ <wsag:CustomServiceLevel>{"constraint" : "ResponseTime BETWEEN (0,0.9)"}</wsag:CustomServiceLevel> <!-- the ServiceProperty is referenced here -->\r
+ </wsag:KPITarget>\r
+ </wsag:ServiceLevelObjective>\r
+ </wsag:GuaranteeTerm>\r
+ <wsag:GuaranteeTerm Name="GT_Performance">\r
+ <wsag:ServiceScope ServiceName="ServiceName"/>\r
+ <wsag:ServiceLevelObjective>\r
+ <wsag:KPITarget>\r
+ <wsag:KPIName>Performance</wsag:KPIName> <!-- same name as property for the moment -->\r
+ <wsag:CustomServiceLevel>{"constraint" : "Performance BETWEEN (0.1,1)"}</wsag:CustomServiceLevel>\r
+ </wsag:KPITarget>\r
+ </wsag:ServiceLevelObjective>\r
+ <wsag:BusinessValueList>\r
+ <wsag:Important>3</wsag:Important> <!-- optional importance (integer) -->\r
+ <wsag:Penalty>\r
+ <wsag:AssessmentInterval>\r
+ <wsag:Count>10</wsag:Count>\r
+ </wsag:AssessmentInterval>\r
+ <wsag:ValueUnit>EUR</wsag:ValueUnit>\r
+ <wsag:ValueExpression>99</wsag:ValueExpression>\r
+ </wsag:Penalty>\r
+ \r
+ <wsag:Reward></wsag:Reward>\r
+ <wsag:Preference></wsag:Preference>\r
+ <wsag:CustomBusinessValue></wsag:CustomBusinessValue>\r
+ </wsag:BusinessValueList>\r
+ </wsag:GuaranteeTerm>\r
+ </wsag:All>\r
+ </wsag:Terms>\r
+</wsag:Agreement>\r