GithubHelp home page GithubHelp logo

Hi,can you help me a example? about flow HOT 6 CLOSED

js-ojus avatar js-ojus commented on June 27, 2024
Hi,can you help me a example?

from flow.

Comments (6)

js-ojus avatar js-ojus commented on June 27, 2024 1

@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.

js-ojus avatar js-ojus commented on June 27, 2024

@3xxx : Please allow me until Saturday to respond. Thanks.

from flow.

3xxx avatar 3xxx commented on June 27, 2024

thank you.I add transitions add more than 3 nodes,then it is working.I draw them like this:
flow

from flow.

js-ojus avatar js-ojus commented on June 27, 2024

@3xxx I have been unable to revisit this over the weekend. Is it working now, after your additions? Please let me know.

from flow.

3xxx avatar 3xxx commented on June 27, 2024

Thank u.And it is working now.

from flow.

js-ojus avatar js-ojus commented on June 27, 2024

Great! Thanks for confirming.

from flow.

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.