| Publicity: |
|---|
| [Public Only | All] |
Procedures in the workflow::action namespace.
- Location:
- packages/workflow/tcl/action-procs.tcl
- Created:
- 9 January 2003
- Authors:
- Lars Pind <lars@collaboraid.biz>
- Peter Marklund <peter@collaboraid.biz>
- CVS Identification:
$Id: action-procs.tcl,v 1.34 2004/12/20 16:43:28 peterm Exp $
workflow::action::callback_insert (public)workflow::action::callback_insert -action_id action_id -name name \
[ -sort_order sort_order ]
Add a side-effect to an action. |
workflow::action::delete (public)workflow::action::delete -action_id action_id Delete action with given id. |
workflow::action::edit (public)workflow::action::edit [ -operation operation ] \
[ -action_id action_id ] [ -workflow_id workflow_id ] \
[ -array array ] [ -internal ] [ -no_complain ] \
[ -handlers handlers ]
Edit an action. Attributes of the array: |
workflow::action::fsm::delete (public)workflow::action::fsm::delete -action_id action_id Delete FSM action with given id. |
workflow::action::fsm::edit (public)workflow::action::fsm::edit [ -operation operation ] \
[ -action_id action_id ] [ -workflow_id workflow_id ] \
[ -array array ] [ -internal ] [ -handlers handlers ]
Edit an action. Attributes: |
workflow::action::fsm::get (public)workflow::action::fsm::get -action_id action_id -array array Return information about an action with a given id, including FSM-related info: enabled_states, enabled_state_ids, assigned_states, assigned_state_ids, new_state, new_state_id. |
workflow::action::fsm::get_element (public)workflow::action::fsm::get_element [ -action_id action_id ] \
[ -one_id one_id ] -element element
Return element from information about an action with a given id, including FSM-related info such as 'enabled_in_states', and 'new_state'. Return a single element from the information about a action. |
workflow::action::fsm::get_ids (public)workflow::action::fsm::get_ids [ -all ] -workflow_id workflow_id \
[ -parent_action_id parent_action_id ]
Get the action_id's of all the actions in the workflow. |
workflow::action::fsm::get_new_state (public)workflow::action::fsm::get_new_state -action_id action_id Return the ID of the new state for an action |
workflow::action::fsm::new (public)workflow::action::fsm::new -workflow_id workflow_id \
[ -action_id action_id ] [ -sort_order sort_order ] \
[ -short_name short_name ] -pretty_name pretty_name \
[ -pretty_past_tense pretty_past_tense ] \
[ -edit_fields edit_fields ] [ -allowed_roles allowed_roles ] \
[ -assigned_role assigned_role ] [ -privileges privileges ] \
[ -enabled_states enabled_states ] \
[ -assigned_states assigned_states ] \
[ -enabled_state_ids enabled_state_ids ] \
[ -assigned_state_ids assigned_state_ids ] \
[ -new_state new_state ] [ -new_state_id new_state_id ] \
[ -callbacks callbacks ] [ -initial_action_p initial_action_p ] \
[ -always_enabled_p always_enabled_p ] \
[ -trigger_type trigger_type ] [ -parent_action parent_action ] \
[ -description description ] \
[ -description_mime_type description_mime_type ] \
[ -timeout_seconds timeout_seconds ]
Add an action to a certain FSM (Finite State Machine) workflow. This procedure invokes the generic workflow::action::new procedures and does additional inserts for FSM specific information. See the parameter documentation for the proc workflow::action::new. |
workflow::action::fsm::set_enabled_in_state (public)workflow::action::fsm::set_enabled_in_state -action_id action_id \
-state_id state_id [ -enabled ] [ -assigned ] \
[ -workflow_id workflow_id ]
Edit the enabled state of an action |
workflow::action::generate_short_name (public)workflow::action::generate_short_name -workflow_id workflow_id \
-pretty_name pretty_name [ -short_name short_name ] \
[ -action_id action_id ]
Generate a unique short_name from pretty_name. |
workflow::action::get (public)workflow::action::get -action_id action_id -array array Return information about an action with a given id. |
workflow::action::get_allowed_roles (public)workflow::action::get_allowed_roles -action_id action_id Return the allowed roles of the given action |
workflow::action::get_assigned_role (public)workflow::action::get_assigned_role -action_id action_id Return the assigned role of the given action |
workflow::action::get_element (public)workflow::action::get_element [ -action_id action_id ] \
[ -one_id one_id ] -element element
Return a single element from the information about a action. |
workflow::action::get_existing_short_names (public)workflow::action::get_existing_short_names -workflow_id workflow_id \
[ -ignore_action_id ignore_action_id ]
Returns a list of existing action short_names in this workflow. Useful when you're trying to ensure a short_name is unique, or construct a new short_name that is guaranteed to be unique. |
workflow::action::get_id (public)workflow::action::get_id -workflow_id workflow_id \
-short_name short_name
Return the action_id of the action with the given short_name in the given workflow. |
workflow::action::get_ids (public)workflow::action::get_ids [ -all ] -workflow_id workflow_id \
[ -parent_action_id parent_action_id ]
Get the action_id's of all the actions in the workflow. |
workflow::action::get_options (public)workflow::action::get_options [ -all ] -workflow_id workflow_id \
[ -parent_action_id parent_action_id ]
Get an options list of actions for use with form builder. |
workflow::action::get_privileges (public)workflow::action::get_privileges -action_id action_id Return the assigned role of the given action |
workflow::action::get_workflow_id (public)workflow::action::get_workflow_id -action_id action_id Lookup the workflow_id of a certain action_id. |
workflow::action::new (public)workflow::action::new -workflow_id workflow_id \
[ -action_id action_id ] [ -sort_order sort_order ] \
[ -short_name short_name ] -pretty_name pretty_name \
[ -pretty_past_tense pretty_past_tense ] \
[ -edit_fields edit_fields ] [ -assigned_role assigned_role ] \
[ -allowed_roles allowed_roles ] [ -privileges privileges ] \
[ -callbacks callbacks ] [ -always_enabled_p always_enabled_p ] \
[ -initial_action_p initial_action_p ] \
[ -trigger_type trigger_type ] [ -parent_action parent_action ] \
[ -description description ] \
[ -description_mime_type description_mime_type ] \
[ -timeout_seconds timeout_seconds ] [ -internal ]
This procedure is normally not invoked from application code. Instead a procedure for a certain workflow implementation, such as for example workflow::action::fsm::new (for Finite State Machine workflows), is used. |
workflow::action::pretty_name_unique_p (public)workflow::action::pretty_name_unique_p -workflow_id workflow_id \
-pretty_name pretty_name [ -parent_action_id parent_action_id ] \
[ -action_id action_id ]
Check if suggested pretty_name is unique. |