1Workflow::Condition::HaUssUesrerC(o3n)tributed Perl DocuWmoernktfaltoiwo:n:Condition::HasUser(3)
2
3
4

NAME

6       Workflow::Condition::HasUser - Condition to determine if a user is
7       available
8

SYNOPSIS

10        # First setup the condition
11
12        <conditions>
13          <condition name="HasUser"
14                     class="Workflow::Condition::HasUser">
15            <param name="user_key" value="CurrentUser" />
16          </condition>
17          ...
18
19        # Next, attach it to an action
20
21        <state name="INITIAL">
22          <action name="create issue"
23                  resulting_state="CREATED">
24              <condition name="CurrentUser" />
25          </action>
26          ...
27
28        # Whenever you fetch available actions from state 'INITIAL' you must
29        # have the key 'CurrentUser' defined in the workflow context
30

DESCRIPTION

32       Simple -- possibly too simple -- condition to determine if a user
33       exists in a particular context key. Actually, it really only determines
34       if something exists in a key, but we needed a simple condition to ship
35       with the module.
36
37       Parameters
38
39       You can configure the condition with the following parameters:
40
41       ยท   user_key, optional
42
43           Key in workflow context to check for data. If not specified we use
44           'current_user'.
45
46       METHODS
47
48       #=head3 evaluate
49

SEE ALSO

51       Workflow::Condition
52
54       Copyright (c) 2004 Chris Winters. All rights reserved.
55
56       This library is free software; you can redistribute it and/or modify it
57       under the same terms as Perl itself.
58

AUTHORS

60       Chris Winters <chris@cwinters.com>
61
62
63
64perl v5.8.8                       2007-04-25   Workflow::Condition::HasUser(3)
Impressum