80 likes | 243 Views
TOSCA 32. Author/ Email: Author's name/Author's email Version: V1.0(20YYMMDD). What does cascadingDeletion do?. cascadingDeletion is a property of RelationshipType
E N D
TOSCA 32 • Author/ Email: Author's name/Author's email • Version: V1.0(20YYMMDD)
What does cascadingDeletion do? • cascadingDeletionis a property of RelationshipType • cascadingDeletion: If set to “yes” the target of an instance of a Relationship Template of this RelationshipType is automatically deleted when the source of the instance of the Relationship Template is deleted AppServer integratedwith DBServer
Limitation • The attribute is just for deletion. There may exists other actions (e.g. suspend). • The direction of cascadingDeletionis “forward” (i.e. source -> target), so what about “backward” (i.e. target -> source)?
What we want to do • Add an element to RelationshipType <ActionTransfer direction=“forward|backward|bi-direction" targetAction="URI" sourceAction=" URI"> • ActionTransfer can cover cascadingDeletion <ActionTransfer direction="forward" targetAction="deletionURI" sourceAction="deletion URI"> • ActionTransfer can do more <ActionForwards direction="forward" targetAction="stopURI" sourceAction="stopURI"> • ActionTransfer canindicate directions <ActionForwards direction=“backward" targetAction="deletionURI" sourceAction="deletionURI"> Monitor WebServer AppServer AppServer
An example <RelationshipTypes> <RelationshipType id=“Integration” name=“Integrated With” cascadingDeletion=“Yes”> <RelationshipTypeProperties element="Qname” type="QName"?/> <ActionTransferCollection> <ActionTransfer direction=“Forward" targetAction="stopURI" sourceAction="stopURI"> <ActionTransfer direction=“Forward" targetAction="deletionURI" sourceAction="deletionURI"> </ActionTransferCollection> <InstanceStates><InstanceState state="anyURI“></InstanceStates> </RelationshipType> </RelationshipTypes>