[rt-users] Lifecycle statuses

Matt Zagrabelny mzagrabe at d.umn.edu
Mon Jan 11 12:55:17 EST 2016


On Mon, Jan 11, 2016 at 11:46 AM, Max McGrath <mmcgrath at carthage.edu> wrote:

> I was actually ready to move forward with the multi-word statuses until I
> got to the transitions area of the Lifecycle.  Would I just wrap a
> multi-word status is single quotes in the transitions area?
>
>     Set( %Lifecycles, orders => {
>         # ...,
>         transitions => {
>             ''          => [qw(pending processing declined)],
>             pending     => [qw(processing declined deleted)],
>             processing  => [qw(pending declined delivery delivered deleted)],
>             delivery    => [qw(pending delivered returned deleted)],
>             delivered   => [qw(pending returned deleted)],
>             returned    => [qw(pending delivery deleted)],
>             deleted     => [qw(pending processing delivered delivery returned)],
>         },
>         # ...,
>     });
>
>
The whole Lifecycles datastructure is just hash and array references. Here
is a contrived excerpt:

transitions => {
    'really hungry' => [
        'fatally starved',
        'eating food',
    ],
    'eating food' => [
        'sleeping it off',
        'having dessert',
    ],
},

-m
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20160111/f93c1c14/attachment.htm>


More information about the rt-users mailing list