View · Index

Package Submit Workflow

This is a workflow definition for submitting .apm-packages to the OpenACS package repository.
# Properties
Property hint -default "" -allow_query_parameter true
Property description -default "" -allow_query_parameter true

# Actions
Action save -roles {admin creator}
Action propose -next_state proposed -proc activate {obj} {
   #my msg "$obj is going to state [my next_state]"
   $obj set_publish_status ready
}
Action accept -next_state accepted -roles admin
Action reject -next_state rejected -roles admin
Action mark_implemented -next_state implemented -roles admin

# States
#   - form: the form to be used in a state
#   - view_method: Typically "view" (default) or "edit"

State parameter {{form "en:Package-submit.form"}}

State initial  -actions {save propose}
State proposed -actions {save accept reject} -form en:Package-review.form
State accepted -actions {save mark_implemented} -form en:Package-review.form
State rejected -actions {save} -form en:Package-review.form
State implemented -actions {save} -form en:Package-review.form

::xowiki::policy5 copy ::xowf::mypolicy
Class ::xowf::mypolicy::FormPage -array set require_permission {
      edit { 
         {{in_state initial|proposed} creator} admin
      }
      show-object swa
      list swa
      create-new         registered_user
      create-or-use      registered_user
    }
[::xo::cc package_id] set policy ::xowf::mypolicy
workflow_4176960 start start state_initial initial start->state_initial state_accepted accepted state_accepted->state_accepted save state_implemented implemented state_accepted->state_implemented mark_implemented state_initial->state_initial save state_proposed proposed state_initial->state_proposed propose state_proposed->state_accepted accept state_proposed->state_proposed save state_rejected rejected state_proposed->state_rejected reject state_rejected->state_rejected save state_implemented->state_implemented save
References of this Page: en:Package-review.form, en:Package-submit.form Form Constraints: _state:label=State