workflow icon indicating copy to clipboard operation
workflow copied to clipboard

Ruby finite-state-machine-inspired API for modeling workflow

Results 13 workflow issues
Sort by recently updated
recently updated
newest added

I'd like to run a callback when an object enters its initial state. For example: ```ruby class Article include Workflow workflow do state :new end def on_new_entry puts 'entered new'...

Will fix problems like #194 1. implement preprocessing asciidoctor files using using https://libraries.io/rubygems/asciidoctor-reducer as mentioned in https://gist.github.com/dcode/0cfbf2699a1fe9b46ff04c41721dda74?permalink_comment_id=3431647#gistcomment-3431647 to work around missing support for includes in GitHub and possible Yard/Rubydocs 2....

This allows access to event arguments when we're evaluating which event to run in the scope of ``` state :off event :turn_on, :transition_to => :on, :if => :sufficient_battery_level? event :turn_on,...

By pulling in that dependency, my understanding is you cannot release this code under the MIT license. https://github.com/ioquatix/graphviz is an alternative using the MIT license.

Hi! In my use case I see a need (sometime in future) to add possibility for users to customize the workflow. Ignoring some states is easy enough by conditional transitions....

how can I go in after the fact and change the names of the workflow steps?

The thinkingsphinx gem is used to connect rails model with the sphinx search engine. We are using realtime indexes which require that a call be made when the data changes...

It seems that you can check if the object object/workflow is in a particular state by calling a magic `state_name?` method. Unless I'm missing something, all I see in the...

ArgumentError: edge attribute 'button_color' invalid ``` state :requested do event :invite, transitions_to: :invited event :reject, transitions_to: :rejected, meta: { button_color: 'alert' } event :withdraw_request, transitions_to: :new end ```