Pour permettre la création d'une fiche utilisateur depuis le service d'inscription, il faut rajouter l'action de workflow 1111 dans le workflow des utilisateurs (fichier WEB-INF/param/workflows/user.xml)
<action id="1111" name="plugin.user-directory:WORKFLOW_ACTION_CREATE_ACCOUNT"> <pre-functions> <function type="avalon"> <arg name="role">org.ametys.web.workflow.CreateContentFunction</arg> </function> <function type="avalon"> <arg name="role">org.ametys.cms.workflow.EditContentFunction</arg> </function> </pre-functions> <results> <unconditional-result old-status=" " status=" " step="3" /> </results> <post-functions> <function type="avalon"> <arg name="role">org.ametys.cms.workflow.SetCurrentStepIdAndNotifyFunction</arg> </function> <function type="avalon"> <arg name="role">org.ametys.cms.workflow.CreateVersionFunction</arg> </function> <function type="avalon"> <arg name="role">org.ametys.web.workflow.ValidateContentFunction</arg> </function> <function type="avalon"> <arg name="role">org.ametys.cms.workflow.ValidationStepFunction</arg> </function> </post-functions> </action>
<action id="1111" name="plugin.user-directory:WORKFLOW_ACTION_CREATE_ACCOUNT"> <pre-functions> <function type="avalon"> <arg name="role">org.ametys.web.workflow.CreateContentFunction</arg> </function> <function type="avalon"> <arg name="role">org.ametys.cms.workflow.EditContentFunction</arg> </function> </pre-functions> <results> <unconditional-result old-status=" " status=" " step="3" /> </results> <post-functions> <function type="avalon"> <arg name="role">org.ametys.cms.workflow.SetCurrentStepIdAndNotifyFunction</arg> </function> <function type="avalon"> <arg name="role">org.ametys.cms.workflow.CreateVersionFunction</arg> </function> <function type="avalon"> <arg name="role">org.ametys.web.workflow.ValidateContentFunction</arg> </function> <function type="avalon"> <arg name="role">org.ametys.cms.workflow.ValidationStepFunction</arg> </function> </post-functions> </action>
<action id="1111" name="plugin.user-directory:WORKFLOW_ACTION_CREATE_ACCOUNT"> <pre-functions> <function type="avalon"> <arg name="role">org.ametys.web.workflow.CreateContentFunction</arg> </function> <function type="avalon"> <arg name="role">org.ametys.cms.workflow.EditContentFunction</arg> </function> </pre-functions> <results> <unconditional-result old-status=" " status=" " step="3" /> </results> <post-functions> <function type="avalon"> <arg name="role">org.ametys.cms.workflow.SetCurrentStepIdAndNotifyFunction</arg> </function> <function type="avalon"> <arg name="role">org.ametys.cms.workflow.CreateVersionFunction</arg> </function> <function type="avalon"> <arg name="role">org.ametys.web.workflow.ValidateContentFunction</arg> </function> <function type="avalon"> <arg name="role">org.ametys.cms.workflow.ValidationStepFunction</arg> </function> </post-functions> </action>