stable
Clone or download
This is part of story #13243 Import/export workflow simple mode via XML A simple workflow can now be imported with pre conditions par state. 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> <conditions> <condition type="perms"> <permissions> <permission ugroup="UGROUP_PROJECT_MEMBERS"/> </permissions> </condition> <condition type="notempty"> <field REF="F42708"/> </condition> </conditions> </state> </states> </simple_workflow> Change-Id: Ib3dd2a561a992694dae48eeacc140c83ae420b29
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/TrackerXmlImport.class.php | +2 | −1 | Go to diff View file |
M | plugins/tracker/include/Workflow/TransitionFactory.class.php | +31 | −25 | Go to diff View file |
M | plugins/tracker/include/Workflow/WorkflowFactory.class.php | +3 | −2 | Go to diff View file |
M | plugins/tracker/phpunit/Tracker/Workflow/TransitionFactoryTest.php | +6 | −2 | Go to diff View file |
M | plugins/tracker/phpunit/Tracker/Workflow/WorkflowFactoryTest.php | +3 | −2 | Go to diff View file |
M | plugins/tracker/phpunit/Tracker/Workflow/_fixtures/importSimpleWorkflow.xml | +3 | −0 | Go to diff View file |
M | plugins/tracker/tests/rest/Workflows/SimpleModeTest.php | +15 | −0 | Go to diff View file |
M | plugins/tracker/tests/rest/_fixtures/Workflows/project.xml | +18 | −0 | Go to diff View file |
M | plugins/tracker/www/resources/workflow.rnc | +14 | −9 | Go to diff View file |
M | plugins/tracker/www/resources/workflow.rng | +16 | −12 | Go to diff View file |
M | src/common/xml/resources/project/workflow.rng | +16 | −12 | Go to diff View file |