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


Help: OASIS Mailing Lists Help | MarkMail Help

sca-assembly message

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

Subject: [ASSEMBLY-232] ASM_10002 related policy definition should be attached tocomposite model - Proposal


Here is a proposal to resolve Issue 232:

a) Modify the composite TEST_ASM_10002 to attach the PolicySet "PolicySet1" in the places where the Fred intent is used, to handle the Direct Attachment case:

<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
    <component name="TestClient">
                <implementation.composite name="test:TestClient_0002"/>
                <service name="TestInvocation">
                        <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(TestInvocation)"/>
                <!-- Reference requires a user-defined intent -->
        <reference name="reference1" target="TestComponent1/Service1" requires="test:Fred" policySets="test:PolicySet1"/>    
        <property name="testName">ASM_10002</property>

    <component name="TestComponent1">
                <implementation.composite name="test:TestComposite1"/>
                <!-- Service requires same user-defined intent -->
        <service name="Service1" requires="test:Fred" policySets="test:PolicySet1">
                <interface.wsdl interface="http://test.sca.oasisopen.org/#wsdl.porttype(Service1)"/>
        <property name="serviceName">service1</property>


b) Add externalAttachment elements in the definitions.xml file in the General contribution to attach the PolicySet1 policy set to services & references which are marked
with the Fred intent, which handles the externalAttachment case:

<definitions         xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"

   <!-- A user-defined intent for the purposes of testing the intent resolution mechanism  -->
   <intent name="Fred" constrains="sca:binding" intentType="interaction"/>
   <!-- A policySet which claims to satisfy the user-defined intent "Fred" -->
   <policySet name="PolicySet1" provides="test:Fred" appliesTo="//service|//reference">
      <!-- This policySet intentionally left empty -->
      <!-- ...it is valid for a policySet to contain no concrete policy statements -->
   <!-- external attachment of the policy set to places where the intent is specified -->
   <externalAttachment policySets="test:PolicySet1" attachTo="//sca:reference[IntentRefs('Fred')]"/>
   <externalAttachment policySets="test:PolicySet1" attachTo="//sca:service[IntentRefs('Fred')]"/>

Yours,  Mike.

Strategist - Emerging Technologies, SCA & SDO.
Co Chair OASIS SCA Assembly TC.
IBM Hursley Park, Mail Point 146, Winchester, SO21 2JN, Great Britain.
Phone & FAX: +44-1962-818014    Mobile: +44-7802-467431  
Email:  mike_edwards@uk.ibm.com

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU

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