•  
     
    story #13243 Import/export workflow simple mode via XML
Summary
Tracker Admin
Import/export workflow simple mode via XML
Empty

Configuration must be exported/imported with tracker XML format.

By default, all existing workflows are imported as advanced ones: <workflow>...</workflow>

Simple workflows have their own tag: <simple_workflow>...</simple_workflow>

Advanced mode

The current workflow XML implementation deals with advanced mode. Nothing change for the XML content of this mode (this is the existing one). An error must be raised if non available post actions (for instance frozen fields) are set in this mode.

Simple mode

Workflows in simple mode deal with states. Each conditions and post actions are defined at each state level. Then each transitions defined in this state use these conditions and post actions.

In XML, the proposed strucure is:

<simple_workflow>
    <field_id REF="F32"/>
    <is_used>1</is_used>
    <states>
        <state>
            <to_id REF="F32-V0"/>
            <transitions>
                <transition>
                    <from_id REF="null"/>
                </transition>
                <transition>
                    <from_id REF="F32-V1"/>
                </transition>
            </transitions>
            <postactions>
                <postaction_field_date valuetype="1">
                    <field_id REF="F1"/>
                </postaction_field_date>
            </postactions>
            <permissions>
                <permission ugroup="UGROUP_PROJECT_MEMBERS"/>
            </permissions>
        </state>
        <state>
            <to_id REF="F32-V1"/>
            <transitions>
                <transition>
                    <from_id REF="F32-V0"/>
                </transition>
            </transitions>
        </state>
    </states>
</simple_workflow>
Empty
Empty
Status
Empty
Done
Development
  • [ ] Does it involves User Interface? 
  • [ ] Are there any mockups?
  • [ ] Are permissions checked?
  • [ ] Does it need Javascript development?
  • [ ] Does it need a forge upgrade bucket?
  • [ ] Does it need to execute things in system events?
  • [ ] Does it impact project creation (templates)?
  • [ ] Is it exploratory?
Empty
Details
#13243
Martin GOYOT (goyotm)
2019-05-22 18:41
2019-04-08 16:46
14115

References
Referencing story #13243

Git commit

tuleap/tuleap/stable

Fix recent issues spotted by vimeo/psalm in the tracker plugin a2b4ad31c5
Refactoring: Extract some unit tests to PHPUnit f7b0797e93
First step of simple_workflog XML import ddcf9e9afb
Import transitions without actions and conditions in simple mode 92457d72fd
Refactoring: extract workflow content in a dedicated RNC file b2df0b4138
Refactoring: extract workflow content in a dedicated RNC file 7194abf1c3
Import a simple workflow with exisitng actions cbdaf0dba3
Import a simple workflow with conditions b91a30759e
Refactoring: Frozen field object must use the form element field objects 3fb9a17575
Import frozen fields action from XML simple workflow 85bb091316
Begin to export simple workflows in XML 598b497dec
getFirstTransitionForCurrentState must return the first non new transition 04b74aecad
Export states for XML simple workflows 6bdaf1333b
Export transitions for XML simple workflows 252b02fe0a
Export conditions and actions in XML for simple workflows 91baedd1f1
Remove feature flag 44545e7811
Export frozen fields action in XML 0bee2d6be1

Follow-ups

User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes
User avatar
  • Acceptance criteria
    Something went wrong, the follow up content couldn't be loaded
    Only formatting have been changed, you should switch to markup to see the changes