Package Submit Workflow
This is a workflow definition for submitting .apm-packages to the OpenACS package repository.
References of this Page: en:Package-review.form, en:Package-submit.form
Form Constraints: _state:label=State
# 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