Core
3.2
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
ErrorCodeWFL.php
Go to the documentation of this file.
1
<?php
2
/*
3
* @author Anakeen
4
* @package FDL
5
*/
6
/**
7
* Errors code used to checking workflows
8
* @class ErrorCodeWFL
9
* @see ErrorCode
10
* @brief List all error code for workflows class definition
11
*/
12
class
ErrorCodeWFL
13
{
14
/**
15
* @errorCode
16
* transition declaration must be an array
17
*/
18
const
WFL0200
=
'workflow transition is not an array for class %s'
;
19
/**
20
* @errorCode
21
* transition declaration must be an array
22
*/
23
const
WFL0201
=
'workflow transition unknow property %s for transition #%d in class %s (must be one of %s)'
;
24
/**
25
* @errorCode
26
* the model transition is required to declare a transition
27
*/
28
const
WFL0202
=
'workflow transition #%d property \'t\' is mandatory in class %s'
;
29
/**
30
* @errorCode
31
* The element of the $cycle must be an array()
32
*/
33
const
WFL0203
=
"workflow transition element at index %d must be an array in class %s (found %s instead)"
;
34
/**
35
* @errorCode
36
* transition are declared in a an array
37
* @code
38
* public $transitions = array(
39
self::T1 => array(
40
"m1" => "SendMailToVeto",
41
"ask" => array(
42
"wan_idveto",
43
"wan_veto"
44
) ,
45
"nr" => true
46
) ,
47
* @endcode
48
*/
49
const
WFL0100
=
'workflow transition model is not an array for class %s'
;
50
/**
51
* @errorCode
52
* field use for transition declaration must be valid
53
*/
54
const
WFL0101
=
'workflow transition unknow property %s for transition model %s in class %s (must be one of %s)'
;
55
/**
56
* @errorCode
57
* number of transition model and states are limited
58
* Considers that you have 1500 points to determine transition and states.
59
* a transition cost 4 points and a state 12 points.
60
* generally you could have around 200 transitions for 60 states
61
*/
62
const
WFL0102
=
'workflow %s number of transition model and states (found %d) exceed limit (max is %s)'
;
63
/**
64
* @errorCode
65
* declaration of ask must be in an array
66
* @code
67
* public $transitions = array(
68
self::T1 => array(
69
"ask" => array(
70
"wan_idveto",
71
"wan_veto"
72
)
73
) ,
74
* @endcode
75
*/
76
const
WFL0103
=
'workflow transition ask is not an array for transition model %s in class %s'
;
77
/**
78
* @errorCode
79
* ask array must reference workflow attributes
80
*/
81
const
WFL0104
=
'unknow attribute %s in workflow transition ask in class %s'
;
82
/**
83
* @errorCode
84
* m1 property must be a worflow method
85
*/
86
const
WFL0105
=
'workflow unknow m1 method %s for transition model %s in class %s'
;
87
/**
88
* @errorCode
89
* m2 property must be a worflow method
90
*/
91
const
WFL0106
=
'workflow unknow m2 method %s for transition model %s in class %s'
;
92
/**
93
* @errorCode
94
* nr property is a boolean
95
*/
96
const
WFL0107
=
'workflow transition nr property is not a boolean for transition model %s in class %s'
;
97
/**
98
* @errorCode
99
* m0 property must be a worflow method
100
*/
101
const
WFL0108
=
'workflow unknow m0 method %s for transition model %s in class %s'
;
102
/**
103
* @errorCode
104
* m3 property must be a worflow method
105
*/
106
const
WFL0109
=
'workflow unknow m3 method %s for transition model %s in class %s'
;
107
/**
108
* @errorCode
109
* The transition element must have a key and an array() value
110
*/
111
const
WFL0110
=
"transition element with key '%s' (index %d) must be an array in class %s (found %s instead)"
;
112
/**
113
* @errorCode
114
*
115
*/
116
const
WFL0050
=
'workflow transition or state key %s syntax error for %s (limit to %d alpha characters)'
;
117
/**
118
* @errorCode
119
* if family is declared as workflow, classname field is required
120
*/
121
const
WFL0001
=
'workflow class name is empty'
;
122
/**
123
* @errorCode
124
* the name of a workflow class must be a valid PHP name class
125
*/
126
const
WFL0002
=
'class name %s not valid'
;
127
/**
128
* @errorCode
129
* PHP file is not valid
130
*/
131
const
WFL0003
=
'PHP parsing %s'
;
132
/**
133
* @errorCode
134
* cannot find a class named as it is needed by workflow
135
*/
136
const
WFL0004
=
'workflow class %s not found'
;
137
/**
138
* @errorCode
139
* the file of the workflow PHP class is not found
140
*/
141
const
WFL0005
=
'file name "%s" for %s not found'
;
142
/**
143
* @errorCode
144
* the workflow class must be a descendant of WDoc class
145
*/
146
const
WFL0006
=
'workflow class %s not inherit from WDoc class'
;
147
/**
148
* @errorCode
149
* the attrPrefix must not be empty
150
*/
151
const
WFL0007
=
'workflow : missing attrPrefix definition for %s class'
;
152
/**
153
* @errorCode
154
* the attrPrefix must be composed of just few characters
155
*/
156
const
WFL0008
=
'workflow : syntax error attrPrefix for %s class (limit to 15 alpha characters)'
;
157
/**
158
* @errorCode
159
* activies label is not an array
160
*/
161
const
WFL0051
=
'workflow activies labels is not an array for class %s'
;
162
/**
163
* @errorCode
164
* activies label not match any state
165
*/
166
const
WFL0052
=
'unknow state %s for the activity %s for class %s'
;
167
}
ErrorCodeWFL\WFL0200
const WFL0200
Definition:
ErrorCodeWFL.php:18
ErrorCodeWFL\WFL0102
const WFL0102
Definition:
ErrorCodeWFL.php:62
ErrorCodeWFL\WFL0201
const WFL0201
Definition:
ErrorCodeWFL.php:23
ErrorCodeWFL\WFL0109
const WFL0109
Definition:
ErrorCodeWFL.php:106
ErrorCodeWFL\WFL0051
const WFL0051
Definition:
ErrorCodeWFL.php:161
ErrorCodeWFL\WFL0105
const WFL0105
Definition:
ErrorCodeWFL.php:86
ErrorCodeWFL\WFL0106
const WFL0106
Definition:
ErrorCodeWFL.php:91
ErrorCodeWFL\WFL0001
const WFL0001
Definition:
ErrorCodeWFL.php:121
ErrorCodeWFL\WFL0008
const WFL0008
Definition:
ErrorCodeWFL.php:156
ErrorCodeWFL\WFL0004
const WFL0004
Definition:
ErrorCodeWFL.php:136
ErrorCodeWFL\WFL0101
const WFL0101
Definition:
ErrorCodeWFL.php:54
ErrorCodeWFL\WFL0203
const WFL0203
Definition:
ErrorCodeWFL.php:33
ErrorCodeWFL\WFL0107
const WFL0107
Definition:
ErrorCodeWFL.php:96
ErrorCodeWFL\WFL0103
const WFL0103
Definition:
ErrorCodeWFL.php:76
ErrorCodeWFL\WFL0052
const WFL0052
Definition:
ErrorCodeWFL.php:166
ErrorCodeWFL\WFL0100
const WFL0100
Definition:
ErrorCodeWFL.php:49
ErrorCodeWFL\WFL0002
const WFL0002
Definition:
ErrorCodeWFL.php:126
ErrorCodeWFL\WFL0003
const WFL0003
Definition:
ErrorCodeWFL.php:131
ErrorCodeWFL\WFL0202
const WFL0202
Definition:
ErrorCodeWFL.php:28
ErrorCodeWFL\WFL0104
const WFL0104
Definition:
ErrorCodeWFL.php:81
ErrorCodeWFL\WFL0108
const WFL0108
Definition:
ErrorCodeWFL.php:101
ErrorCodeWFL\WFL0006
const WFL0006
Definition:
ErrorCodeWFL.php:146
ErrorCodeWFL\WFL0050
const WFL0050
Definition:
ErrorCodeWFL.php:116
ErrorCodeWFL\WFL0110
const WFL0110
Definition:
ErrorCodeWFL.php:111
ErrorCodeWFL\WFL0007
const WFL0007
Definition:
ErrorCodeWFL.php:151
ErrorCodeWFL\WFL0005
const WFL0005
Definition:
ErrorCodeWFL.php:141
ErrorCodeWFL
List all error code for workflows class definition.
Definition:
ErrorCodeWFL.php:12
← centre documentaire
© anakeen