public class Inconsistency extends Object implements Serializable
Inconsistency class provides information about a model inconsistency.
Inconsistencies are of two types: errors and warnings. When an error inconsistency is
issued, the model is unable to work (models with errors cannot be deployed). A warning
inconsistency implies that the specific workflow operation may fail.| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR
Specifies an error inconsistency.
|
static int |
WARNING
Specifies a warning inconsistency.
|
| Constructor and Description |
|---|
Inconsistency(org.eclipse.stardust.common.error.ErrorCase error,
int severity) |
Inconsistency(org.eclipse.stardust.common.error.ErrorCase error,
org.eclipse.stardust.engine.core.model.utils.ModelElement sourceElement,
int severity) |
Inconsistency(org.eclipse.stardust.common.error.ErrorCase error,
String message,
org.eclipse.stardust.engine.core.model.utils.ModelElement sourceElement,
int severity) |
Inconsistency(int severity,
org.eclipse.stardust.engine.core.model.utils.ModelElement sourceElement,
String pattern,
Object... arguments) |
Inconsistency(String message,
int severity)
Deprecated.
|
Inconsistency(String message,
int sourceElementOID,
int severity)
Deprecated.
|
Inconsistency(String message,
org.eclipse.stardust.engine.core.model.utils.ModelElement sourceElement,
int severity)
Constructs an Inconsistency for a specific model element.
|
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.stardust.common.error.ErrorCase |
getError() |
String |
getErrorID()
Gets the errorID contained in the inconsistency.
|
String |
getMessage()
Gets the message contained in the inconsistency.
|
int |
getSeverity()
Gets the severity of the inconsistency.
|
String |
getSourceElementId()
Returns the ID of the inconsistent model element (activity, role etc.).
|
String |
getSourceElementName()
Returns the Name of the inconsistent model element (activity, role etc.).
|
int |
getSourceElementOID()
Returns the element OID of the inconsistent model element (activity, role etc.).
|
String |
toString() |
public static final int WARNING
public static final int ERROR
public Inconsistency(String message, int severity)
message - inconsistency message.severity - the severity: WARNING or ERROR.public Inconsistency(String message, int sourceElementOID, int severity)
message - inconsistency message.sourceElementOID - the OID of the inconsistent model element.severity - the severity: WARNING or ERROR.public Inconsistency(String message, org.eclipse.stardust.engine.core.model.utils.ModelElement sourceElement, int severity)
message - inconsistency message.sourceElement - the inconsistent model element.severity - the severity: WARNING or ERROR.public Inconsistency(org.eclipse.stardust.common.error.ErrorCase error,
String message,
org.eclipse.stardust.engine.core.model.utils.ModelElement sourceElement,
int severity)
public Inconsistency(org.eclipse.stardust.common.error.ErrorCase error,
org.eclipse.stardust.engine.core.model.utils.ModelElement sourceElement,
int severity)
public Inconsistency(org.eclipse.stardust.common.error.ErrorCase error,
int severity)
public int getSourceElementOID()
public String getSourceElementId()
public String getSourceElementName()
public int getSeverity()
public String getMessage()
public String getErrorID()
public org.eclipse.stardust.common.error.ErrorCase getError()
Copyright © 2016 Eclipse Stardust. All Rights Reserved.