public interface IScenario
extends com.arcway.cockpit.modulelib2.client.docgen.provider.interfaces.IModuleData, com.arcway.cockpit.docgen.provider.interfaces.ICustomPropertiesAccess
IScenario object allows to read attribute values of a scenario
from the COCKPIT use case module. Starting with this object, you can get references to
the action steps of the scenario.Item type constant: "ucm.scenario"
| Modifier and Type | Method and Description |
|---|---|
IActionStepEnd |
getActionStepEnd()
Returns a "virtual" action step which succeeds the last action step.
|
java.util.List<? extends IActionStep> |
getActionSteps()
Returns all action steps of the scenario.
|
IScenario |
getExtendedScenario()
Returns the scenario which is extended by this scenario.
|
java.lang.String |
getExtendingScenarioEndType()
Returns the end type of the scenario.
|
java.util.List<? extends IScenario> |
getExtensionScenarios()
Returns all immediate extension scenarios of the scenario.
|
java.util.List<? extends IScenario> |
getExtensionScenarios(java.lang.String sortingProperty)
Returns all immediate extension scenarios of the scenario.
|
java.util.List<? extends IUseCase> |
getExtensionUseCases()
Returns all immediate extension use cases of the scenario.
|
java.util.List<? extends IUseCase> |
getExtensionUseCases(int sortingCriterion)
Returns all immediate extension use cases of the scenario.
|
java.util.List<? extends IUseCase> |
getExtensionUseCases(java.lang.String sortingProperty)
Returns all immediate extension use cases of the scenario.
|
java.util.List<java.lang.String> |
getFinalStateOnFailure()
Returns the description of the final state of the scenario in case of failure.
|
java.util.List<java.lang.String> |
getFinalStateOnSuccess()
Returns the description of the final state of the scenario in case of successful completion.
|
java.util.List<java.lang.String> |
getGoal()
Returns the goal of the scenario.
|
java.lang.String |
getId()
Returns the id of the scenario.
|
java.util.List<java.lang.String> |
getInitialSituation()
Returns the description of the initial situation of the use case.
|
java.util.List<java.lang.String> |
getPostconditionOnFailure()
Deprecated.
replaced by getFinalStateOnFailure()
|
java.util.List<java.lang.String> |
getPostconditionOnSuccess()
Deprecated.
replaced by getFinalStateOnSuccess()
|
java.util.List<java.lang.String> |
getPrecondition()
Deprecated.
replaced by getInitialSituation()
|
java.util.List<java.lang.String> |
getTrigger()
Deprecated.
replaced by getTriggeringEvent()
|
java.util.List<java.lang.String> |
getTriggeringEvent()
Returns the description of the triggering event of the use case.
|
java.lang.String |
getUniqueIdentifier()
Returns a unique identifier that uniquely identifies this object
within its project.
|
IUseCase |
getUseCase()
Returns the use case which this scenario is the main scenario or an extension
scenario (immediate or transitive) of.
|
boolean |
hasActionSteps()
Checks whether action steps are defined for the scenario.
|
boolean |
hasExtensionScenarios()
Checks whether the scenario has extension scenarios.
|
boolean |
hasExtensionUseCases()
Checks whether the scenario has extension use cases.
|
boolean |
isExtensionScenario()
Checks whether the scenario is an extension scenario (as opposed to
a main scenario).
|
com.arcway.cockpit.docgen.provider.interfaces.IRecord |
toRecord()
Converts this generic module data into a record.
|
getCategoryID, getCategoryLabel, getDateTimeProperty_MilliSecondsSince_01_01_1970, getFileProperty, getFileProperty, getFilePropertyAsBase64StringList, getFilePropertyAsFileName, getFilePropertyAsFileName, getFilePropertyAsRawStringList, getFilePropertyAsStringList, getPropertyAsString, getPropertyAsStringArray, getPropertyAsStringList, hasCustomPropertyValues, hasDefaultCategory, hasPropertyValue, readImageInfoOfFilePropertygetCommitVersion, getCreationDate_MilliSecondsSince_01_01_1970, getCreationDate, getCreator, getDateOfLastModification_MilliSecondsSince_01_01_1970, getDateOfLastModification, getDisplayName, getLastModifier, getModificationCount, getProjectUniqueIdentifier, getTypeID, getTypeName, toRecordjava.lang.String getUniqueIdentifier()
getUniqueIdentifier in interface com.arcway.cockpit.docgen.provider.interfaces.ICockpitDatajava.lang.String getId()
java.util.List<java.lang.String> getGoal()
@Deprecated java.util.List<java.lang.String> getPrecondition()
java.util.List<java.lang.String> getInitialSituation()
@Deprecated java.util.List<java.lang.String> getPostconditionOnSuccess()
java.util.List<java.lang.String> getFinalStateOnSuccess()
@Deprecated java.util.List<java.lang.String> getPostconditionOnFailure()
java.util.List<java.lang.String> getFinalStateOnFailure()
@Deprecated java.util.List<java.lang.String> getTrigger()
java.util.List<java.lang.String> getTriggeringEvent()
IUseCase getUseCase()
By "transitive" the following is expressed: If the given scenario is an extension scenario, than the algorithm goes upward iteratively to the extended scenario until a main scenario is found. Then the use case which this is the main scenario of is returned.
IActionStepEnd getActionStepEnd()
This dummy action step can be used to retrieve the extensions, which start after the last "real" action step.
boolean hasActionSteps()
"Virtual" action steps are not considered here.
java.util.List<? extends IActionStep> getActionSteps()
"Virtual" action steps are not returned here.
The action steps are sorted in chronological order.
boolean isExtensionScenario()
IScenario getExtendedScenario()
java.lang.String getExtendingScenarioEndType()
The end type is a natural language expression like "after the forking step"/
"at the end with success". The state is returned in the language in which
Cockpit is operating.
Preconditions:the scenario must be an extension scenario, not a main scenario
boolean hasExtensionScenarios()
java.util.List<? extends IScenario> getExtensionScenarios()
The scenarios are sorted by id.
java.util.List<? extends IScenario> getExtensionScenarios(java.lang.String sortingProperty)
sortingProperty - specifies the custom property which shall be used as a criterion for
sorting.boolean hasExtensionUseCases()
java.util.List<? extends IUseCase> getExtensionUseCases()
The use cases are sorted by id.
java.util.List<? extends IUseCase> getExtensionUseCases(int sortingCriterion)
sortingCriterion - specifies the criterion for sorting. Use the
integer constants in IUseCaseDataProvider.java.util.List<? extends IUseCase> getExtensionUseCases(java.lang.String sortingProperty)
sortingProperty - specifies the custom property which shall be used as a criterion for
sorting.com.arcway.cockpit.docgen.provider.interfaces.IRecord toRecord()
In addition to all fields documented at ICustomPropertiesAccess.toRecord(), in
the created record, the following fields are filled accoring to the wrapped cockpit data:
IRecord.ID_KEYtoRecord in interface com.arcway.cockpit.docgen.provider.interfaces.ICockpitDatatoRecord in interface com.arcway.cockpit.docgen.provider.interfaces.ICustomPropertiesAccess