Git Product home page Git Product logo

Comments (11)

mamund avatar mamund commented on September 20, 2024 1

Yes. And they is another way to think of this situation.

Many links could return the same result/resource.

from app-state-diagram.

koriym avatar koriym commented on September 20, 2024 1

"itemList can accept from any transition by users, factories or products but returns the same response." is also possible?

from app-state-diagram.

koriym avatar koriym commented on September 20, 2024

before
image

after
image

Multiple links are expressed as multiple arrows. SVG has a link in arrow, not only in the text label. The MVCtodo diagram is changed like this. @mamund Is this fine?

from app-state-diagram.

mamund avatar mamund commented on September 20, 2024

yes. this is looking closer to what i'd expected. -- thanks.

from app-state-diagram.

koriym avatar koriym commented on September 20, 2024

The arrows lose their hyperlinks, but I'm going to do it this way because I think it makes the diagram easier to see.

from app-state-diagram.

koriym avatar koriym commented on September 20, 2024

source code:

    home->todoList [label=<<table  border="0">
                       <tr><td align="left" href="http://example1.com">listAll (safe)</td></tr>
                       <tr><td align="left" href="http://example2.com">goRelated (safe)</td></tr>
                       <tr><td align="left" href="http://example3.com">listActive (safe)</td></tr>
                       </table>>];

related: https://stackoverflow.com/questions/41307496/graphviz-multiple-links-per-label

from app-state-diagram.

koriym avatar koriym commented on September 20, 2024

image

from app-state-diagram.

koriym avatar koriym commented on September 20, 2024

@mamund I realized that one transition requires multiple identities, which sometimes cannot be represented by a rel. This is necessary when there are different types and numbers of descriptors needed. For example, free and paid members require different arguments for the same transition.

from app-state-diagram.

mamund avatar mamund commented on September 20, 2024

ans here's another real possibility...

assume an ALPS document defines several types of lists (id="userlist", id="factoryList", id="productList:, etc.). now assume that same document defines resource that contains a list of items that could return differenty types of items...

...
{
  "id" : "itemList", 
  "type" : "semantic", 
  "descriptors" : [
    {"href" : "#userList"},
    {"href" :"#factoryList"},
    {"href" : "#productList"}
  ]
}
...

Now, the ALPS document can include the following...

...
[
  {"id" : "users", "type" : "safe", "rt" : "#itemList"},
  {"id" : "factories", "type" : "safe", "rt" : "#itemList"},
  {"id" : "products", "type" : "safe", "rt" : "#itemList"}
]
...

right?

from app-state-diagram.

koriym avatar koriym commented on September 20, 2024

itemList returns userList if users transition used and
itemList returns factories if factories transition used.

Do I understand?

from app-state-diagram.

mamund avatar mamund commented on September 20, 2024

from app-state-diagram.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.