r-io suiter-io suiteinterceptor docs
← Model loading
Node interceptor / Product references

Product conforming goods

When a product reference changes what its goods inherit, gives it again to every good and lot conforming to it.

PCG

ProductConformingGoodsInterceptor

Propagates a change of a reference to its goods.

afterUpdate
TriggerThe node inherits Product and is updated, and what a good inherits from it changed: picture, diagram icon, 3D model, states, transitions or default state. Any other update (a name, a bill of materials) is ignored.
AFTER UPDATEForget, then inherit again

For each good or lot with a Conforms_To to the reference: what it still holds equal to the previous version of the reference is taken off, then the good is saved, which makes it inherit the new version.

ADD · DELETENothing

No hook acts on addition or deletion of the reference.

01 · Behaviour

The previous version is the key

Reference updatedProduct
Inheritable changed?picture, icon, 3D, states
Goods conformingConforms_To
Forget the oldequal values
Save each goodinherit the new

The interceptor compares the previous and the new version of the reference. What a good changed itself is never touched: only values still equal to the previous reference are taken off before the good inherits again. The merge itself is the one of the Conforms_To interceptor.

afterUpdatesimplified
if previous is null or inheritable(previous) == inheritable(product): return
for good in goods --Conforms_To--> product:
    forget(good, previous)        # values still equal to the old reference
    save good                     # inherits again from the new reference
Browse the complete node lifecycleAll node interceptors →
Intercepteur de nœud / Références produit

Biens conformes à un produit

Quand une référence produit change ce dont ses biens héritent, le redonne à chaque bien et lot qui lui est conforme.

PCG

ProductConformingGoodsInterceptor

Propage un changement de référence à ses biens.

afterUpdate
DéclencheurLe nœud hérite de Product et est mis à jour, et ce dont un bien hérite a changé : image, icône du diagramme, modèle 3D, états, transitions ou état par défaut. Toute autre mise à jour (un nom, une nomenclature) est ignorée.
APRÈS MISE À JOUROublier, puis hériter à nouveau

Pour chaque bien ou lot qui a un Conforms_To vers la référence : ce qu’il porte encore d’égal à la version précédente de la référence est retiré, puis le bien est enregistré, ce qui lui fait hériter de la nouvelle version.

AJOUT · SUPPRESSIONRien

Aucun hook n’agit à l’ajout ni à la suppression de la référence.

01 · Comportement

La version précédente fait foi

Référence mise à jourProduct
Héritable changé ?image, icône, 3D, états
Biens conformesConforms_To
Oublier l’ancienvaleurs égales
Enregistrer chaque bienhériter du nouveau

L’intercepteur compare la version précédente et la nouvelle version de la référence. Ce qu’un bien a changé lui-même n’est jamais touché : seules les valeurs encore égales à la référence précédente sont retirées avant que le bien hérite à nouveau. La fusion elle-même est celle de l’intercepteur Conforms_To.

afterUpdatesimplifié
si pas de version précédente ou héritable(précédente) == héritable(produit) : sortir
pour chaque bien --Conforms_To--> produit :
    oublier(bien, précédente)     # valeurs encore égales à l’ancienne référence
    enregistrer le bien           # hérite à nouveau de la nouvelle référence
Consulter le cycle de vie completTous les intercepteurs de nœuds →