Projet

Général

Profil

Actions

Anomalie #4594

ouvert

[WDOC] Erreur lorsqu'une transition/état contient ::

Ajouté par Éric Brison il y a environ 12 ans. Mis à jour il y a environ 12 ans.

Statut:
Analysé
Priorité:
Normal
Assigné à:
-
Version cible:
Début:
26/02/2014
Echéance:
% réalisé:

0%

Temps estimé:
14:00 h
Version source:
Solution proposée:

Mettre les options en JSON.
Cela permets d'avoir une syntaxe homogène avec les autres valeurs stockée comme les paramètres et les valeurs par défaut
et permet de mettre des options structurées (option ayant comme valeur une structure).

On garde la compatibilité avec ancienne notation qui devient obsolète. Cette ancienne notation est de toute façon convertie en JSON pour stockage en BD. (Script de migration à prévoir)

L'option "creation" devient du vrai JSON si on utilise la notation JSON. Prévoir une syntaxe alternative pour utilisation en JSON.

creation={autoclose:"yes",tm_family:wf_famid,tm_workflow:fromid,tm_title:"Test"}

Devient
"creation" : {"autoclose" :"yes",
"tm_family" : "wf_famid",
"tm_workflow": "fromid",
"tm_title" :"Test"}

Principaux fichiers impactés:
Complexité:
Contrôle:
Thème:
Workflow
Régression:

Description

En JS dans une alert sur la page :

creation option syntax error:dmdc_mskiddemande_prestation__e1 [{autoclose:"yes",msk_famid:wf_famid,ba_title:"demande_prestation::E1"}] 
---------
creation option syntax error:dmdc_cviddemande_prestation__e1 [{autoclose:"yes",cv_famid:wf_famid,ba_title:"demande_prestation::E1"}] 
---------
creation option syntax error:dmdc_tmiddemande_prestation__e1 [{autoclose:"yes",tm_family:wf_famid,tm_workflow:fromid,tm_title:"demande_prestation::E1"}] 
---------
creation option syntax error:dmdc_mskiddemande_prestation__e2 [{autoclose:"yes",msk_famid:wf_famid,ba_title:"demande_prestation::E2"}] 
---------
creation option syntax error:dmdc_cviddemande_prestation__e2 [{autoclose:"yes",cv_famid:wf_famid,ba_title:"demande_prestation::E2"}] 
---------
creation option syntax error:dmdc_tmiddemande_prestation__e2 [{autoclose:"yes",tm_family:wf_famid,tm_workflow:fromid,tm_title:"demande_prestation::E2"}] 
---------
creation option syntax error:dmdc_mskiddemande_prestation__e3 [{autoclose:"yes",msk_famid:wf_famid,ba_title:"demande_prestation::E3"}] 
---------
creation option syntax error:dmdc_cviddemande_prestation__e3 [{autoclose:"yes",cv_famid:wf_famid,ba_title:"demande_prestation::E3"}] 
---------
creation option syntax error:dmdc_tmiddemande_prestation__e3 [{autoclose:"yes",tm_family:wf_famid,tm_workflow:fromid,tm_title:"demande_prestation::E3"}] 
---------
creation option syntax error:dmdc_mskiddemande_prestation__e4 [{autoclose:"yes",msk_famid:wf_famid,ba_title:"demande_prestation::E4"}] 
---------
creation option syntax error:dmdc_cviddemande_prestation__e4 [{autoclose:"yes",cv_famid:wf_famid,ba_title:"demande_prestation::E4"}] 
...

Demandes liées 1 (0 ouverte1 fermée)

Copié depuis Core - Anomalie #4548: [WDOC] Erreur lorsqu'une transition/état contient ::IntégréJérôme Augé26/02/2014

Actions

Mis à jour par Éric Brison il y a environ 12 ans

  • Solution proposée mis à jour (diff)
Actions

Formats disponibles : Atom PDF