| Publicity: |
|---|
| [Public Only | All] |
Procedures in the workflow namespace.
- Location:
- packages/workflow/tcl/workflow-procs.tcl
- Created:
- 8 January 2003
- Authors:
- Lars Pind <lars@collaboraid.biz>
- Peter Marklund <peter@collaboraid.biz>
- CVS Identification:
$Id: workflow-procs.tcl,v 1.26.4.1 2005/07/25 05:34:55 maltes Exp $
workflow::cache_timeout (private)workflow::cache_timeout Returns the timeout to give to util_memoize (max_age parameter) for all workflow level data. Should probably be an APM parameter. |
workflow::callback_insert (private)workflow::callback_insert -workflow_id workflow_id -name name \
[ -sort_order sort_order ]
Add a side-effect to a workflow. |
workflow::clone (public)workflow::clone -workflow_id workflow_id [ -package_key package_key ] \
[ -object_id object_id ] [ -array array ] \
[ -workflow_handler workflow_handler ]
Clones an existing FSM workflow. The clone must belong to either a package key or an object id. |
workflow::default_sort_order (private)workflow::default_sort_order -workflow_id workflow_id \
-table_name table_name
By default the sort_order will be the highest current sort order plus 1. This reflects the order in which states and actions are added to the workflow starting with 1 |
workflow::definition_changed_handler (public)workflow::definition_changed_handler -workflow_id workflow_id Should be called when the workflow definition has changed while there are active cases. Will update the record of enabled actions in each of the case, so they reflect the new workflow. |
workflow::delete (public)workflow::delete -workflow_id workflow_id Delete a generic workflow and all data attached to it (states, actions etc.). |
workflow::edit (public)workflow::edit [ -operation operation ] [ -workflow_id workflow_id ] \
[ -array array ] [ -internal ] [ -no_complain ]
Edit a workflow. Attributes of the array are: |
workflow::exists_p (public)workflow::exists_p -workflow_id workflow_id Return 1 if the workflow with given id exists and 0 otherwise. This proc is currently not cached. |
workflow::flush_cache (private)workflow::flush_cache -workflow_id workflow_id Flush all cached data related to the given workflow instance. |
workflow::fsm::clone (public)workflow::fsm::clone -workflow_id workflow_id \
[ -package_key package_key ] [ -object_id object_id ] \
[ -array array ]
Clones an existing FSM workflow. The clone must belong to either a package key or an object id. |
workflow::fsm::edit (public)workflow::fsm::edit [ -operation operation ] \
[ -workflow_id workflow_id ] [ -array array ] [ -internal ]
|
workflow::fsm::generate_spec (public)workflow::fsm::generate_spec -workflow_id workflow_id \
[ -workflow_handler workflow_handler ] [ -handlers handlers ]
Generate a spec for a workflow in array list style. |
workflow::fsm::get_initial_state (public)workflow::fsm::get_initial_state -workflow_id workflow_id Get the id of the state that a workflow case is in once it's started (after the initial action is fired). |
workflow::fsm::get_states (public)workflow::fsm::get_states [ -all ] -workflow_id workflow_id \
[ -parent_action_id parent_action_id ]
Get the state_id's of all the states in the workflow. |
workflow::fsm::new_from_spec (public)workflow::fsm::new_from_spec [ -package_key package_key ] \
[ -object_id object_id ] -spec spec [ -array array ] \
[ -workflow_handler workflow_handler ] [ -handlers handlers ]
Create a new workflow from spec. Workflows must belong to either a package key or an object id. |
workflow::generate_short_name (public)workflow::generate_short_name -package_key package_key \
[ -object_id object_id ] -pretty_name pretty_name \
[ -short_name short_name ] [ -workflow_id workflow_id ]
Generate a unique short_name from pretty_name, or verify uniqueness of a given short_name. |
workflow::generate_spec (public)workflow::generate_spec -workflow_id workflow_id \
[ -workflow_handler workflow_handler ] [ -handlers handlers ]
Generate a spec for a workflow in array list style. Note that calling this directly with the default arguments will bomb, because workflow::action doesn't implement the required API. |
workflow::get (public)workflow::get -workflow_id workflow_id -array array Return information about a workflow. Uses util_memoize to cache values from the database. |
workflow::get_actions (public)workflow::get_actions [ -all ] -workflow_id workflow_id \
[ -parent_action_id parent_action_id ]
Get the action_id's of all the actions in the workflow. |
workflow::get_callbacks (private)workflow::get_callbacks -workflow_id workflow_id \
-contract_name contract_name
Return the implementation names for a certain contract and a given workflow. |
workflow::get_element (public)workflow::get_element -workflow_id workflow_id -element element Return a single element from the information about a workflow. |
workflow::get_existing_short_names (public)workflow::get_existing_short_names -package_key package_key \
[ -object_id object_id ] \
[ -ignore_workflow_id ignore_workflow_id ]
Returns a list of existing workflow short_names for this package_key and object_id. 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::get_id (public)workflow::get_id [ -package_key package_key ] [ -object_id object_id ] \
-short_name short_name
Get workflow_id by short_name and object_id. Provide either package_key or object_id. |
workflow::get_id_not_cached (private)workflow::get_id_not_cached [ -package_key package_key ] \
[ -object_id object_id ] -short_name short_name
Private proc not to be used by applications, use workflow::get_id instead. |
workflow::get_not_cached (private)workflow::get_not_cached -workflow_id workflow_id Private procedure that should never be used by application code - use workflow::get instead. Returns info about the workflow in an array list. Always goes to the database. |
workflow::get_notification_links (public)workflow::get_notification_links -workflow_id workflow_id \
[ -case_id case_id ] [ -return_url return_url ]
Return a links to sign up for notifications. |
workflow::get_roles (public)workflow::get_roles [ -all ] -workflow_id workflow_id \
[ -parent_action_id parent_action_id ]
Get the role_id's of all the roles in the workflow. |
workflow::new (public)workflow::new -pretty_name pretty_name [ -short_name short_name ] \
-package_key package_key [ -object_id object_id ] \
[ -object_type object_type ] [ -callbacks callbacks ]
Creates a new workflow. For each workflow you must create an initial action (using the workflow::action::new proc) to be fired when a workflow case is opened. |
workflow::new_from_spec (public)workflow::new_from_spec [ -package_key package_key ] \
[ -object_id object_id ] -spec spec [ -array array ] \
[ -workflow_handler workflow_handler ] [ -handlers handlers ]
Create a new workflow from spec. Workflows must belong to either a package key or an object id. |
workflow::package_key (public)workflow::package_key |
workflow::parse_spec (private)workflow::parse_spec -short_name short_name \
[ -package_key package_key ] [ -object_id object_id ] -spec spec \
[ -workflow_handler workflow_handler ] [ -handlers handlers ]
Create workflow, roles, states, actions, etc., as appropriate |
workflow::service_contract::action_side_effect (public)workflow::service_contract::action_side_effect |
workflow::service_contract::activity_log_format_title (public)workflow::service_contract::activity_log_format_title |
workflow::service_contract::get_impl_id (public)workflow::service_contract::get_impl_id -name name
|
workflow::service_contract::notification_info (public)workflow::service_contract::notification_info |
workflow::service_contract::role_assignee_pick_list (public)workflow::service_contract::role_assignee_pick_list |
workflow::service_contract::role_assignee_subquery (public)workflow::service_contract::role_assignee_subquery |
workflow::service_contract::role_default_assignees (public)workflow::service_contract::role_default_assignees |