public class WorkflowMigrationTerminated extends AbstractWorkflowMigrationResult
failedIssuesSUCCESS, TERMINATED| Constructor and Description |
|---|
WorkflowMigrationTerminated(Map<Long,String> failedIssues)
Constructs a result that indicates termination of the migration due to the fact that too many
issues failed to migrate.
|
WorkflowMigrationTerminated(SimpleErrorCollection errorCollection)
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 |
|---|---|
ErrorCollection |
getErrorCollection()
Returns a collection of errors that were found before starting the migration.
|
int |
getResult()
Returns the result of the workflow migration.
|
getFailedIssues, getNumberOfFailedIssuespublic 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()
WorkflowMigrationResultWorkflowMigrationResult.SUCCESS or WorkflowMigrationResult.TERMINATEDpublic ErrorCollection getErrorCollection()
WorkflowMigrationResultCopyright © 2002-2015 Atlassian. All Rights Reserved.