# workflow plugin?

**URL:** <https://discuss.rubyonrails.org/t/workflow-plugin/28343>\
**Category:** rubyonrails-talk\
**Created:** [April 21, 2008, 11:49pm UTC](https://discuss.rubyonrails.org/t/workflow-plugin/28343 "2008-04-21T23:49:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greg\_H](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@Greg\_H](https://discuss.rubyonrails.org/u/Greg_H)\
**Post date:** [April 21, 2008, 11:49pm UTC](https://discuss.rubyonrails.org/t/workflow-plugin/28343/1 "2008-04-21T23:49:09Z")

</div>

Hi,

Is there a workflow plugin that exists for Rails? That is something that provides a workflow framework around how to manage state changes for an object/model (i.e. think of a complex state diagram that represents states and possible paths between states for a specific object/model).

Tks

---

<div class="post-metadata">

**Author:** ![Jodi1](https://avatars.discourse-cdn.com/v4/letter/j/bb73d2/32.png) [@Jodi1](https://discuss.rubyonrails.org/u/Jodi1)\
**Post date:** [April 21, 2008, 11:52pm UTC](https://discuss.rubyonrails.org/t/workflow-plugin/28343/2 "2008-04-21T23:52:25Z")

</div>

Greg -

---

<div class="post-metadata">

**Author:** ![Greg\_H](https://avatars.discourse-cdn.com/v4/letter/g/f475e1/32.png) [@Greg\_H](https://discuss.rubyonrails.org/u/Greg_H)\
**Post date:** [April 22, 2008, 3:01am UTC](https://discuss.rubyonrails.org/t/workflow-plugin/28343/3 "2008-04-22T03:01:06Z")

</div>

thanks - I’m looking for something that supports creating validations back to the user if they try to make an update that doesn’t satisfy state criteria. For example if I have a model for personal expenses (“Expense”) and that if I want to transition it from PAID to BANK\_RECONCILED then I was to make sure that the BANK\_RECONCILED\_DATE field is populated before allowing this to proceed. So perhaps I really want something like:

- User updates an Expense and changes the status to BANK\_RECONCILED but doesn’t add a BANK\_RECONCILED\_DATE
- model update sees change in status and calls the “bank\_reconciled!” action
- this action either works, or else provides a set of validations back

Is this a reasonable approach? Or do people think it would be best to handle this with the normal Rails basic validation approach (i.e. and not use “acts\_as\_statemachine”)

---

<div class="post-metadata">

**Author:** ![Tim\_Uckun](https://avatars.discourse-cdn.com/v4/letter/t/3bc359/32.png) [@Tim\_Uckun](https://discuss.rubyonrails.org/u/Tim_Uckun)\
**Post date:** [April 22, 2008, 4:31am UTC](https://discuss.rubyonrails.org/t/workflow-plugin/28343/4 "2008-04-22T04:31:50Z")

</div>

Maybe this will provide some functionality you are looking for.

[http://openwferu.rubyforge.org/](http://openwferu.rubyforge.org/)
