Loading...
 
Skip to main content

History: Category_Transition_Demonstration

Source of version: 9 (current)

Copy to clipboard
            This is a profile to demonstrate the ((dev:Category Transition)) feature. This will replace the old ((doc:Galaxia Workflow)) system, in a much more integrated way. Starting in Tiki6, there is a GUI at tiki-admin_transitions.php

To use for wiki pages, simply put a page in the category "In Progress".

It now works for wiki pages, trackers and tracker items. Next step is to make it work with individual files.

To test tracker items, just create a tracker and have a category field. (This should be added to the profile below)



{CODE(caption=>YAML,wrap=>1)}
preferences:
 feature_category_transition: y
 feature_categories: y
objects:
 -
  type: module
  data:
   name: category_transition
   position: right
   order: 1
 -
  type: category
  ref: progress
  data:
   name: In Progress
   items:
    - [ wiki page, HomePage ]
 -
  type: category
  ref: pending
  data:
   name: Pending Approval
 -
  type: category
  ref: approved_by_dev
  data:
   name: Approved by DEV
 -
  type: category
  ref: approved_by_qa
  data:
   name: Approved by QA
 -
  type: category
  ref: approved
  data:
   name: Approved
 -
  type: transition
  data:
   name: Request Review
   type: category
   from: $progress
   to: $pending
 -
  type: transition
  data:
   name: Approve
   type: category
   from: $pending
   to: $approved
   guards:
    - [ exactly, 2, [ $approved_by_dev, $approved_by_qa ] ]
 -
  type: transition
  data:
   name: Reject
   type: category
   from: $pending
   to: $progress
 -
  type: transition
  data:
   name: OK Dev
   type: category
   from: $pending
   to: $approved_by_dev
   preserve: y
 -
  type: transition
  data:
   name: OK QA
   type: category
   from: $pending
   to: $approved_by_qa
   preserve: y
{CODE}