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] Commented: (TOSCA-59) ArtifactType derived rule improvement


    [ http://tools.oasis-open.org/issues/browse/TOSCA-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31482#action_31482 ] 

Ken Zink commented on TOSCA-59:
-------------------------------

We need to be clear about the substitution rule(s) if there are multiple possible substitutions of the same artifact. E.g., more than one node template references the same deployment artifact. (Last one wins?)


> ArtifactType derived rule improvement 
> --------------------------------------
>
>                 Key: TOSCA-59
>                 URL: http://tools.oasis-open.org/issues/browse/TOSCA-59
>             Project: OASIS Topology and Orchestration Specification for Cloud Applications (TOSCA) TC
>          Issue Type: Improvement
>          Components: Spec
>    Affects Versions: CSD05
>            Reporter: Paul Zhang
>
> It is stated in the specification that a deployment artifact specified with the Node Template under definition overrides any deployment artifact of the same name and the same type of the referenced Artifact Template specified with the Node Type given as value of the type attribute of the Node Template under definition. Consider the following case.
> <ServiceTemplate id="myExample" name="My Service"
> xmlns: ba="http://www.example.com/BaseArtifactTypes";>
> <Import importType="http://docs.oasis-open.org/tosca/ns/2011/12";  
> Namespace="http://www.example.com/BaseArtifactTypes"/>
> <NodeTemplate id="exampleTemplate" nodeType="A"> 
> ......
> <DeploymentArtifacts>
> 		<DeploymentArtifact name="exampleDA" 
> artifactType="http://www.example.com/ns
> /tosca/2011/12/DeploymentArtifactTypes
> / RPMPackage 
> artifactRef=" RPMPackageTemplate">
> 			</DeploymentArtifact>
> 	</DeploymentArtifacts>
> </NodeTemplate> 
> <NodeType name="A"> 
> ......
> <DeploymentArtifacts>
> 		<DeploymentArtifact name="exampleDA" 
> artifactType="http://www.example.com/ns
> /tosca/2011/12/DeploymentArtifactTypes
> /OSPackage" >
> 			</DeploymentArtifact>
> 		</DeploymentArtifacts>
> </NodeType>
> <ArtifactTypes>
> 	<ArtifactType name=" RPMPackage">
> 		<DerivedFrom typeRef=" ba:OSPackage"/>
> 	......
> 	<ArtifactType>
> 	......
> </ArtifactTypes>
> </ServiceTemplate>
> In the above case, the Deployment Artifact specified in the Node Template cannot substitute the Deployment Artifact specified in the Node Type, although they have the same name and the artifactType of the former one is derived from the artifactType of the latter one. So I suggest making some modification to the statements about overriding rules in the specification as following.
> "Note, that a deployment artifact specified with the Node Template under definition overrides any deployment artifact of the same name and the same artifactType (or any artifactType this artifactType is derived from) of the referenced Artifact Template specified with the Node Type given as value of the artifactType attribute of the Node Template under definition."
> This overriding rule should also be applied to the Implementation Artifact as well.
> "Note, that an implementation artifact specified with the Node Template under definition overrides any implementation artifact with the same operationName and the same artifactType (or any artifactType this artifactType is derived from) of the referenced Artifact Template specified with the Node Type given as value of the artifactType attribute of the Node Template under definition."

-- 
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]