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>