stable

Clone or download

Read-only

Import a simple workflow with exisitng actions

This is part of story #13243 Import/export workflow simple mode via XML A simple workflow can now be imported with post actions par state. Only the existing ones can be imported. The new action (frozen field) will be managed in a dedicated commit. The actions can be imported like: <simple_workflow> <field_id REF="F42704"/> <is_used>1</is_used> <states> <state> <to_id REF="V36863"/> <transitions> <transition> <from_id REF="null"/> </transition> <transition> <from_id REF="V36864"/> </transition> </transitions> <postactions> <postaction_field_date valuetype="2"> <field_id REF="F42705"/> </postaction_field_date> </postactions> </state> </states> </simple_workflow> Change-Id: Ife822c299bea54fd9a45e48b36f9809a7de97edc

Modified Files

Name
M plugins/tracker/include/Workflow/TransitionFactory.class.php +14 −1 Go to diff View file
M plugins/tracker/phpunit/Tracker/Workflow/WorkflowFactoryTest.php +8 −4 Go to diff View file
M plugins/tracker/phpunit/Tracker/Workflow/_fixtures/importSimpleWorkflow.xml +5 −0 Go to diff View file
M plugins/tracker/tests/rest/Workflows/SimpleModeTest.php +18 −0 Go to diff View file
M plugins/tracker/tests/rest/_fixtures/Workflows/project.xml +15 −2 Go to diff View file
M plugins/tracker/www/resources/workflow.rnc +13 −9 Go to diff View file
M plugins/tracker/www/resources/workflow.rng +27 −21 Go to diff View file
M src/common/xml/resources/project/workflow.rng +27 −21 Go to diff View file