OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

tosca-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [tosca-comment] question about TOSCA Policy template


Allen, I just wanted to clarify that the TC is thinking of an XML Simple Profile, although resources and timing are far from assured. If you are interested in contributing to such an effort, then I urge you to consider joining OASIS and the TOSCA TC. 

Paul

-----Original Message-----
From: tosca-comment@lists.oasis-open.org [mailto:tosca-comment@lists.oasis-open.org] On Behalf Of Lipton, Paul C
Sent: Tuesday, October 27, 2015 11:09 PM
To: 何海龙 <sputnik_a@163.com>; tosca-comment@lists.oasis-open.org
Subject: RE: [tosca-comment] question about TOSCA Policy template

Hi Allen,



My apologies for the delay in response. Thank you for your comment, however the timing was difficult. Recently, the TOSCA TC has finished an intense effort to finalize our first public review document. That review period is over, but may I suggest that you examine that document, which you can find at https://urldefense.proofpoint.com/v2/url?u=http-3A__docs.oasis-2Dopen.org_tosca_TOSCA-2DSimple-2DProfile-2DYAML_v1.0_csprd01_TOSCA-2DSimple-2DProfile-2DYAML-2Dv1.0-2Dcsprd01.pdf&d=CwIGoQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=3UUaotXGpqHidtIBP1k_gYHXTeBFOTS36FpSS_-nzAk&m=G1rhEcY7bFG-n37BumK1LHFb_G8aVBl7fN49faH-CBI&s=9AA8V2doyRKOsjQrDjyDtrTEPFjTak3dpTFZ45_mVNc&e= . If you continue to have specific, actionable comments, then kindly repost to the TOSCA-comments list when the next public review is announced.



As you may know, the latest news is usually posted on our public page at https://urldefense.proofpoint.com/v2/url?u=https-3A__www.oasis-2Dopen.org_committees_tc-5Fhome.php-3Fwg-5Fabbrev-3Dtosca&d=CwIGoQ&c=_hRq4mqlUmqpqlyQ5hkoDXIVh6I6pxfkkNxQuL0p-Z0&r=3UUaotXGpqHidtIBP1k_gYHXTeBFOTS36FpSS_-nzAk&m=G1rhEcY7bFG-n37BumK1LHFb_G8aVBl7fN49faH-CBI&s=91ZY_9drIR8BywxGE3g60k9W8x1L_3Oja_VqCg_FH38&e= 



Regards,

Paul



-----Original Message-----

From: tosca-comment@lists.oasis-open.org [mailto:tosca-comment@lists.oasis-open.org] On Behalf Of ???

Sent: Friday, July 17, 2015 11:33 AM

To: tosca-comment@lists.oasis-open.org

Subject: [tosca-comment] question about TOSCA Policy template



Hi,



lately I am working on a project which requires to build up a policy engine based on TOSCA Policy template.

I checked the current TOSCA specification for the policy part and found that there is no details about how the policy template will be used or parsed.



As we know one policy can be defined as <condition, action> tuple, since my policy engine takes the policy definition as the input, which is in the form of TOSCA xml, thus I need to understand in the current policy template which part is the "condition" and which part is the "action"?



currently I understand the <Properties> in the policy template can be used to define action, and the policy type specific content in the policy template can be used to define condition; also I understand the policyLanguage in the policy type is used to decode the condition.



Please correct me if I am wrong. and what's the <PropertyConstraints> in the policy type is exactly used for? there is no example in the paper for this element.

Thank you!



35      <Policies>

36        <Policy name="xs:string"? policyType="xs:QName"

37                policyRef="xs:QName"?>

38          policy specific content ?

39        </Policy> +

40      </Policies> ?



01  <PolicyType name="xs:NCName"

02              policyLanguage="xs:anyURI"?

03              abstract="yes|no"?

04              final="yes|no"?

05              targetNamespace="xs:anyURI"?>

06    <Tags>

07      <Tag name="xs:string" value="xs:string"/> +

08    </Tags> ?

09   

10    <DerivedFrom typeRef="xs:QName"/> ?

11   

12    <PropertiesDefinition element="xs:QName"? type="xs:QName"?/> ?

13   

14    <AppliesTo>

15      <NodeTypeReference typeRef="xs:QName"/> +

16    </AppliesTo> ?

17      

18    policy type specific content ?

19   

20  </PolicyType>



01  <PolicyTemplate id="xs:ID" name="xs:string"? type="xs:QName">

02   

03    <Properties>

04      XML fragment

05    </Properties> ?

06   

07    <PropertyConstraints>

08      <PropertyConstraint property="xs:string"

09                          constraintType="xs:anyURI"> +

10        constraint ?

11      </PropertyConstraint>

12    </PropertyConstraints> ?

13   

14    policy type specific content ?

15   

16  </PolicyTemplate>



BR,

Allen



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]