Const // Create a new agitation trouble model
const agitationTrouble = AgitationRequiredTrouble
.instance(troubleId)
.options({ companionParent: parentTroubleModel })
.build();
// Check deferral status
if (agitationTrouble.shouldDefer) {
console.log('Pouring deferred due to agitation');
}
Registration factory for creating AgitationRequiredTrouble model instances.
Use this constant to create new instances of the agitation trouble model using the fluent factory pattern.