Package org.camunda.bpm.engine.impl.cmd
Class CreateMigrationPlanCmd
- java.lang.Object
-
- org.camunda.bpm.engine.impl.cmd.CreateMigrationPlanCmd
-
- All Implemented Interfaces:
Command<MigrationPlan>
public class CreateMigrationPlanCmd extends java.lang.Object implements Command<MigrationPlan>
- Author:
- Thorben Lindhauer
-
-
Field Summary
Fields Modifier and Type Field Description static MigrationLogger
LOG
protected MigrationPlanBuilderImpl
migrationBuilder
-
Constructor Summary
Constructors Constructor Description CreateMigrationPlanCmd(MigrationPlanBuilderImpl migrationPlanBuilderImpl)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
-
-
-
-
Field Detail
-
LOG
public static final MigrationLogger LOG
-
migrationBuilder
protected MigrationPlanBuilderImpl migrationBuilder
-
-
Constructor Detail
-
CreateMigrationPlanCmd
public CreateMigrationPlanCmd(MigrationPlanBuilderImpl migrationPlanBuilderImpl)
-
-
Method Detail
-
execute
public MigrationPlan execute(CommandContext commandContext)
- Specified by:
execute
in interfaceCommand<MigrationPlan>
-
validateMigration
protected void validateMigration(CommandContext commandContext, MigrationPlanImpl migrationPlan, ProcessDefinitionEntity sourceProcessDefinition, ProcessDefinitionEntity targetProcessDefinition)
-
validateVariables
protected void validateVariables(VariableMap variables, MigrationPlanValidationReportImpl planReport)
-
getProcessDefinition
protected ProcessDefinitionEntity getProcessDefinition(CommandContext commandContext, java.lang.String id, java.lang.String type)
-
checkAuthorization
protected void checkAuthorization(CommandContext commandContext, ProcessDefinitionEntity sourceProcessDefinition, ProcessDefinitionEntity targetProcessDefinition)
-
generateInstructions
protected java.util.List<MigrationInstruction> generateInstructions(CommandContext commandContext, ProcessDefinitionImpl sourceProcessDefinition, ProcessDefinitionImpl targetProcessDefinition, boolean updateEventTriggers)
-
validateMigrationInstructions
protected void validateMigrationInstructions(CommandContext commandContext, MigrationPlanValidationReportImpl planReport, MigrationPlanImpl migrationPlan, ProcessDefinitionImpl sourceProcessDefinition, ProcessDefinitionImpl targetProcessDefinition)
-
validateInstruction
protected MigrationInstructionValidationReportImpl validateInstruction(ValidatingMigrationInstruction instruction, ValidatingMigrationInstructions instructions, java.util.List<MigrationInstructionValidator> migrationInstructionValidators)
-
wrapMigrationInstructions
protected ValidatingMigrationInstructions wrapMigrationInstructions(MigrationPlan migrationPlan, ProcessDefinitionImpl sourceProcessDefinition, ProcessDefinitionImpl targetProcessDefinition, MigrationPlanValidationReportImpl planReport)
-
-