Forum

[SOLVED] workflow s...
 
Notifications
Retirer tout

[SOLVED] workflow start by "pause"

10 Posts
2 Utilisateurs
0 Reactions
2,863 Vu
(@pdecloedt)
Posts: 165
Active Member
Début du sujet
 
[#8946]

to simplify planning, I would like to be able to "pause" activities as soon as they are created, so that they do not enter the load. keep the "pause" mode when they are assigned and finally release the "pause" mode when they go "in progress". I manage to do it, except for the first "saved" state where it is impossible to have the "pause" boolean active by default. could you help me ?


 
Posté : 23 Juin AM 11:066
(@babynus)
Posts: 14952
Membre Admin
 

Only solution will be to use the Screen Customization plugin.
Then, just define default value to "1" for objects Activity and Activity - Progress
(you have to do this on both as these values are duplicated and synchonized only through Status or Interface changes)


 
Posté : 23 Juin AM 11:066
(@pdecloedt)
Posts: 165
Active Member
Début du sujet
 

 
Posté : 23 Juin PM 12:066
(@pdecloedt)
Posts: 165
Active Member
Début du sujet
 

I try with "true", It seems to work, but when I create a new activity, with first workflow "Enregistré", the "mettre en pause" is not at true value ???
I put by defaut value on true, both : Activity / "mettre en pause" and Activiy-Progress / "mettre en pause"...


 
Posté : 23 Juin PM 12:066
(@babynus)
Posts: 14952
Membre Admin
 

In fact, expected value in "on"
My fault, I tested and entered "on" but wrote "1" in the post.
I need a week-end... 


 
Posté : 23 Juin PM 12:066
(@pdecloedt)
Posts: 165
Active Member
Début du sujet
 

it's works thk you. But now, when i change the workflow to "assigné" it keep the "on" boolean state ...
normaly on "assigné" status, it will not on ...


 
Posté : 23 Juin PM 13:066
(@pdecloedt)
Posts: 165
Active Member
Début du sujet
 

 
Posté : 23 Juin PM 13:066
(@babynus)
Posts: 14952
Membre Admin
 

Then default value for "pause" should be

###EVAL### ($this->idStatus==1)?1:0

and you must set pause to "readonly"
I tested, it works


 
Posté : 23 Juin PM 13:066
(@pdecloedt)
Posts: 165
Active Member
Début du sujet
 

in both object ? activity an activity-progress ?

 


 
Posté : 23 Juin PM 13:066
(@babynus)
Posts: 14952
Membre Admin
 

Well, well, well ...
Formula is not the same for both, but both are required
For Activity 

###EVAL### ($this->idStatus==1)?1:0

For Activity - Progress 

###EVAL### (SqlList::getFieldFromId('Activity', $this->refId,'idStatus')==1)?1:0;

Easy ! 


 
Posté : 23 Juin PM 14:066
Share:
Retour en haut