Comments (11)
Yes. And they is another way to think of this situation.
Many links could return the same result/resource.
from app-state-diagram.
"itemList can accept from any transition by users, factories or products but returns the same response." is also possible?
from app-state-diagram.
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.
yes. this is looking closer to what i'd expected. -- thanks.
from app-state-diagram.
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.
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.
from app-state-diagram.
@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.
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.
itemList
returns userList
if users
transition used and
itemList
returns factories
if factories
transition used.
Do I understand?
from app-state-diagram.
from app-state-diagram.
Related Issues (20)
- Test coverage 100%
- ASD is rendered in multiple modes
- Change assert to an exception with an explanation
- Suport Ignore tag filter HOT 1
- InvalidHrefException is thrown when the type is wrong
- Simple parsing exception message
- InvalidJsonException is thrown when the property is not exist. HOT 2
- Inconsistent capitalization of URLs in generated links HOT 1
- Include ALPS title property in INDEX.HTML document HOT 1
- No timeout in watch mode HOT 1
- ARM platform support HOT 1
- Avoid composer time-out
- docker pullの実行結果を非表示
- Improve mode UI
- Remove 'labelType' from configuration
- Dump Workflow ASD HOT 1
- ツールチップにHTMLタグが入る場合がある HOT 2
- ダイアグラムのビュー選択メニューがブラウザによって大きさが異なる
- Choreographyに設定したtitle属性がASDで表示されない
- 2つのALPSファイルを同時にローカルプレビューしたい HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from app-state-diagram.