stable

Clone or download

Read-only

Introduce the workflow state object

story #12189 prevent field modification according to state This commit does not bring any functional change. It introduces the state object that will be used to work with workflow in simple mode. This object is only used in XML export context for now. It will be used elsewhere once integrated. Change-Id: I0723e0ab1eb535f85f4afdcb2ec5cf941fb14465

Modified Files

Name
M plugins/tracker/include/Tracker/Tracker.class.php +4 −1 Go to diff View file
M plugins/tracker/include/Workflow/SimpleMode/SimpleWorkflowDao.php +0 −12 Go to diff View file
M plugins/tracker/include/Workflow/SimpleMode/SimpleWorkflowXMLExporter.php +22 −12 Go to diff View file
A plugins/tracker/include/Workflow/SimpleMode/State/ReferenceTransitionExtractor.php +51 −0 Go to diff View file
A plugins/tracker/include/Workflow/SimpleMode/State/State.php +60 −0 Go to diff View file
A plugins/tracker/include/Workflow/SimpleMode/State/StateFactory.php +52 −0 Go to diff View file
M plugins/tracker/include/Workflow/TransitionFactory.class.php +17 −1 Go to diff View file
M plugins/tracker/include/Workflow/Workflow_TransitionDao.class.php +18 −11 Go to diff View file
M plugins/tracker/phpunit/Tracker/Workflow/SimpleMode/SimpleWorkflowXMLExporterTest.php +25 −25 Go to diff View file
A plugins/tracker/phpunit/Tracker/Workflow/SimpleMode/State/ReferenceTransitionExtractorTest.php +83 −0 Go to diff View file