public class StateModelMigrator extends Object
A worker class encapsulating the logic for run-time case migration.
Constructor and Description |
---|
StateModelMigrator(StateModel stateModel,
CasePlanModelData oldState,
TDefinitions oldModel,
TDefinitions newModel) |
Modifier and Type | Method and Description |
---|---|
CasePlanModelData |
getNewState() |
MigrationResult |
migrate(EngineListeners engineListeners,
MigrationListeners migrationListeners)
Assumes a 1:1 mapping of plan items / discretionary items to plan item definitions.
|
public StateModelMigrator(StateModel stateModel, CasePlanModelData oldState, TDefinitions oldModel, TDefinitions newModel)
public MigrationResult migrate(EngineListeners engineListeners, MigrationListeners migrationListeners)
Assumes a 1:1 mapping of plan items / discretionary items to plan item definitions. This is not a CMMN requirement but enforced by VIS.
The three main steps of the algorithm: <ul> <li>Match plan item model IDs in use against new model. <li>Update IDs of stored plan item state with the new IDs.</li> <li>Ensure stage hierarchy consistency, introducing new stages where necessary.</li> </ul>
public CasePlanModelData getNewState()
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.