Skip to content

When a single ID has multiple meanings by given context #114

@koriym

Description

@koriym

For example, I need two account IDs and the amount of money to transfer money.
How do I represent this?

href+name
https://github.com/alps-io/profiles/blob/master/xml/alps-with-varying-rt-values.xml#L32

    <!-- Ontology -->
    <descriptor id="accountId" />
    <descriptor id="moneyAmount"  />

    <!-- Choreography -->
    <descriptor id="doTransfer" type="idempotent" rt="#User" >
        <descriptor href="#moneyAmount" />
        <descriptor href="#accountId" name="senderId" />
        <descriptor href="#accountId" name="receiverId" />
    </descriptor>

(Is it valid to include more than one of the same ID?)

id+href
https://github.com/koriym/app-state-diagram/pull/67

    <!-- Ontology -->
    <descriptor id="accountId" />
    <descriptor id="moneyAmount"  />

    <!-- Choreography -->
    <descriptor id="doTransfer" type="idempotent" rt="#User" >
        <descriptor href="#moneyAmount" />
        <descriptor id="senderId" href="#accountId"  />
        <descriptor id="receiverId" href="#accountId"  />
    </descriptor>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions