public class BusinessFlow extends BusinessFlowBase implements java.io.Serializable
Encapsulates the data and logic for business flow.
BusinessFlows are contained by BusinessFlowTypes. Each BusinessFlow instance belongs to exactly one BusinessFlowType. BusinessFlows contain BusinessFlowTransitions.
This class is immutable to objects outside of it's package. The arrays returned by methods are copies.
BusinessFlows have states, BusinessFlowStates. States may be shared among different BusinessFlows. To associate different entry actions, exit actions, and response views for the different BusinessFlows, BusinessFlows contain BusinessFlowStateRelations.
BusinessFlowDomain
,
BusinessFlowState
,
BusinessFlowType
,
BusinessFlowStateRelations
,
BusinessFlowTransition
,
BusinessFlowStateGroup
,
CompositeBusinessFlow
,
Serialized FormConstructor and Description |
---|
BusinessFlow(java.lang.Long id,
java.lang.String identifier,
java.lang.Integer priority,
java.lang.Long flowTypeId,
java.lang.String attribute,
java.lang.Integer languageId,
boolean compositeFlow,
java.lang.String shortDescription,
java.lang.String description)
Constructs a new BusinessFlow with the specified values.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttribute()
The string value attribute that further describes
this BusinessFlow.
|
BusinessFlowStateRelation[] |
getBusinessFlowStateRelations()
BusinessFlows have states, BusinessFlowStates.
|
BusinessFlowTransition[] |
getBusinessFlowTransitions()
The BusinessFlowTransitions belonging to this BusinessFlow.
|
BusinessFlowType |
getBusinessFlowType()
BusinessFlows are contained by BusinessFlowTypes.
|
java.lang.Long |
getBusinessFlowTypeID()
The owning BusinessFlowType unique id value
|
java.lang.String |
getDescription(java.lang.Integer langId)
Descriptions may be associated with multiple languages.
|
java.lang.String |
getShortDescription(java.lang.Integer langId)
Descriptions may be associated with multiple languages.
|
boolean |
isCompositeFlow()
Indicates whether this BusinessFlow is a composition of flows.
|
java.lang.String |
toString()
Returns a String object representing this BusinessFlow and it's
associated values.
|
compareTo, getID, getIdentifier, getPriority
public BusinessFlow(java.lang.Long id, java.lang.String identifier, java.lang.Integer priority, java.lang.Long flowTypeId, java.lang.String attribute, java.lang.Integer languageId, boolean compositeFlow, java.lang.String shortDescription, java.lang.String description)
id
- The unique id value for this BusinessFlow.identifier
- The unique string identifier for this BusinessFlow.priority
- The display sequence priority for this BusinessFlow.flowTypeId
- The flow type id value to which this BusinessFlow
belongs to.attribute
- A string value attribute that further describes
this BusinessFlow.languageId
- The default language id value indicating the
language used for the default short and long description values.compositeFlow
- A Flag to indicate if this BusinessFlow is a
composition of flows.shortDescription
- The default short description for this
BusinessFlow in the language specified by the languageId value.description
- The default long description for this
BusinessFlow in the language specified by the languageId value.public java.lang.String getAttribute()
public BusinessFlowStateRelation[] getBusinessFlowStateRelations()
BusinessFlowStateRelations
public BusinessFlowTransition[] getBusinessFlowTransitions()
BusinessFlowTransition
public BusinessFlowType getBusinessFlowType()
BusinessFlowType
public java.lang.Long getBusinessFlowTypeID()
getBusinessFlowType()
,
BusinessFlowType
public java.lang.String getDescription(java.lang.Integer langId)
getDescription
in class BusinessFlowBase
langId
- The language id value.public java.lang.String getShortDescription(java.lang.Integer langId)
langId
- The language integer id value.public boolean isCompositeFlow()
true
if this BusinessFlow is a composite flow,
false
otherwisepublic java.lang.String toString()
toString
in class BusinessFlowBase