Cette page ne doit être appliquée que si le script de migration assistée vous demande de passer la migration manuelle code.ODF.20240614.MCCWorkflowMCCAction
Une nouvelle action de workflow a été ajoutée pour les conteneurs pour le cycle de vie des MCC.
Si vous avez une surcharge du cycle de vie des conteneurs : WEB-INF/param/workflows/container.xml et qu'il n'y a pas l'action 222222, il faut l'ajouter à la suite de la 22222 :
Oups ! La copie dans le presse papier a échouée. Ouvrez le code et copier-le manuellement.<!-- Edit the container for MCC workflow -->
<action id="222222" name="plugin.odf-pilotage:WORKFLOW_ACTION_CONTAINER_EDIT_MCC_WORKFLOW">
<restrict-to>
<conditions type="AND">
<condition type="avalon">
<arg name="id">org.ametys.cms.workflow.LockCondition</arg>
</condition>
<condition type="avalon">
<arg name="id">org.ametys.cms.workflow.ValidateContentCondition</arg>
</condition>
</conditions>
</restrict-to>
<pre-functions>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.EditContentFunction</arg>
<arg name="notify">false</arg>
</function>
</pre-functions>
<results>
<result old-status=" " status=" " step="3">
<conditions type="AND">
<condition type="avalon">
<arg name="id">org.ametys.plugins.workflow.component.AmetysObjectCurrentStepCondition</arg>
<arg name="object-key">org.ametys.cms.repository.Content</arg>
<arg name="step">3</arg>
</condition>
</conditions>
<post-functions>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.ValidateContentFunction</arg>
<arg name="major">false</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.ValidationStepFunction</arg>
</function>
</post-functions>
</result>
<unconditional-result old-status=" " status=" " step="1">
<post-functions>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.SetCurrentStepIdAndNotifyFunction</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.CreateVersionFunction</arg>
</function>
</post-functions>
</unconditional-result>
</results>
</action> <!-- Edit the container for MCC workflow -->
<action id="222222" name="plugin.odf-pilotage:WORKFLOW_ACTION_CONTAINER_EDIT_MCC_WORKFLOW">
<restrict-to>
<conditions type="AND">
<condition type="avalon">
<arg name="id">org.ametys.cms.workflow.LockCondition</arg>
</condition>
<condition type="avalon">
<arg name="id">org.ametys.cms.workflow.ValidateContentCondition</arg>
</condition>
</conditions>
</restrict-to>
<pre-functions>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.EditContentFunction</arg>
<arg name="notify">false</arg>
</function>
</pre-functions>
<results>
<result old-status=" " status=" " step="3">
<conditions type="AND">
<condition type="avalon">
<arg name="id">org.ametys.plugins.workflow.component.AmetysObjectCurrentStepCondition</arg>
<arg name="object-key">org.ametys.cms.repository.Content</arg>
<arg name="step">3</arg>
</condition>
</conditions>
<post-functions>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.ValidateContentFunction</arg>
<arg name="major">false</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.ValidationStepFunction</arg>
</function>
</post-functions>
</result>
<unconditional-result old-status=" " status=" " step="1">
<post-functions>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.SetCurrentStepIdAndNotifyFunction</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.CreateVersionFunction</arg>
</function>
</post-functions>
</unconditional-result>
</results>
</action> Voir le code
<!-- Edit the container for MCC workflow -->
<action id="222222" name="plugin.odf-pilotage:WORKFLOW_ACTION_CONTAINER_EDIT_MCC_WORKFLOW">
<restrict-to>
<conditions type="AND">
<condition type="avalon">
<arg name="id">org.ametys.cms.workflow.LockCondition</arg>
</condition>
<condition type="avalon">
<arg name="id">org.ametys.cms.workflow.ValidateContentCondition</arg>
</condition>
</conditions>
</restrict-to>
<pre-functions>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.EditContentFunction</arg>
<arg name="notify">false</arg>
</function>
</pre-functions>
<results>
<result old-status=" " status=" " step="3">
<conditions type="AND">
<condition type="avalon">
<arg name="id">org.ametys.plugins.workflow.component.AmetysObjectCurrentStepCondition</arg>
<arg name="object-key">org.ametys.cms.repository.Content</arg>
<arg name="step">3</arg>
</condition>
</conditions>
<post-functions>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.ValidateContentFunction</arg>
<arg name="major">false</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.ValidationStepFunction</arg>
</function>
</post-functions>
</result>
<unconditional-result old-status=" " status=" " step="1">
<post-functions>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.SetCurrentStepIdAndNotifyFunction</arg>
</function>
<function type="avalon">
<arg name="id">org.ametys.cms.workflow.CreateVersionFunction</arg>
</function>
</post-functions>
</unconditional-result>
</results>
</action> Puis partout où on ajoute l'action 22222, il faut ajouter la 222222 :
Oups ! La copie dans le presse papier a échouée. Ouvrez le code et copier-le manuellement.....
<common-action id="22222" />
<common-action id="222222" />
.... ....
<common-action id="22222" />
<common-action id="222222" />
....
....
<common-action id="22222" />
<common-action id="222222" />
....