Index: openacs-4/packages/workflow/tcl/action-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/tcl/action-procs.tcl,v diff -u -r1.41 -r1.42 --- openacs-4/packages/workflow/tcl/action-procs.tcl 12 Feb 2019 18:00:04 -0000 1.41 +++ openacs-4/packages/workflow/tcl/action-procs.tcl 12 Feb 2019 18:45:14 -0000 1.42 @@ -1,6 +1,6 @@ ad_library { Procedures in the workflow::action namespace. - + @creation-date 9 January 2003 @author Lars Pind (lars@collaboraid.biz) @author Peter Marklund (peter@collaboraid.biz) @@ -10,9 +10,6 @@ namespace eval workflow::action {} namespace eval workflow:::action::fsm {} - - - ##### # # workflow::action namespace @@ -48,7 +45,7 @@ @param action_id Optionally specify the ID of the new action. - @param sort_order The number which this action should be in the sort ordering sequence. + @param sort_order The number which this action should be in the sort ordering sequence. Leave blank to add action at the end. If you provide a sort_order number which already exists, existing actions are pushed down one number. @@ -62,19 +59,19 @@ @param edit_fields A space-separated list of the names of form fields which should be opened for editing when this action is carried out. - @param assigned_role The short_name of an assigned role. Users in this - role are expected (obliged) to take + @param assigned_role The short_name of an assigned role. Users in this + role are expected (obliged) to take the action. - @param allowed_roles A list of role short_names or IDs. Users in these roles are + @param allowed_roles A list of role short_names or IDs. Users in these roles are allowed to take the action. - - @param privileges Users with these privileges on the object - treated by the workflow (i.e. a bug in the - Bug Tracker) will be allowed to take this + + @param privileges Users with these privileges on the object + treated by the workflow (i.e. a bug in the + Bug Tracker) will be allowed to take this action. - @param callbacks List of names of service contract implementations of callbacks for the action in + @param callbacks List of names of service contract implementations of callbacks for the action in impl_owner_name.impl_name format. @param trigger_type user, auto, message, time, init, workflow, parallel, dynamic. @@ -84,15 +81,15 @@ @param initial_action_p Deprecated. Use this switch to indicate that this is the initial action that will fire whenever a case of the workflow is created. The initial action is used to determine - the initial state of the worklow as well as any + the initial state of the worklow as well as any procedures that should be executed when the case created. @param timeout_seconds If zero, the action will automatically fire whenever it becomes enabled. If greater than zero, the action will automatically fire x number of seconds after the action is enabled. If empty, will never fire automatically. - @param internal Set this flag if you're calling this proc from within the corresponding proc - for a particular workflow model. Will cause this proc to not flush the cache + @param internal Set this flag if you're calling this proc from within the corresponding proc + for a particular workflow model. Will cause this proc to not flush the cache or call workflow::definition_changed_handler, which the caller must then do. @return The id of the created action @@ -104,12 +101,12 @@ @author Peter Marklund } { # Wrapper for workflow::action::edit - + array set row [list] - foreach col { + foreach col { initial_action_p sort_order short_name pretty_name - pretty_past_tense edit_fields allowed_roles assigned_role - privileges callbacks always_enabled_p description description_mime_type + pretty_past_tense edit_fields allowed_roles assigned_role + privileges callbacks always_enabled_p description description_mime_type timeout_seconds trigger_type parent_action } { if { [info exists $col] } { @@ -133,24 +130,24 @@ {-array {}} {-internal:boolean} {-no_complain:boolean} - {-handlers { - roles "workflow::role" + {-handlers { + roles "workflow::role" actions "workflow::action" }} } { - Edit an action. + Edit an action. - Attributes of the array: + Attributes of the array: