I have experimented that if the shift of a day ends while a worker is working in a workplace, that worker goes inmediatly to the workerpool (as it's logical) but when he exists the workplace he actives the ExitControl of that workplace.
Is there any manner to avoid that call to the exitcontrol when the day ends and the worker exits his workplace?
Solved! Go to Solution.
You cannot prevent that the exit control is being called.
But you can add the following code to the beginning:
if @.pause or @.unplanned then return; end;
This code will check if the worker leaves the workplace because a pause starts or the shift ends and then just returns.
if there is an exit control at the workplace this control method will be executed every time the worker leaves the workplace.
But in this exit control you can check if the state of the station is 'unplanned'.
local Station := self.~.Station; if Station.unplanned then --nothing to do else -- here enter your normal Exit control code end