Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render state activities and guards #9

Closed
vstirbu opened this issue Jan 18, 2018 · 1 comment
Closed

Render state activities and guards #9

vstirbu opened this issue Jan 18, 2018 · 1 comment
Projects

Comments

@vstirbu
Copy link
Owner

vstirbu commented Jan 18, 2018

The fsm-as-promised library allows defining activities and guards. The extension should be able to render them:

const fsm = require('fsm-as-promised');

const extension = fsm({
  initial: 'first',
  events: [
    { name: 'event', from: 'first', to: 'second' },
    { name: 'activity', from: 'second' },
  ],
  callbacks: {
    onleavefirst: function exitguard() {},
    onentersecond: function entryguard1() {},
    onenteredsecond: function entryguard2() {},
  }
});
@vstirbu vstirbu added this to In Progress in Kanban Jan 18, 2018
@vstirbu
Copy link
Owner Author

vstirbu commented Jan 18, 2018

Fixed in #10

screen shot 2018-01-18 at 20 48 54

@vstirbu vstirbu closed this as completed Jan 18, 2018
Kanban automation moved this from In Progress to Done Jan 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Kanban
  
Done
Development

No branches or pull requests

1 participant