Class MigratingActivityInstanceValidationReportImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.migration.validation.instance.MigratingActivityInstanceValidationReportImpl
-
- All Implemented Interfaces:
MigratingActivityInstanceValidationReport
public class MigratingActivityInstanceValidationReportImpl extends java.lang.Object implements MigratingActivityInstanceValidationReport
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
activityInstanceId
protected java.util.List<java.lang.String>
failures
protected MigrationInstruction
migrationInstruction
protected java.lang.String
sourceScopeId
-
Constructor Summary
Constructors Constructor Description MigratingActivityInstanceValidationReportImpl(MigratingActivityInstance migratingActivityInstance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFailure(java.lang.String failure)
java.lang.String
getActivityInstanceId()
java.util.List<java.lang.String>
getFailures()
MigrationInstruction
getMigrationInstruction()
java.lang.String
getSourceScopeId()
boolean
hasFailures()
-
-
-
Field Detail
-
activityInstanceId
protected java.lang.String activityInstanceId
-
sourceScopeId
protected java.lang.String sourceScopeId
-
migrationInstruction
protected MigrationInstruction migrationInstruction
-
failures
protected java.util.List<java.lang.String> failures
-
-
Constructor Detail
-
MigratingActivityInstanceValidationReportImpl
public MigratingActivityInstanceValidationReportImpl(MigratingActivityInstance migratingActivityInstance)
-
-
Method Detail
-
getSourceScopeId
public java.lang.String getSourceScopeId()
- Specified by:
getSourceScopeId
in interfaceMigratingActivityInstanceValidationReport
- Returns:
- the id of the source scope of the migrated activity instance
-
getActivityInstanceId
public java.lang.String getActivityInstanceId()
- Specified by:
getActivityInstanceId
in interfaceMigratingActivityInstanceValidationReport
- Returns:
- the activity instance id of this report
-
getMigrationInstruction
public MigrationInstruction getMigrationInstruction()
- Specified by:
getMigrationInstruction
in interfaceMigratingActivityInstanceValidationReport
- Returns:
- the migration instruction that cannot be applied
-
addFailure
public void addFailure(java.lang.String failure)
-
hasFailures
public boolean hasFailures()
- Specified by:
hasFailures
in interfaceMigratingActivityInstanceValidationReport
- Returns:
- true if the reports contains failures, false otherwise
-
getFailures
public java.util.List<java.lang.String> getFailures()
- Specified by:
getFailures
in interfaceMigratingActivityInstanceValidationReport
- Returns:
- the list of failures
-
-