Public Member Functions | |
ActivityManager ($db) | |
get_error () | |
add_activity_role ($activityId, $roleId) | |
get_activity_roles ($activityId) | |
remove_activity_role ($activityId, $roleId) | |
transition_exists ($pid, $actFromId, $actToId) | |
add_transition ($pId, $actFromId, $actToId) | |
remove_transition ($actFromId, $actToId) | |
remove_activity_transitions ($pId, $aid) | |
get_process_transitions ($pId, $actid=0) | |
activity_is_auto_routed ($actid) | |
get_process_activities ($pId) | |
build_process_graph ($pId) | |
validate_process_activities ($pId) | |
validate_process_sources ($pid) | |
activity_name_exists ($pId, $name) | |
get_activity ($pId, $activityId) | |
list_activities ($pId, $offset, $maxRecords, $sort_mode, $find, $where='') | |
remove_activity ($pId, $activityId) | |
replace_activity ($pId, $activityId, $vars) | |
set_interactivity ($pId, $actid, $value) | |
set_autorouting ($pId, $actid, $value) | |
compile_activity ($pId, $activityId) | |
Public Attributes | |
$error = '' |
Definition at line 11 of file ActivityManager.php.
|
Constructor takes a PEAR::Db object to be used to manipulate activities in the database. Definition at line 18 of file ActivityManager.php. |
|
Indicates if an activity is autoRouted Definition at line 149 of file ActivityManager.php. |
|
Indicates if an activity with the same name exists Definition at line 407 of file ActivityManager.php. |
|
Asociates an activity with a role Definition at line 32 of file ActivityManager.php. |
|
Adds a transition Definition at line 75 of file ActivityManager.php. |
|
Builds the graph Definition at line 173 of file ActivityManager.php. |
|
Compiles activity Definition at line 622 of file ActivityManager.php. |
|
Gets a activity fields are returned as an asociative array Definition at line 417 of file ActivityManager.php. |
|
Gets the roles asociated to an activity Definition at line 42 of file ActivityManager.php. |
|
Returns all the activities for a process as an array Definition at line 158 of file ActivityManager.php. |
|
Returns all the transitions for a process Definition at line 131 of file ActivityManager.php. |
|
Lists activities at a per-process level Definition at line 428 of file ActivityManager.php. |
|
Removes a activity. Definition at line 462 of file ActivityManager.php. |
|
Removes a role from an activity Definition at line 57 of file ActivityManager.php. |
|
Removes all the activity transitions Definition at line 121 of file ActivityManager.php. |
|
Removes a transition Definition at line 111 of file ActivityManager.php. |
|
Updates or inserts a new activity in the database, $vars is an asociative array containing the fields to update or to insert as needed. $pId is the processId $activityId is the activityId Definition at line 493 of file ActivityManager.php. |
|
Sets if an activity is auto routed or not Definition at line 612 of file ActivityManager.php. |
|
Sets if an activity is interactive or not Definition at line 601 of file ActivityManager.php. |
|
Checks if a transition exists Definition at line 67 of file ActivityManager.php. |
|
Validates if a process can be activated checking the process activities and transitions the rules are: 0) No circular activities 1) Must have only one a start and end activity 2) End must be reachable from start 3) Interactive activities must have a role assigned 4) Roles should be mapped 5) Standalone activities cannot have transitions 6) Non intractive activities non-auto routed must have some role so the user can "send" the activity Definition at line 237 of file ActivityManager.php. |
|
Validate process sources Rules: 1) Interactive activities (non-standalone) must use complete() 2) Standalone activities must not use $instance 3) Switch activities must use setNextActivity 4) Non-interactive activities cannot use complete() Definition at line 361 of file ActivityManager.php. |