stable

Clone or download

Read-only

Import transitions without actions and conditions in simple mode

This is part of story #13243 Import/export workflow simple mode via XML Transitions can now be imported for workflows in simple mode. Example: <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> </state> </states> </simple_workflow> We can defined in XMl a state with the destination value id. Then each transitions for this state can be defined by adding the from value id. Change-Id: I79fb8b6e7e1b65a5cb0aa4efc258bc437efd8ccd

Modified Files

Name
M plugins/tracker/include/TrackerXmlImport.class.php +1 −2 Go to diff View file
M plugins/tracker/include/Workflow/TransitionFactory.class.php +20 −0 Go to diff View file
M plugins/tracker/include/Workflow/WorkflowFactory.class.php +10 −4 Go to diff View file
A plugins/tracker/phpunit/Tracker/Workflow/TransitionFactoryTest.php +143 −0 Go to diff View file
M plugins/tracker/phpunit/Tracker/Workflow/WorkflowFactoryTest.php +25 −4 Go to diff View file
M plugins/tracker/phpunit/Tracker/Workflow/_fixtures/importSimpleWorkflow.xml +13 −0 Go to diff View file
M plugins/tracker/tests/rest/Workflows/SimpleModeTest.php +1 −1 Go to diff View file
M plugins/tracker/tests/rest/_fixtures/Workflows/project.xml +21 −0 Go to diff View file
M plugins/tracker/tests/workflow/TransitionFactoryTest.php +1 −53 Go to diff View file
M plugins/tracker/www/resources/tracker-definition.rnc +15 −1 Go to diff View file
M plugins/tracker/www/resources/tracker-definition.rng +24 −0 Go to diff View file
M src/common/xml/resources/project/tracker-definition.rng +24 −0 Go to diff View file