Skip to content

5. Worker and storage 4D

Gary Criblez edited this page Feb 7, 2020 · 1 revision

The component uses Workers and 4D Storage to manage the generation and animation of progress bars.

Each instance will use its own Worker. The name of this one is prefixed "AJUI" and includes the property "pictureFormObjName". However, it is possible to use a single Worker for several instances under three conditions.

  • Use the same image form object and so each instance receives the same name for the "pictureFormObjName" property.
  • Is of the same type of bar (linear or circular).
  • Not used simultaneously (the first condition should already enforce this one).

Concerning storage, it should be noted that each time you want to launch the barbershop animation, the component will store in the object: storage.barbershop.run the name "pictureFormObjName" as a property.

This property will be of the Boolean type and will indicate to the component when to execute and interrupt the "barbershop" animation for the instance concerned. In concrete terms, it acts as a flag. So be careful if you also use 4D storage in your application to not delete this object.