•  
     
    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
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
13741

References
Referencing story #13243

Git commit

tuleap/tuleap/stable

Follow-ups