Loading...
Use
Create
Develop
FAQ
Troubleshooting
History: Transition Handler
View page
Collapse Into Edit Sessions
Source of version: 3
«
»
Transitions are used to create workflow like behaviors inside tikiwiki. Group and category transitions. While they behave on different object types, they use the exact same logic. Category transitions require the ((doc:Module category_transition)) to be used. On any object inside tikiwiki supporting the standard category variables, the module will generate a form with the available transitions. Each category is considered to be a state. Group transitions are used through ((doc:Plugin memberlist)), which displays the selected set of groups and the controls that apply to them. Transitions are defined as a link between two states. They can optionally preserve the previous state during the transition and specify guards on other states. !Example The following example creates a simple ((doc:document workflow)) for documents that require approval. The three main states are In Progress, In Review and Approved. The guards on the approval transition prevent the transition from being triggered unless the document was approved by both QA and Development. These two additional approvals can be granted by triggering transitions that preserve the review state. When the guards are not met, the causes are detailed in the category transition module. The example is incomplete because it does not specify the permissions. Using the object type ''transition'', ''tiki_p_trigger_transition'' can be granted on transitions. Additionally, permissions can be assigned to the categories to prevent anyone from changing them directly and enforce the workflow. {CODE(caption=>YAML)} 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} !!Transition Object ||__Field Name__|__Mandatory__|__Value__ name|yes|Name of the transition as it will be displayed type|yes|category or group from|yes|Point of origin. Either a group name or a category id. to|yes|Destination. Same format as from. preserve| |y or n, if the origin state of the transition should be kept guards| |List of guards, specifying the guard type (exactly, atLeast, atMost), the amount of states required and the list of participating states. ||
History
Enable pagination
rows per page
HTML diff
Side-by-side diff
Side-by-side diff by characters
Inline diff
Inline diff by characters
Full side-by-side diff
Full side-by-side diff by characters
Full inline diff
Full inline diff by characters
Unified diff
Side-by-side view
HTML diff
Side-by-side diff
Advanced
Information
Version
Mon 13 of Sep, 2010 22:23 GMT-0000
Marc Laporte
cleaner
5
Sat 19 of Sep, 2009 04:06 GMT-0000
Marc Laporte
4
Sat 19 of Sep, 2009 03:57 GMT-0000
Marc Laporte
3
Sat 19 of Sep, 2009 03:40 GMT-0000
Marc Laporte
link to docs
2
Fri 18 of Sep, 2009 19:37 GMT-0000
System Administrator
1
Select action to perform with checked...
Remove
OK
Menu
Featured profiles
Profiles in Wizard
Profiles Todos
Handlers
Profiles Tester
Admin
of this site
Current Profiles
Tiki version
21.x
24.x
26.x
27.x
28.x
Deprecated
25.x
state
Not fully functional yet
alpha
beta
release
type
Available in the Profiles Wizard (12+)
Featured profiles
Full profile (out of the box & ready to go)
Learning profile (to show off feature)
Long tail
Mini-profile (can be included in other)
Profile-snippet (optional but needs another "parent" profile)
Security
Tests
Latest Changes
test_profile_change
test_new_personal_blog_and_profile
test_new_personal_blog_and_profile_vlog_include
Bootstrap Row and Col Plugin Aliases
Profile_Test_all_Modules_Test_all_Modules_page
Bug_Tracker_16
Bug_Tracker_16
Profile_Tracker_as_Calendar_page_09
Tracker_as_Calendar_09
TikiKart_Product_Include
Shopping_Cart
Scheduler_Presets_20
test_new_personal_blog_and_profile_post3_include
test_new_personal_blog_and_profile_post2_include
test_new_personal_blog_and_profile_post1_include
test_new_personal_blog_and_profile_about_include
test_new_personal_blog_and_profile_social_include
R_demo
Voting_System
Test_all_tracker_field_types_profile
...more
Like almost all *.tiki.org sites, you can log in with your login from
https://tiki.org
(register over there)
Search
Find
Most Popular Tags
admin
agenda
alias
antibot
antibot captcha
app
archive
articles
banning
batch
blogs
calculations
calendars
cart
categories
cluster
codemirror
comments
computation
contact us
datachannel
debug
debug console
dropdown with other
error messages
features
file galleries
forums
geo
geocms
geolocation
group homepages
group watches
header
i18n
images
item link
items list
jquery
languages
location
map
maps
maths
menu
menupage
multilingual
ol3
ol5
openlayers
paypal
plugin
plugin alias
plugin datachannel
plugin fade
plugin tabs
plugin trackerlist
pretty trackers
print
project management
r
r project
realnames
rss
static
static text
statistics
stats
structures
syntax highlighter
tablesorter
template
trackers
user watches
visualization
watches
webservice
wiki
wiki argument variables
wiki structures
Tiki Newsletter
Subscribe to the Tiki newsletter.
Don't miss major announcements and other news!