Loading...
Use
Create
Develop
FAQ
Troubleshooting
History: Transition Handler
View page
Source of version: 5
(current)
Transitions are used to create workflow like behaviors inside Tiki. Group and category transitions. While they behave on different object types, they use the exact same logic. ((doc:Category transitions)) require the ((doc:Module category_transition)) to be used. On any object inside Tiki supporting the standard category variables, the module will generate a form with the available transitions. Each category is considered to be a state. ((doc: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. ||
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_all_tracker_field_types_profile
Scheduler_Presets_20
Tracker_as_Calendar_09
Tracker_as_Calendar_10
Hide Fixed Top Nav Bar on Scroll 19
Easy_GeoBlog
test_profile_change
Profiles_in_Wizard
Random_header_images_14
Hide Fixed Top Nav Bar on Scroll 19
How to Create Profiles
Test_All_Plugins
JonnyBs_Luxury_Tiki_Setup
Collaborative_Multilingual_Terminology
Profile_Test_all_Modules_Test_all_Modules_page
...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!