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

 


Help: OASIS Mailing Lists Help | MarkMail Help

tosca message

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


Subject: [OASIS Issue Tracker] Created: (TOSCA-53) How to represent "invariant "


How to represent "invariant "
-----------------------------

                 Key: TOSCA-53
                 URL: http://tools.oasis-open.org/issues/browse/TOSCA-53
             Project: OASIS Topology and Orchestration Specification for Cloud Applications (TOSCA) TC
          Issue Type: Improvement
    Affects Versions: CSD05
            Reporter: Paul Zhang


In CSD4, "properties defined by an Artifact Type are assummed to be invariant across the contexts in which corresponding artifacts are used". So, we can define a "const" attribute  to mean the corresponding element MUST be invariant. For example, an ArfifactType with PropertiesDefinition which cannot be invariant can be defined as: 

<ArtifactType name="RPMPackage">
     <DerivedFrom typeRef="ba:OSPackage"/>
    <PropertiesDefinition element="map:RPMPackageProperties" const="true"/>
</ArtifactType>

Additionally, this method can also cover the Mr. Tad Deffler [defta01@ca.com]'s suggestion, i.e. if a ServiceTemplate (or xxxType) developer does not want others to modify his/her definition, how to guarantee this? (details can be seen in the email of Mr. Tad Deffler). So, a NodeType element can be defined as 
<NodeType name="xs:NCName" targetNamespace="xs:anyURI"? abstract="yes|no"? final="yes|no"? const="yes|no"?>

A serviceTemplate element can be defined as 

	<ServiceTemplate id="xs:ID"
	                 name="xs:string"?
	                 targetNamespace="xs:anyURI"
	                 substitutableNodeType="xs:QName"?
                         const="yes|no"?> 

Other elements can be defined similarly. 


 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


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