public class WorkflowMigrationTerminated extends AbstractWorkflowMigrationResult
|Constructor and Description|
Constructs a result that indicates termination of the migration due to the fact that too many issues failed to migrate.
Constructs a result that indicates termination due to the fact that errors were found with the data before the migration actaully began and any issues modified.
|Modifier and Type||Method and Description|
Returns a collection of errors that were found before starting the migration.
Returns the result of the workflow migration.
public WorkflowMigrationTerminated(SimpleErrorCollection errorCollection)
errorCollection- collection of any errors that were found. Must contain at least one error or error message and must not be null.
IllegalArgumentException- if null or empty error collection is passed.
public WorkflowMigrationTerminated(Map<Long,String> failedIssues)
failedIssues- the issue id to issue key map of issues that failed migration until the decision was made to terminate the migration. Must not be null or empty.
IllegalArgumentException- if null or empty map is passed.
public int getResult()
public ErrorCollection getErrorCollection()
Copyright © 2002-2022 Atlassian. All Rights Reserved.