Package su.onno.process
Interface ProcessDefinitionMigration<FP,FS extends Enum<FS> & ProcessStepKey,TP,TS extends Enum<TS> & ProcessStepKey>
- Type Parameters:
FP- source payload typeFS- source step enumTP- target payload typeTS- target step enum
public interface ProcessDefinitionMigration<FP,FS extends Enum<FS> & ProcessStepKey,TP,TS extends Enum<TS> & ProcessStepKey>
Typed migration between two registered versions of the same durable process definition.
-
Method Details
-
from
ProcessDefinition<FP,FS> from()Definition version whose durable instances this migration accepts. -
to
ProcessDefinition<TP,TS> to()Later definition version produced by this migration. -
migrate
Map the payload and every active token to the target definition.
-