Index: openacs-4/packages/workflow/www/doc/index.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/index.html,v diff -u -r1.3 -r1.4 --- openacs-4/packages/workflow/www/doc/index.html 20 Nov 2003 12:52:49 -0000 1.3 +++ openacs-4/packages/workflow/www/doc/index.html 9 Dec 2003 09:33:17 -0000 1.4 @@ -24,11 +24,11 @@ process (the current state), and who's supposed to do what.

-

- Here's what we have to offer you today: -

-
+
+ Mockups of alternatives for + compound workflows +
Package Developer's Guide to Workflow
Index: openacs-4/packages/workflow/www/doc/mockup-sim-cc-1.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-cc-1.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-cc-1.adp 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,9 @@ + + @page_title;noquote@ + @context;noquote@ +

Elementary Private Law Template

+ +

Roles

+ +

Tasks

+

\ No newline at end of file Index: openacs-4/packages/workflow/www/doc/mockup-sim-cc-1.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-cc-1.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-cc-1.tcl 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,58 @@ +ad_page_contract { + Mockup +} { +} + +set page_title "Sim Use Case as collection of FSMs" +set context [list [list "." "Documentation"] [list "mockups.html" "Mockups"] $page_title] + +template::list::create \ + -name tasks \ + -multirow tasks \ + -actions {"Add a Task" ""} \ + -elements { + edit { + sub_class narrow + display_template { + Edit + } + } + name { + label "Task" + display_template { + @tasks.pretty_name@@tasks.pretty_name@ + } + } + assigned_name { + label "Assigned to" + } + recipient_name { + label "Recipient" + } + delete { + sub_class narrow + display_template { + Edit + } + } + } + + +multirow create tasks edit_url pretty_name assigned_name recipient_name + +multirow append tasks "" "Depose Salesperson" "Customer's Lawyer" "Salesperson" +multirow append tasks "" "Depose Customer" "Salesperson's Lawyer" "Customer" +multirow append tasks "" "Respond to Deposition" "Salesperson" "Customer's Lawyer" +multirow append tasks "mockup-sim-cc-2" "Respond to Deposition" "Customer" "Salesperson's Lawyer" +multirow append tasks "" "Intervene" "Partner2" "Salesperson's Lawyer" +multirow append tasks "" "Intervene" "Partner1" "Customer's Lawyer" +multirow append tasks "" "Respond to Intervention" "Salesperson's Lawyer" "Partner2" +multirow append tasks "" "Respond to Intervention" "Customer's Lawyer" "Partner1" +multirow append tasks "" "Deliver Report to Secretary" "Customer's Lawyer" "Secretary1" +multirow append tasks "" "Deliver Report to Secretary" "Salesperson's Lawyer" "Secretary2" +multirow append tasks "" "Get info from Salesperson's Lawyer" "Customer's Lawyer" "Salesperson's Lawyer" +multirow append tasks "" "Get info from Customer's Lawyer" "Salesperson's Lawyer" "Customer's Lawyer" +multirow append tasks "" "Respond to Customer's Lawyer" "Salesperson's Lawyer" "Customer's Lawyer" +multirow append tasks "" "Respond to Salesperson's Lawyer" "Customer's Lawyer" "Salesperson's Lawyer" +multirow append tasks "" "Submit Final Report" "Salesperson's Lawyer" "" +multirow append tasks "" "Submit Final Report" "Customer's Lawyer" "" \ No newline at end of file Index: openacs-4/packages/workflow/www/doc/mockup-sim-cc-2.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-cc-2.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-cc-2.adp 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,38 @@ + + @page_title;noquote@ + @context;noquote@ +

Properties

+ +

Enabled If

+ +AND + + +

Automation

+ + +

Still missing: +

    +
  • put placeholders into description +
  • max number of completions +
  • \ No newline at end of file Index: openacs-4/packages/workflow/www/doc/mockup-sim-cc-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-cc-2.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-cc-2.tcl 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,96 @@ +ad_page_contract { + Mockup +} { +} + +set page_title "Editing a single task: Respond to Deposition" +set context [list [list "." "Documentation"] [list "mockups.html" "Mockups"] [list "mockup-sim-cc-1" "Sim Use Case as collection of FSMs"] $page_title] + +set role_options [list [list "Salesperson" "foo"] [list "Salesperson's Lawyer" "foo"] [list "Customer" "foo"] [list "Customer's Lawyer" "foo"] [list "Secretary1" "foo"] [list "Secretary2" "foo"] [list "Partner1" "foo"] [list "Partner2" "foo"]] + +set task_state_options [list [list "Pass/Fail" ""] [list "A B C D F" ""] [list "Completed/Cancelled/Out of Time"]] + +set task_state_options_1 [list [list "Pass" ""] [list "Fail" ""]] + +set agent_options [list [list "No Agent" ""] [list "Random" ""] [list "Inspect document"]] + +ad_form -name task -form { + {action_id:key} + {workflow_id:integer(hidden) + } + {name:text + {label "Task Name"} + {html {size 20}} + {value "Respond to Deposition"} + } + {assigned_role:text(select) + {label "Assigned To"} + {options $role_options} + } + {recipient_role:text(select) + {label "Recipient"} + {options $role_options} + } + {description:richtext,optional + {label "Task Description"} + {html {cols 60 rows 8}} + } + {completiontype:text(select) + {label "Completion Codes"} + {options $task_state_options} + } +} + +template::list::create \ + -name depends \ + -multirow depends \ + -elements { + logic { + sub_class narrow + } + task { + label "Task" + } + state { + label "State" + } + delete { + sub_class narrow + display_template { + Edit + } + } + } + +multirow create depends logic task state + +multirow append depends "" "Depose Customer" "Completed" +multirow append depends "AND" "Deliver Report to Secretary" "Completed" + +ad_form -name task2 -form { + {timeout:text + {label "Time Limit"} + {html {size 10}} + {help_text "Task will be disabled this long after being enabled. Leave blank to never timeout"} } + {nextstate:text(select) + {label "Completion Type"} + {options $task_state_options_1} + {help_text "After time limit, set completion type to this (choices will vary depending on "} } +} + +ad_form -name agent -form { + {timeout:text(radio) + {label "Agent Action"} + {options $agent_options} + } + {passstate:text(select) + {label "Agent Pass State"} + {options $task_state_options_1} + {help_text "If agent returns true, set completion type to this"} + } + {failstate:text(select) + {label "Agent Fail State"} + {options $task_state_options_1} + {help_text "After time returns false, set completion type to this"} + } +} Index: openacs-4/packages/workflow/www/doc/mockup-sim-ft-1.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-ft-1.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-ft-1.adp 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,10 @@ + + @page_title;noquote@ + @context;noquote@ +

    Elementary Private Law Template

    + +

    Roles

    + +

    +

    States and Tasks

    +

    Index: openacs-4/packages/workflow/www/doc/mockup-sim-ft-1.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-ft-1.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-ft-1.tcl 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,99 @@ +ad_page_contract { + Mockup +} { +} + +set page_title "Sim Use Case as FSM Tree" +set context [list [list "." "Documentation"] [list "mockups.html" "Mockups"] $page_title] + + +template::list::create \ + -name tasks \ + -multirow tasks \ + -actions {"Add a Task" ""} \ + -elements { + edit { + sub_class narrow + display_template { + Edit + } + } + state1 { + label "Initialize" + display_template { + @tasks.state1;noquote@ + } + } + name { + label "Task" + display_template { + @tasks.pretty_name@@tasks.pretty_name@ + } + } + state2 { + label "Active" + display_template { + @tasks.state2;noquote@ + } + } + state3 { + label "Complete" + display_template { + @tasks.state3;noquote@ + } + } + statea { + label "" + display_template { + } + } + + delete { + sub_class narrow + display_template { + + Edit + + } + } + } + + +multirow create tasks edit_url pretty_name state1 state2 state3 +multirow append tasks "mockup-sim-ft-7" "Initialize" "" "" "" +multirow append tasks "mockup-sim-ft-2" "First Lawyer's task" "" "" "" "" "" "" + +template::list::create \ + -name counters \ + -multirow counters \ + -actions {"Add a Counter" ""} \ + -elements { + name { + label "Counter" + } + values { + label "Possible Values" + display_template { + + } + } + delete { + sub_class narrow + display_template { + Edit + } + } + } + + +multirow create counters name + +multirow append counters "Grade" + + Index: openacs-4/packages/workflow/www/doc/mockup-sim-ft-2.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-ft-2.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-ft-2.adp 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,232 @@ + + @page_title;noquote@ + @context;noquote@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Enabled in state + + +
    + [i] + The task is available only in these states. +
    +
    Other Preconditions + + +
    + [i] + All of these conditions must also be true for the task to be enabled. +
    +
    + Mode + + + Trigger instantly
    + Wait for a trigger
    + Start another workflow +
    +
    + [i] +
    +
    + Child Workflow + + + + Edit this + workflow Create a workflow +
    + [i] + Which Workflow? +
    +
    + Client Role: + + +
    + Lawyer Role: + + +
    + Other Client's Lawyer Role: + + +
    + Mentor Role: + + +
    + Secretary Role: + + + +
    + [i] + Which Role in "Elementary Private Law" matches this role in "Prepare Report for Basic Legal Case"? +
    +
    + Lawyer Role: + + + + +
    + [i] + Which Role in "Elementary Private Law" matches this role in "Prepare Report for Basic Legal Case"? +
    +
    + Duration + + + No time limit
    + Trigger after
    +
    + [i] + Duration is of the form '1 hour' or '1 day' etc + +
    +
    +
    + Outcome + + Don't change state
    + Change to state:
    +
    + Additional Outcome Effects + + +
    + [i] + Additional commands to run after task is completed +
    +
    \ No newline at end of file Index: openacs-4/packages/workflow/www/doc/mockup-sim-ft-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-ft-2.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-ft-2.tcl 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,58 @@ +ad_page_contract { + Mockup +} { +} + +set page_title "Editing 'First Lawyer's Task'" +set context [list [list "." "Documentation"] [list "mockups.html" "Mockups"] [list "mockup-sim-ft-1" "Elementary Private Law"] $page_title] + + +template::list::create \ + -name states \ + -multirow states\ + -elements { + name { + label "" + } + state { + label "" + display_template { + @states.state;noquote@ + } + } + } + +multirow create states name state + +multirow append states "Active" "" +multirow append states "Complete" "" + +set task_state_options [list [list "Pass/Fail" ""] [list "A B C D F" ""] [list "Completed/Cancelled/Out of Time"]] + +set task_state_options_1 [list [list "Pass" ""] [list "Fail" ""]] + +set agent_options [list [list "No Agent" ""] [list "Random" ""] [list "Inspect document"]] + +ad_form -name task2 -form { + {timeout:text + {label "Time Limit"} + {html {size 10}} + {help_text "The action will automatically execute its Transformation this long after it is enabled. Leave blank to never timeout"} } +} + +ad_form -name agent -form { + {timeout:text(radio) + {label "Agent Action"} + {options $agent_options} + } + {passstate:text(select) + {label "Agent Pass State"} + {options $task_state_options_1} + {help_text "If agent returns true, set completion type to this"} + } + {failstate:text(select) + {label "Agent Fail State"} + {options $task_state_options_1} + {help_text "After time returns false, set completion type to this"} + } +} Index: openacs-4/packages/workflow/www/doc/mockup-sim-ft-3.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-ft-3.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-ft-3.adp 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,10 @@ + + @page_title;noquote@ + @context;noquote@ + +

    Roles

    + + +

    +

    States and Tasks

    +

    \ No newline at end of file Index: openacs-4/packages/workflow/www/doc/mockup-sim-ft-3.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-ft-3.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-ft-3.tcl 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,83 @@ +ad_page_contract { + Mockup +} { +} + +set page_title "Prepare Report for Basic Legal Case" +set context [list [list "." "Documentation"] [list "mockups.html" "Mockups"] [list "mockup-sim-ft-1" "Elementary Private Law"] $page_title] + + +template::list::create \ + -name tasks \ + -multirow tasks \ + -actions {"Add a Task" ""} \ + -elements { + edit { + sub_class narrow + display_template { + Edit + } + } + state1 { + label "Initial Task" + display_template { + @tasks.state1;noquote@ + } + } + + name { + label "Task" + display_template { + @tasks.pretty_name@@tasks.pretty_name@ + } + } + state2 { + label "Getting information from client" + display_template { + @tasks.state2;noquote@ + } + } + state3 { + label "Researching Report" + display_template { + @tasks.state3;noquote@ + } + } + + state4 { + label "Editing Report" + display_template { + @tasks.state4;noquote@ + } + } + state5 { + label "Complete" + } + statea { + label "" + display_template { + } + } + + delete { + sub_class narrow + display_template { + Edit + } + } + } + + +multirow create tasks edit_url pretty_name state1 state2 state3 state4 state5 + +multirow append tasks "" "Initialize" "" "" "" "" +multirow append tasks "" "Ask Client for information" "" "" "" "" +multirow append tasks "" "Ask Client for more info" "" "" "" "" +multirow append tasks "" "Visit the Library" "" "" "" "" +multirow append tasks "" "Consult Secretary" "" "" "" "" +multirow append tasks "mockup-sim-ft-4" "Mentor Intervenes" "" "" "" "" +multirow append tasks "" "Consult Mentor" "" "" "" "" +multirow append tasks "" "Write Legal Advice" "" "" "" "" +multirow append tasks "" "Edit Report" "" "" "" "" + + Index: openacs-4/packages/workflow/www/doc/mockup-sim-ft-4.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-ft-4.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-ft-4.adp 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,166 @@ + + @page_title;noquote@ + @context;noquote@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Enabled in state + + +
    + [i] + The task is available only in these states. +
    +
    Other Preconditions + + + +
    + [i] + All of these conditions must also be true for the task to be enabled. +
    +
    + Time Limit + + + + +
    + [i] + The action will automatically execute its Transformation this long after it is enabled. Leave blank to never timeout +
    +
    + Mode + + + Trigger instantly
    + Wait for a trigger
    + Start another workflow +
    +
    + [i] +
    +
    + Child Workflow + + + Edit this task + +
    + [i] + Which Workflow? +
    +
    + Asker Role: + + + + +
    + [i] + Which Role in "Elementary Private Law" matches the role of Client in "Prepare Report for Basic Legal Case"? +
    +
    + Giver Role: + + + + +
    + [i] + Which Role in "Elementary Private Law" matches the role of Lawyer in "Prepare Report for Basic Legal Case"? +
    +
    + Duration + + + No time limit
    + Trigger after
    +
    + [i] + Duration is of the form '1 hour' or '1 day' etc + +
    +
    +
    + Outcome + + Don't change state
    + Change to state: +
    +
    + Additional Effects + +
    + [i] + When this task is completed, these things also happen +
    +
    \ No newline at end of file Index: openacs-4/packages/workflow/www/doc/mockup-sim-ft-4.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-ft-4.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-ft-4.tcl 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,60 @@ +ad_page_contract { + Mockup +} { +} + +set page_title "Editing 'Mentor Intervenes'" +set context [list [list "." "Documentation"] [list "mockups.html" "Mockups"] [list "mockup-sim-ft-1" "Elementary Private Law"] $page_title] + + +template::list::create \ + -name states \ + -multirow states\ + -elements { + name { + label "" + } + state { + label "" + display_template { + @states.state;noquote@ + } + } + } + +multirow create states name state + +multirow append states "Getting information from client" "" +multirow append states "Researching Report" "" +multirow append states "Editing Report" "" +multirow append states "Completed" "" + +set task_state_options [list [list "Pass/Fail" ""] [list "A B C D F" ""] [list "Completed/Cancelled/Out of Time"]] + +set task_state_options_1 [list [list "Pass" ""] [list "Fail" ""]] + +set agent_options [list [list "No Agent" ""] [list "Random" ""] [list "Inspect document"]] + +ad_form -name task2 -form { + {timeout:text + {label "Time Limit"} + {html {size 10}} + {help_text "The action will automatically execute its Transformation this long after it is enabled. Leave blank to never timeout"} } +} + +ad_form -name agent -form { + {timeout:text(radio) + {label "Agent Action"} + {options $agent_options} + } + {passstate:text(select) + {label "Agent Pass State"} + {options $task_state_options_1} + {help_text "If agent returns true, set completion type to this"} + } + {failstate:text(select) + {label "Agent Fail State"} + {options $task_state_options_1} + {help_text "After time returns false, set completion type to this"} + } +} Index: openacs-4/packages/workflow/www/doc/mockup-sim-ft-5.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-ft-5.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-ft-5.adp 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,13 @@ + + @page_title;noquote@ + @context;noquote@ + +

    Roles

    + + +

    +

    States and Tasks

    +

    + +

    Counters

    +

    \ No newline at end of file Index: openacs-4/packages/workflow/www/doc/mockup-sim-ft-5.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-ft-5.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-ft-5.tcl 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,93 @@ +ad_page_contract { + Mockup +} { +} + +set page_title "Ask Info/Give Info" +set context [list [list "." "Documentation"] [list "mockups.html" "Mockups"] [list "mockup-sim-ft-1" "Elementary Private Law"] $page_title] + +template::list::create \ + -name tasks \ + -multirow tasks \ + -actions {"Add a Task" ""} \ + -elements { + edit { + sub_class narrow + display_template { + Edit + } + } + name { + label "Task" + display_template { + @tasks.pretty_name@@tasks.pretty_name@ + } + } + state1 { + label "Asking For Information" + display_template { + @tasks.state1;noquote@ + } + } + state2 { + label "Waiting for response" + display_template { + @tasks.state2;noquote@ + } + } + state4 { + label "Complete" + } + statea { + label "" + display_template { + } + } + delete { + sub_class narrow + display_template { + Edit + } + } + } + +multirow create tasks edit_url pretty_name state1 state2 state3 state4 + +multirow append tasks "" "Ask for infomation" "" "" +multirow append tasks "mockup-sim-ft-6" "Respond to request" "" "" + + + +template::list::create \ + -name counters \ + -multirow counters \ + -actions {"Add a Counter" ""} \ + -elements { + name { + label "Counter" + } + values { + label "Possible Values" + display_template { + + } + } + delete { + sub_class narrow + display_template { + Edit + } + } + } + + +multirow create counters name + +multirow append counters "Grade" + + Index: openacs-4/packages/workflow/www/doc/mockup-sim-ft-6.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-ft-6.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-ft-6.adp 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,173 @@ + + @page_title;noquote@ + @context;noquote@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Enabled in state + + +
    + [i] + The task is available only in these states. +
    +
    Other Preconditions + + + +
    + [i] + All of these conditions must also be true for the task to be enabled. +
    +
    + Time Limit + + + + +
    + [i] + The action will automatically execute its Transformation this long after it is enabled. Leave blank to never timeout +
    +
    + Transformation + + + Automatic
    + Conditional
    + Child Workflow +
    +
    + [i] + What happens when this task is executed? +
    +
    + Assigned Role + + +
    + [i] + The task is assigned to this role. +
    +
    + Conditional function + + +
    + [i] + Execute this function to determine the next state of "Elementary Private Law Template" +
    +
    + Input + + +
    + [i] + "Parse Input for value" requires an input value +
    +
    + Test String + + +
    + [i] + "Parse Input for value" requires a test string +
    +
    + Condition True + + + + +
    + [i] + If Input String contains Test String, set "Prepare Report for Basic Legal Case" to true +
    +
    + Condition False + + + + +
    + [i] + If Input String does not contain Test String, set "Prepare Report for Basic Legal Case" to true +
    +
    + Additional Effects + +
    + [i] + When this task is completed, these things also happen +
    +
    \ No newline at end of file Index: openacs-4/packages/workflow/www/doc/mockup-sim-ft-6.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-ft-6.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-ft-6.tcl 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,58 @@ +ad_page_contract { + Mockup +} { +} + +set page_title "Editing Respond to Request" +set context [list [list "." "Documentation"] [list "mockups.html" "Mockups"] [list "mockup-sim-ft-1" "Elementary Private Law"] $page_title] + + +template::list::create \ + -name states \ + -multirow states\ + -elements { + name { + label "" + } + state { + label "" + display_template { + @states.state;noquote@ + } + } + } + +multirow create states name state + +multirow append states "Asking for Information" "" +multirow append states "Waiting for Response" "" + +set task_state_options [list [list "Pass/Fail" ""] [list "A B C D F" ""] [list "Completed/Cancelled/Out of Time"]] + +set task_state_options_1 [list [list "Pass" ""] [list "Fail" ""]] + +set agent_options [list [list "No Agent" ""] [list "Random" ""] [list "Inspect document"]] + +ad_form -name task2 -form { + {timeout:text + {label "Time Limit"} + {html {size 10}} + {help_text "The action will automatically execute its Transformation this long after it is enabled. Leave blank to never timeout"} } +} + +ad_form -name agent -form { + {timeout:text(radio) + {label "Agent Action"} + {options $agent_options} + } + {passstate:text(select) + {label "Agent Pass State"} + {options $task_state_options_1} + {help_text "If agent returns true, set completion type to this"} + } + {failstate:text(select) + {label "Agent Fail State"} + {options $task_state_options_1} + {help_text "After time returns false, set completion type to this"} + } +} Index: openacs-4/packages/workflow/www/doc/mockup-sim-ft-6a.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-ft-6a.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-ft-6a.adp 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,189 @@ + + @page_title;noquote@ + @context;noquote@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Enabled in state + + +
    + [i] + The task is available only in these states. +
    +
    Other Preconditions + + + +
    + [i] + All of these conditions must also be true for the task to be enabled. +
    +
    + This task executes + + + Instantaneously when enabled
    + Conditional
    + Child Workflow +
    +
    + [i] + What happens when this task is executed? +
    +
    + Timer + + + + +
    + [i] + The action will automatically execute its Transformation this long after it is enabled. Leave blank to never timeout +
    +
    + Transformation + + + Automatic
    + Conditional
    + Child Workflow +
    +
    + [i] + What happens when this task is executed? +
    +
    + Assigned Role + + +
    + [i] + The task is assigned to this role. +
    +
    + Conditional function + + +
    + [i] + Execute this function to determine the next state of "Elementary Private Law Template" +
    +
    + Input + + +
    + [i] + "Parse Input for value" requires an input value +
    +
    + Test String + + +
    + [i] + "Parse Input for value" requires a test string +
    +
    + Condition True + + + + +
    + [i] + If Input String contains Test String, set "Prepare Report for Basic Legal Case" to true +
    +
    + Condition False + + + + +
    + [i] + If Input String does not contain Test String, set "Prepare Report for Basic Legal Case" to true +
    +
    + Additional Effects + +
    + [i] + When this task is completed, these things also happen +
    +
    \ No newline at end of file Index: openacs-4/packages/workflow/www/doc/mockup-sim-ft-7.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-ft-7.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-ft-7.adp 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,93 @@ + + @page_title;noquote@ + @context;noquote@ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Enabled in state + + +
    + [i] + Initialize is a special task. It is automatically run when a + workflow is initialized. it (TODO: can, can't) be run in other states." +
    +
    Other Preconditions + + + +
    + [i] + All of these conditions must also be true for the task to be enabled. +
    +
    + Time Limit + + + + +
    + [i] + The action will automatically execute its Transformation this long after it is enabled. Leave blank to never timeout +
    +
    + Transformation + + + Automatic
    + Conditional
    + Child Workflow +
    +
    + [i] + What happens when this task is executed? TODO - how + do we make a "conditional conditional" - ie, how do we indicate + that conditional action is available if role is uncast? "default transformation?" +
    +
    + Next State + + +
    + [i] + Activating this task changes "Elementary Private Law Template" to this state +
    +
    + Additional Effects + +
    + [i] + When this task is completed, these things also happen +
    +
    \ No newline at end of file Index: openacs-4/packages/workflow/www/doc/mockup-sim-ft-7.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-ft-7.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-ft-7.tcl 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,59 @@ +ad_page_contract { + Mockup +} { +} + +set page_title "Editing 'Initialize'" +set context [list [list "." "Documentation"] [list "mockups.html" "Mockups"] [list "mockup-sim-ft-1" "Elementary Private Law"] $page_title] + + +template::list::create \ + -name states \ + -multirow states\ + -elements { + name { + label "" + } + state { + label "" + display_template { + @states.state;noquote@ + } + } + } + +multirow create states name state + +multirow append states "Initialize" "" +multirow append states "Active" "" +multirow append states "Complete" "" + +set task_state_options [list [list "Pass/Fail" ""] [list "A B C D F" ""] [list "Completed/Cancelled/Out of Time"]] + +set task_state_options_1 [list [list "Pass" ""] [list "Fail" ""]] + +set agent_options [list [list "No Agent" ""] [list "Random" ""] [list "Inspect document"]] + +ad_form -name task2 -form { + {timeout:text + {label "Time Limit"} + {html {size 10}} + {help_text "The action will automatically execute its Transformation this long after it is enabled. Leave blank to never timeout"} } +} + +ad_form -name agent -form { + {timeout:text(radio) + {label "Agent Action"} + {options $agent_options} + } + {passstate:text(select) + {label "Agent Pass State"} + {options $task_state_options_1} + {help_text "If agent returns true, set completion type to this"} + } + {failstate:text(select) + {label "Agent Fail State"} + {options $task_state_options_1} + {help_text "After time returns false, set completion type to this"} + } +} Index: openacs-4/packages/workflow/www/doc/mockup-sim-ft-example-task-edit.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-ft-example-task-edit.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-ft-example-task-edit.adp 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,346 @@ + + @page_title;noquote@ + @context;noquote@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Enabled in state + + +
    + [i] + The task is available only in these states. +
    +
    Other Preconditions + + + +
    + [i] + All of these conditions must also be true for the task to be enabled. +
    +
    + Time Limit + + + + +
    + [i] + The action will automatically execute its Transformation this long after it is enabled. Leave blank to never timeout +
    +
    + Transformation + + + Automatic
    + Conditional
    + Child Workflow +
    +
    + [i] + What happens when this task is executed? +
    +
    + Next State + + +
    + [i] + Activating this task changes "Elementary Private Law Template" to this state +
    +
    + Conditional function + + +
    + [i] + Execute this function to determine the next state of "Elementary Private Law Template" +
    +
    + Input + + +
    + [i] + "Parse Input for value" requires an input value +
    +
    + Test String + + +
    + [i] + "Parse Input for value" requires a test string +
    +
    + Condition True + + + + +
    + [i] + If Input String contains Test String, set "Prepare Report for Basic Legal Case" to true +
    +
    + Condition False + + + + +
    + [i] + If Input String does not contain Test String, set "Prepare Report for Basic Legal Case" to true +
    +
    + Child Workflow + + + + +
    + [i] + Which Workflow? +
    +
    + Client Role: + + +
    + Lawyer Role: + + +
    + Other Client's Lawyer Role: + + +
    + Mentor Role: + + +
    + Secretary Role: + + +
    + Lawyer Role: + + +
    + State: Done + + + + +
    + [i] + If "Prepare Report for Basic Legal Case" concludes + in state Done, set "Elementary Private Law" to this state. +
    +
    + Additional Effects + +
    + [i] + When this task is completed, these things also happen +
    +
    \ No newline at end of file Index: openacs-4/packages/workflow/www/doc/mockup-sim-ft-example-task-edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-sim-ft-example-task-edit.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-sim-ft-example-task-edit.tcl 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,326 @@ + + @page_title;noquote@ + @context;noquote@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Enabled in state + + +
    + [i] + The task is available only in these states. +
    +
    Other Preconditions + + + +
    + [i] + All of these conditions must also be true for the task to be enabled. +
    +
    + Time Limit + + + + +
    + [i] + The action will automatically execute its Transformation this long after it is enabled. Leave blank to never timeout +
    +
    + Transformation + + + Automatic
    + Conditional
    + Child Workflow +
    +
    + [i] + What happens when this task is executed? +
    +
    + Next State + + +
    + [i] + Activating this task changes "Elementary Private Law Template" to this state +
    +
    + Conditional function + + +
    + [i] + Execute this function to determine the next state of "Elementary Private Law Template" +
    +
    + Input + + +
    + [i] + "Parse Input for value" requires an input value +
    +
    + Test String + + +
    + [i] + "Parse Input for value" requires a test string +
    +
    + Condition True + + + + +
    + [i] + If Input String contains Test String, set "Prepare Report for Basic Legal Case" to true +
    +
    + Condition False + + + + +
    + [i] + If Input String does not contain Test String, set "Prepare Report for Basic Legal Case" to true +
    +
    + Child Workflow + + + + +
    + [i] + Which Workflow? +
    +
    + Client Role: + + +
    + Lawyer Role: + + +
    + Other Client's Lawyer Role: + + +
    + Mentor Role: + + +
    + Secretary Role: + + +
    + Lawyer Role: + + +
    + Additional Effects + +
    + [i] + When this task is completed, these things also happen +
    +
    \ No newline at end of file Index: openacs-4/packages/workflow/www/doc/mockup-tip-cc-1.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-tip-cc-1.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-tip-cc-1.adp 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,9 @@ + + @page_title;noquote@ + @context;noquote@ +

    TIP Process

    + +

    Roles

    + +

    Tasks

    +

    \ No newline at end of file Index: openacs-4/packages/workflow/www/doc/mockup-tip-cc-1.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-tip-cc-1.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-tip-cc-1.tcl 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,58 @@ +ad_page_contract { + Mockup +} { +} + +set page_title "Sim Use Case as collection of FSMs" +set context [list [list "." "Documentation"] [list "mockups.html" "Mockups"] $page_title] + +template::list::create \ + -name tasks \ + -multirow tasks \ + -actions {"Add a Task" ""} \ + -elements { + edit { + sub_class narrow + display_template { + Edit + } + } + name { + label "Task" + display_template { + @tasks.pretty_name@@tasks.pretty_name@ + } + } + assigned_name { + label "Assigned to" + } + recipient_name { + label "Recipient" + } + delete { + sub_class narrow + display_template { + Edit + } + } + } + + +multirow create tasks edit_url pretty_name assigned_name recipient_name + +multirow append tasks "" "Depose Salesperson" "Customer's Lawyer" "Salesperson" +multirow append tasks "" "Depose Customer" "Salesperson's Lawyer" "Customer" +multirow append tasks "" "Respond to Deposition" "Salesperson" "Customer's Lawyer" +multirow append tasks "mockup-sim-cc-2" "Respond to Deposition" "Customer" "Salesperson's Lawyer" +multirow append tasks "" "Intervene" "Partner2" "Salesperson's Lawyer" +multirow append tasks "" "Intervene" "Partner1" "Customer's Lawyer" +multirow append tasks "" "Respond to Intervention" "Salesperson's Lawyer" "Partner2" +multirow append tasks "" "Respond to Intervention" "Customer's Lawyer" "Partner1" +multirow append tasks "" "Deliver Report to Secretary" "Customer's Lawyer" "Secretary1" +multirow append tasks "" "Deliver Report to Secretary" "Salesperson's Lawyer" "Secretary2" +multirow append tasks "" "Get info from Salesperson's Lawyer" "Customer's Lawyer" "Salesperson's Lawyer" +multirow append tasks "" "Get info from Customer's Lawyer" "Salesperson's Lawyer" "Customer's Lawyer" +multirow append tasks "" "Respond to Customer's Lawyer" "Salesperson's Lawyer" "Customer's Lawyer" +multirow append tasks "" "Respond to Salesperson's Lawyer" "Customer's Lawyer" "Salesperson's Lawyer" +multirow append tasks "" "Submit Final Report" "Salesperson's Lawyer" "" +multirow append tasks "" "Submit Final Report" "Customer's Lawyer" "" \ No newline at end of file Index: openacs-4/packages/workflow/www/doc/mockup-tip-cc-2.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/mockup-tip-cc-2.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/mockup-tip-cc-2.adp 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,38 @@ + + @page_title;noquote@ + @context;noquote@ +

    Properties

    + +

    Enabled If

    + +AND + + +

    Automation

    + + +

    Still missing: +

      +
    • put placeholders into description +
    • max number of completions +
    • \ No newline at end of file Index: openacs-4/packages/workflow/www/doc/roles-includelet-1.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/roles-includelet-1.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/roles-includelet-1.adp 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1 @@ +

      \ No newline at end of file Index: openacs-4/packages/workflow/www/doc/roles-includelet-1.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/roles-includelet-1.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/roles-includelet-1.tcl 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,31 @@ +template::list::create \ + -name roles \ + -multirow roles \ + -actions {"Add a Role" ""} \ + -elements { + edit { + sub_class narrow + display_template { + Edit + } + } + pretty_name { + label "Role" + display_col pretty_name + } + delete { + sub_class narrow + display_template { + Edit + } + } + } + +multirow create roles pretty_name +multirow append roles "Lawyer" +multirow append roles "Client" +multirow append roles "Other Lawyer" +multirow append roles "Other Client" +multirow append roles "Secretary" +multirow append roles "Partner" + Index: openacs-4/packages/workflow/www/doc/roles-includelet-2.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/roles-includelet-2.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/roles-includelet-2.adp 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1 @@ +

      \ No newline at end of file Index: openacs-4/packages/workflow/www/doc/roles-includelet-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/roles-includelet-2.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/roles-includelet-2.tcl 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,26 @@ +template::list::create \ + -name roles \ + -multirow roles \ + -actions {"Add a Role" ""} \ + -elements { + edit { + sub_class narrow + display_template { + Edit + } + } + pretty_name { + label "Role" + display_col pretty_name + } + delete { + sub_class narrow + display_template { + Edit + } + } + } + +multirow create roles pretty_name +multirow append roles "Asker" +multirow append roles "Giver" Index: openacs-4/packages/workflow/www/doc/roles-includelet.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/roles-includelet.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/roles-includelet.adp 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1 @@ +

      \ No newline at end of file Index: openacs-4/packages/workflow/www/doc/roles-includelet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/roles-includelet.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/roles-includelet.tcl 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,32 @@ +template::list::create \ + -name roles \ + -multirow roles \ + -actions {"Add a Role" ""} \ + -elements { + edit { + sub_class narrow + display_template { + Edit + } + } + pretty_name { + label "Role" + display_col pretty_name + } + delete { + sub_class narrow + display_template { + Edit + } + } + } + +multirow create roles pretty_name +multirow append roles "Salesperson" +multirow append roles "Salesperson's Lawyer" +multirow append roles "Customer" +multirow append roles "Customer's Lawyer" +multirow append roles "Secretary1" +multirow append roles "Secretary2" +multirow append roles "Partner1" +multirow append roles "Partner2" Index: openacs-4/packages/workflow/www/doc/task-includelet.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/task-includelet.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/task-includelet.adp 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1 @@ + \ No newline at end of file Index: openacs-4/packages/workflow/www/doc/task-includelet.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/workflow/www/doc/task-includelet.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/workflow/www/doc/task-includelet.tcl 9 Dec 2003 09:33:17 -0000 1.1 @@ -0,0 +1,26 @@ +#--------------------------------------------------------------------- +# mockup task form +#--------------------------------------------------------------------- + +ad_form -name task -form { + {action_id:key} + {workflow_id:integer(hidden) + {value $workflow_id} + } + {name:text + {label "Task Name"} + {html {size 20}} + } + {assigned_role:text(select) + {label "Assigned To"} + {options $role_options} + } + {recipient_role:text(select) + {label "Recipient"} + {options $role_options} + } + {description:richtext,optional + {label "Task Description"} + {html {cols 60 rows 8}} + } +} \ No newline at end of file