Comments (6)
@3xxx In simple cases, the following is an example recommended structure.
Document Type : docType1
Document States : [
docState1, docState2, docState3, docState4 // for example
]
Document Actions : [
docAction12, docAction23, docAction34 // for the above document states
]
Document Type State Transitions : [
docState1 --docAction12--> docState2,
docState2 --docAction23--> docState3,
docState3 --docAction34--> docState4,
]
Access Contexts : [
accCtx1, accCtx2 // for example
]
Workflow : {
Name : wFlow1,
Initial State : docState1
}
Nodes : [
node1: {
Document Type : docType1,
Workflow : wFlow1,
Node Type : NodeTypeBegin, // note this
From State : docState1,
Access Context : accCtx1,
},
node2: {
Document Type : docType1,
Workflow : wFlow1,
Node Type : NodeTypeLinear, // note this
From State : docState2,
Access Context : accCtx2, // a different context
},
node3: {
Document Type : docType1,
Workflow : wFlow1,
Node Type : NodeTypeEnd, // note this
From State : docState3,
Access Context : accCtx1,
},
]
With the above setup, you can dispatch document events to the workflow appropriately. With each event, the workflow moves along, as defined.
from flow.
@3xxx : Please allow me until Saturday to respond. Thanks.
from flow.
thank you.I add transitions add more than 3 nodes,then it is working.I draw them like this:
from flow.
@3xxx I have been unable to revisit this over the weekend. Is it working now, after your additions? Please let me know.
from flow.
Thank u.And it is working now.
from flow.
Great! Thanks for confirming.
from flow.
Related Issues (20)
- How can I run the workflow , such as: flow.Run(), flow.netStep() ? When I have run [ Documents.New ] and [ Documents.setState ] , there is not data in tabale [wf_documents_001] . HOT 14
- There is a bug, workflow.go[line: 371], less a '?'
- How can I add data to datatable [wf_docstate_transitions] ? HOT 1
- where is the step history of the workflow ? HOT 1
- How can I get the next stateId or eventId of the document? HOT 6
- Check group id is singleton when create a new event? HOT 2
- Can you perfect the example again? HOT 2
- Why is unique(doctype_id, docstate_id), but not unique(doctype_id, docstate_id, ac_id)? HOT 10
- A flow test (vue.js+element+vue-element-extends+beego) HOT 3
- Do you have plans to provide a version that supports sqlite databases? HOT 6
- The node which belongs to NodeTypeEnd should refuse the requests to apply event. HOT 6
- Tx is nil bug!! HOT 1
- query the event application history HOT 4
- flow-ui online HOT 1
- Can you make a easy turtorial? HOT 7
- Can't delete groups which received messages HOT 3
- Example for creating some workflow is missing HOT 1
- Mailbox should include the message time. HOT 1
- Stalled HOT 3
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 flow.