Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[SOLVED] workflow s...
 
Notifications
Clear all

[SOLVED] workflow start by "pause"

10 Posts
2 Users
0 Reactions
2,864 Views
(@pdecloedt)
Posts: 165
Active Member
Topic starter
 
[#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 ?


 
Posted : 23 Jun 2023 11H25
(@babynus)
Posts: 14952
Member 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)


 
Posted : 23 Jun 2023 11H58
(@pdecloedt)
Posts: 165
Active Member
Topic starter
 

 
Posted : 23 Jun 2023 12H17
(@pdecloedt)
Posts: 165
Active Member
Topic starter
 

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"...


 
Posted : 23 Jun 2023 12H28
(@babynus)
Posts: 14952
Member 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... 


 
Posted : 23 Jun 2023 12H41
(@pdecloedt)
Posts: 165
Active Member
Topic starter
 

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 ...


 
Posted : 23 Jun 2023 13H07
(@pdecloedt)
Posts: 165
Active Member
Topic starter
 

 
Posted : 23 Jun 2023 13H08
(@babynus)
Posts: 14952
Member 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


 
Posted : 23 Jun 2023 13H26
(@pdecloedt)
Posts: 165
Active Member
Topic starter
 

in both object ? activity an activity-progress ?

 


 
Posted : 23 Jun 2023 13H46
(@babynus)
Posts: 14952
Member 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 ! 


 
Posted : 23 Jun 2023 14H05
Share:

Scroll to Top