Code Monkey home page Code Monkey logo

automatonymous's Introduction

automatonymous's People

Contributors

alexeyzimarev avatar andymac4182 avatar chrisblock avatar damirainullin avatar drusellers avatar greybird avatar haf avatar igor-toporet avatar kernelith avatar phatboyg avatar tditiecher avatar webprofusion-chrisc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

automatonymous's Issues

Multiple Actors

Hi,

I was wondering if automatonymous can support multple different actors.
For example, if i had a StateMachine that represented authorizing a timesheet.
You'd have 2 different people, the line manager and the worker.

Worker can: Submit, Update
Line Manager can: Authorize, Reject

So I'd like to be able to ask the StateMachine, what are the possible actions for the Worker?
So perhaps:

State = Saved
Worker Can: Submit
Line Manager can: []

State = Submitted
Worker Can: []
Line Manager can: Authorize, Reject

Does that make sense?

After Event

In addition to Enter and Leave, consider an After event that is trigger after the state has become active...

Support Audit Trail

Record an audit trail of state transitions, including a timestamp of when the transition occurred and which event caused the transition.

Keep the details of the event? Might be a lot of data, so consider two levels of auditing I guess.

Dynamic State Properties

Provide dynamic properties on the engine to match states that return true if the instance is in that state.

machine.Approved(instance) - kinda strange I guess.

instance.Approved - again, with a dynamic target places on the instance, which seems sorta icky if the machine is not known.

Just a thought.

Dynamic Event Methods

Support dynamic, allowing events to be raised using the event name as a method invocation.

Something like:

machine.Approve(instance) - Event = Approve
instance.Approve() - could be done if instance implemented a dynamic target (optional, seems to confuse responsibilities)

supportTicketWorkflow.Close(ticket);

Just idea...

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.