Class AdHocConversationMigrationValidator
- All Implemented Interfaces:
MigratingActivityInstanceValidator
AdHocSubProcessInstanceValidator explains an active ad hoc scope (CIB7-1857).
A perActivity scope's holder is built to outlive the scope: that is the entire
point, a feedback loop's entries sharing one conversation. It survives exactly as long as the
execution enclosing the scope does, which migration has no defined handling for -- the holder
has no activity, so it is not a node of the ActivityInstance tree migration walks, and
its local variables are never claimed by anything migration does visit. Left unchecked, that
surfaces many steps later and far from the cause, as the engine's generic
Process instance contains not migrated variables failure naming only variable ids.
This runs for every migrating instance, including the process instance's own root scope,
where a holder sits when its scope is modelled directly in the process: unlike
AdHocSubProcessInstanceValidator, there is no reason to exempt the root here, since the
holder being checked is never itself the ad hoc scope.
Refusal is a temporary MVP restriction pending CIB7-2167's generic engine SPI for activity-less dependent state. The engine must not know about AI-specific state. A root holder blocks all migration for the rest of the process instance's lifetime, even after its agentic scope was left for good.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringenclosingDescription(ScopeImpl enclosingScope) How to name the scope the holder was found under, in words for the refusal.voidvalidate(MigratingActivityInstance migratingInstance, MigratingProcessInstance migratingProcessInstance, MigratingActivityInstanceValidationReportImpl instanceReport)
-
Constructor Details
-
AdHocConversationMigrationValidator
public AdHocConversationMigrationValidator()
-
-
Method Details
-
validate
public void validate(MigratingActivityInstance migratingInstance, MigratingProcessInstance migratingProcessInstance, MigratingActivityInstanceValidationReportImpl instanceReport) - Specified by:
validatein interfaceMigratingActivityInstanceValidator
-
enclosingDescription
How to name the scope the holder was found under, in words for the refusal.
-