public class BusinessFlowManager
extends java.lang.Object
This class should be used instead of the UBF Access beans. If the UBF registry cache is enabled then the BusinessFlowManager uses the business flow class instances created by the BusinessFlowRegistry class. If the registry cache is not enabled then it uses the Access beans to retrieve the data for the various business flow classes.
BusinessFlowRegistry
Modifier and Type | Method and Description |
---|---|
CompositeBusinessFlow |
getCompositeFlow(java.lang.Long compositeFlowId)
Returns the CompositeBusinessFlow class instance in the registry
cache for the specified compositeFlowId.
|
CompositeBusinessFlow[] |
getCompositeFlows()
Returns all of the CompositeBusinessFlow objects in the registry
cache.
|
BusinessFlowDomain |
getDomain(java.lang.Long businessFlowDomainId)
Returns the BusinessFlowDomain class instance in the registry
cache for the specified businessFlowDomainId.
|
BusinessFlowDomain[] |
getDomains()
Returns all of the BusinessFlowDomain objects in the
registry cache.
|
BusinessFlow |
getFlow(java.lang.Long businessFlowId)
Returns the BusinessFlow class instance in the registry
cache for the specified businessFlowId.
|
BusinessFlow |
getFlowByFlowTypeIdentifierAndFlowIdentifier(java.lang.String aBusinessFlowTypeIdentifier,
java.lang.String aFlowIdentifer)
Returns a BusinessFlow object in the registry
cache for the specified businessFlowTypeIdentifier and businessFlowIdentifier.
|
BusinessFlow[] |
getFlows()
Returns all of the BusinessFlow objects in the
registry cache.
|
BusinessFlow[] |
getFlowsByCompositeFlowId(java.lang.Long compositeFlowId)
Returns all of the BusinessFlow objects in the registry
cache for the specified compositeFlowId.
|
BusinessFlow[] |
getFlowsByFlowTypeId(java.lang.Long businessFlowTypeId)
Returns all of the BusinessFlow objects in the registry
cache for the specified businessFlowTypeId.
|
BusinessFlowStateRelation |
getFlowStateRelationByFlowIdAndStateId(java.lang.Long businessFlowId,
java.lang.Long businessFlowStateId)
Returns the BusinessFlowStateRelation class instance in the
registry cache for the specified businessFlowId and the
businessFlowStateId.
|
BusinessFlowStateRelation[] |
getFlowStateRelations()
Returns all of the BusinessFlowStateRelation
objects in the registry cache.
|
BusinessFlowStateRelation[] |
getFlowStateRelationsByFlowId(java.lang.Long businessFlowId)
Returns all the BusinessFlowStateRelation objects in the
registry cache for the specified businessFlowId.
|
BusinessFlowStateRelation[] |
getFlowStateRelationsByStateId(java.lang.Long businessFlowStateId)
Returns all the BusinessFlowStateRelation objects in the
registry cache for the specified businessFlowStateId.
|
BusinessFlowType |
getFlowType(java.lang.Long businessFlowTypeId)
Returns the BusinessFlowType class instance in the registry
cache for the specified businessFlowTypeId.
|
BusinessFlowType |
getFlowTypeByIdentifier(java.lang.String flowTypeIdentifier)
Returns the BusinessFlowType class instance in the registry
cache for the specified flowTypeIdentifier.
|
BusinessFlowType[] |
getFlowTypes()
Returns all of the BusinessFlowType objects in the
registry cache.
|
BusinessFlowType[] |
getFlowTypesByDomainId(java.lang.Long businessFlowDomainId)
Returns all of the BusinessFlowType objects in the
registry cache for the specified businessFlowDomainId.
|
static BusinessFlowManager |
getInstance()
A static method to return a single instance of this class.
|
BusinessFlowState |
getState(java.lang.Long businessFlowStateId)
Returns the BusinessFlowState class instance in the registry
cache for the specified businessFlowStateId.
|
BusinessFlowState |
getStateByFlowIdAndStateType(java.lang.Long businessFlowId,
java.lang.Integer stateType)
Returns the BusinessFlowState class instance in the registry
cache for the specified businessFlowId and stateType.
|
BusinessFlowState |
getStateByFlowTypeIdAndIdentifier(java.lang.Long businessFlowTypeId,
java.lang.Integer stateIdentifier)
Returns the BusinessFlowState class instance in the registry
cache for the specified businessFlowTypeId and stateIndentifier.
|
BusinessFlowState |
getStateByFlowTypeIdAndStateName(java.lang.Long businessFlowTypeId,
java.lang.String stateName)
Returns the BusinessFlowState class instance in the registry
cache for the specified businessFlowTypeId and stateName.
|
BusinessFlowStateGroup |
getStateGroup(java.lang.Long businessFlowStateGroupId)
Returns the BusinessFlowStateGroup class instance in the registry
cache for the specified businessFlowStateGroupId.
|
BusinessFlowStateGroup |
getStateGroupByFlowTypeIdAndIdentifier(java.lang.Long businessFlowTypeId,
java.lang.String businessFlowStateGroupIdentifier)
Returns the BusinessFlowStateGroup class instance in the registry
cache for the specified businessFlowTypeId and the
businessFlowStateGroupIdentifier.
|
BusinessFlowStateGroup[] |
getStateGroups()
Returns all of the BusinessFlowStateGroup objects in the
registry cache.
|
BusinessFlowState[] |
getStates()
Returns all of the BusinessFlowState objects in the
registry cache.
|
BusinessFlowState[] |
getStatesByFlowId(java.lang.Long businessFlowId)
Returns all of the BusinessFlowState objects in the
registry cache for the specified businessFlowId.
|
BusinessFlowState[] |
getStatesByFlowTypeId(java.lang.Long businessFlowTypeId)
Returns all of the BusinessFlowState objects in the
registry cache for the specified businessFlowTypeId.
|
BusinessFlowState[] |
getStatesByStateGroupId(java.lang.Long businessFlowStateGroupId)
Returns all of the BusinessFlowState objects in the
registry cache for the specified businessFlowStateGroupId.
|
BusinessFlowTransition |
getTransition(java.lang.Long businessFlowTransitionId)
Returns the BusinessFlowTransition class instance in the registry
cache for the specified businessFlowTransitionId.
|
BusinessFlowTransition |
getTransitionByFlowIdAndSourceStateIdAndEventIdentifierAndTargetStateId(java.lang.Long flowId,
java.lang.Long sourceStateId,
java.lang.String eventIdentifier,
java.lang.Long targetStateId)
Returns the BusinessFlowTransition object in the
registry cache for the specified businessFlowId, sourceStateId,
eventIdentifier, and targetStateId.
|
BusinessFlowTransition[] |
getTransitions()
Returns all of the BusinessFlowTransitions objects in the
registry cache.
|
BusinessFlowTransition[] |
getTransitionsByFlowId(java.lang.Long businessFlowId)
Returns all of the BusinessFlowTransitions objects in the
registry cache for the specified businessFlowId.
|
BusinessFlowTransition[] |
getTransitionsByFlowIdAndSourceStateId(java.lang.Long flowId,
java.lang.Long sourceStateId)
Returns all of the BusinessFlowTransitions objects in the
registry cache for the specified businessFlowId and sourceStateId.
|
BusinessFlowTransition[] |
getTransitionsByFlowIdAndSourceStateIdAndApproval(java.lang.Long flowId,
java.lang.Long sourceStateId,
java.lang.Integer approval)
Returns all of the BusinessFlowTransitions objects in the
registry cache for the specified businessFlowId, sourceStateId, and approval.
|
BusinessFlowTransition[] |
getTransitionsByFlowIdAndSourceStateIdAndEventIdentifier(java.lang.Long flowId,
java.lang.Long sourceStateId,
java.lang.String eventIdentifier)
Returns all of the BusinessFlowTransitions objects in the
registry cache for the specified businessFlowId, sourceStateId, and eventIdentifier.
|
boolean |
isCacheEnabled()
Indicates whether the BusinessFlowRegistry cache is on or off.
|
public CompositeBusinessFlow getCompositeFlow(java.lang.Long compositeFlowId)
javax.ejb.ObjectNotFoundException
if the
specified compositeFlowId does not exist.compositeFlowId
- The long CompositeBusinessFlow unique Id number.CompositeBusinessFlow
public CompositeBusinessFlow[] getCompositeFlows()
CompositeBusinessFlow
public BusinessFlowDomain getDomain(java.lang.Long businessFlowDomainId)
javax.ejb.ObjectNotFoundException
if the
specified businessFlowDomainId does not exist.businessFlowDomainId
- The long BusinessFlowDomain unique Id number.BusinessFlowDomain
public BusinessFlowDomain[] getDomains()
BusinessFlowDomain
public BusinessFlow getFlow(java.lang.Long businessFlowId)
javax.ejb.ObjectNotFoundException
if the
specified businessFlowId does not exist.businessFlowId
- The long BusinessFlow unique Id number.BusinessFlow
public BusinessFlow getFlowByFlowTypeIdentifierAndFlowIdentifier(java.lang.String aBusinessFlowTypeIdentifier, java.lang.String aFlowIdentifer)
javax.ejb.ObjectNotFoundException
if the
specified businessFlow does not exist.businessFlowTypeIdentifier
- The BusinessFlowType unique identifier.businessFlowentifier
- The long BusinessFlow identifier.BusinessFlow
,
BusinessFlowType
public BusinessFlow[] getFlows()
BusinessFlow
public BusinessFlow[] getFlowsByCompositeFlowId(java.lang.Long compositeFlowId)
javax.ejb.ObjectNotFoundException
if the
specified compositeFlowId does not exist.compositeFlowId
- The long CompositeBusinessFlow unique Id number.BusinessFlow
,
CompositeBusinessFlow
public BusinessFlow[] getFlowsByFlowTypeId(java.lang.Long businessFlowTypeId)
javax.ejb.ObjectNotFoundException
if the
specified businessFlowTypeId does not exist.businessFlowTypeId
- The long BusinessFlowType unique Id number.BusinessFlow
,
BusinessFlowType
public BusinessFlowStateRelation getFlowStateRelationByFlowIdAndStateId(java.lang.Long businessFlowId, java.lang.Long businessFlowStateId)
javax.ejb.ObjectNotFoundException
if the
BusinessFlowStateRelation does not exist.businessFlowId
- The long BusinessFlow unique Id number.businessFlowStateId
- The long BusinessFlowState unique Id number.BusinessFlowStateRelation
public BusinessFlowStateRelation[] getFlowStateRelations()
BusinessFlowStateRelation
public BusinessFlowStateRelation[] getFlowStateRelationsByFlowId(java.lang.Long businessFlowId)
javax.ejb.ObjectNotFoundException
if the
businessFlowId does not exist.businessFlowId
- The long BusinessFlow unique Id numberBusinessFlowStateRelation
public BusinessFlowStateRelation[] getFlowStateRelationsByStateId(java.lang.Long businessFlowStateId)
javax.ejb.ObjectNotFoundException
if the
businessFlowStateId does not exist.businessFlowStateId
- The long BusinessFlowState unique Id number.BusinessFlowStateRelation
public BusinessFlowType getFlowType(java.lang.Long businessFlowTypeId)
javax.ejb.ObjectNotFoundException
if the
specified businessFlowTypeId does not exist.businessFlowTypeId
- The long BusinessFlowType unique Id number.BusinessFlowType
public BusinessFlowType getFlowTypeByIdentifier(java.lang.String flowTypeIdentifier)
javax.ejb.ObjectNotFoundException
if the
specified flowTypeIdentifier does not exist.flowTypeIdentifier
- The BusinessFlowType string identifier.BusinessFlowType
public BusinessFlowType[] getFlowTypes()
BusinessFlowType
public BusinessFlowType[] getFlowTypesByDomainId(java.lang.Long businessFlowDomainId)
javax.ejb.ObjectNotFoundException
if the
businessFlowDomainId does not exist.BusinessFlowType
public static BusinessFlowManager getInstance()
public BusinessFlowState getState(java.lang.Long businessFlowStateId)
javax.ejb.ObjectNotFoundException
if the
specified businessFlowStateId does not exist.businessFlowStateId
- The long BusinessFlowState unique Id number.BusinessFlowState
public BusinessFlowState getStateByFlowIdAndStateType(java.lang.Long businessFlowId, java.lang.Integer stateType)
javax.ejb.ObjectNotFoundException
if the
specified businessFlowId or the stateType does not exist.businessFlowId
- The long BusinessFlow unique Id number.stateType
- The BusinessFlowState integer type value, use
BusinessFlowState.START_STATE, BusinessFlowState.NORMAL_STATE,
or BusinessFlowState.END_STATE.BusinessFlowState
public BusinessFlowState getStateByFlowTypeIdAndIdentifier(java.lang.Long businessFlowTypeId, java.lang.Integer stateIdentifier)
javax.ejb.ObjectNotFoundException
if the
specified businessFlowTypeId or the stateIdentifier does not exist.businessFlowTypeId
- The long BusinessFlowType unique Id number.stateIdentifier
- The BusinessFlowState integer identifier.BusinessFlowState
public BusinessFlowState getStateByFlowTypeIdAndStateName(java.lang.Long businessFlowTypeId, java.lang.String stateName)
javax.ejb.ObjectNotFoundException
if the
specified businessFlowTypeId or the stateName does not exist.businessFlowTypeId
- The BusinessFlowType long unique Id number.stateName
- String The BusinessFlowState string state name.BusinessFlowState
public BusinessFlowStateGroup getStateGroup(java.lang.Long businessFlowStateGroupId)
javax.ejb.ObjectNotFoundException
if the
specified businessFlowStateGroupId does not exist.businessFlowStateGroupId
- The BusinessFlowStateGroup long unique Id number.BusinessFlowState
public BusinessFlowStateGroup getStateGroupByFlowTypeIdAndIdentifier(java.lang.Long businessFlowTypeId, java.lang.String businessFlowStateGroupIdentifier)
javax.ejb.ObjectNotFoundException
if the
specified businessFlowTypeId or the
businessFlowStateGroupIdentifier does not exist.businessFlowTypeId
- The BusinessFlowType long unique Id number.businessFlowStateGroupIdentifier
- The BusinessFlowStateGroup
string identifier.BusinessFlowStateGroup
public BusinessFlowStateGroup[] getStateGroups()
BusinessFlowStateGroup
public BusinessFlowState[] getStates()
BusinessFlowState
public BusinessFlowState[] getStatesByFlowId(java.lang.Long businessFlowId)
javax.ejb.ObjectNotFoundException
if the
specified businessFlowId does not exist.businessFlowId
- The BusinessFlow long unique Id number.BusinessFlowState
public BusinessFlowState[] getStatesByFlowTypeId(java.lang.Long businessFlowTypeId)
javax.ejb.ObjectNotFoundException
if the
specified businessFlowTypeId does not exist.businessFlowTypeId
- The BusinessFlowType long unique Id number.BusinessFlowState
public BusinessFlowState[] getStatesByStateGroupId(java.lang.Long businessFlowStateGroupId)
javax.ejb.ObjectNotFoundException
if the
specified businessFlowStateGroupId does not exist.businessFlowStateGroupId
- The BusinessFlowStateGroup long unique Id number.BusinessFlowState
public BusinessFlowTransition getTransition(java.lang.Long businessFlowTransitionId)
javax.ejb.ObjectNotFoundException
if the
specified businessFlowTransitionId does not exist.businessFlowTransitionId
- The BusinessFlowTransition long
unique Id numberBusinessFlowTransition
public BusinessFlowTransition getTransitionByFlowIdAndSourceStateIdAndEventIdentifierAndTargetStateId(java.lang.Long flowId, java.lang.Long sourceStateId, java.lang.String eventIdentifier, java.lang.Long targetStateId)
javax.ejb.ObjectNotFoundException
if the
BusinessFlowTransition object does not exist.businessFlowId
- The BusinessFlow long unique Id number.sourceStateId
- The long source BusinessFlowState unique Id number.eventIdentifier
- The string event identifier String for the
BusinessFlowTransition.targetStateId
- The long target BusinessFlowState unique Id number.BusinessFlowTransition
public BusinessFlowTransition[] getTransitions()
BusinessFlowTransition
public BusinessFlowTransition[] getTransitionsByFlowId(java.lang.Long businessFlowId)
javax.ejb.ObjectNotFoundException
if the
specified businessFlowId does not exist.businessFlowId
- The BusinessFlow long unique Id numberBusinessFlowTransition
public BusinessFlowTransition[] getTransitionsByFlowIdAndSourceStateId(java.lang.Long flowId, java.lang.Long sourceStateId)
javax.ejb.ObjectNotFoundException
if the
specified businessFlowId does not exist.businessFlowId
- The BusinessFlow long unique Id number.sourceStateId
- The long source BusinessFlowState unique Id number.BusinessFlowTransition
public BusinessFlowTransition[] getTransitionsByFlowIdAndSourceStateIdAndApproval(java.lang.Long flowId, java.lang.Long sourceStateId, java.lang.Integer approval)
javax.ejb.ObjectNotFoundException
if the
specified businessFlowId does not exist.businessFlowId
- The BusinessFlow long unique Id number.sourceStateId
- The long source BusinessFlowState unique Id number.approval
- The integer approval number for the BusinessFlowTransition.BusinessFlowTransition
public BusinessFlowTransition[] getTransitionsByFlowIdAndSourceStateIdAndEventIdentifier(java.lang.Long flowId, java.lang.Long sourceStateId, java.lang.String eventIdentifier)
javax.ejb.ObjectNotFoundException
if the
specified businessFlowId does not exist.businessFlowId
- The BusinessFlow long unique Id number.sourceStateId
- The long source BusinessFlowState unique Id number.eventIdentifier
- The string event identifier String for the
BusinessFlowTransitionBusinessFlowTransition
public boolean isCacheEnabled()
true
means the BusinessFlowRegistry is on,
false
means it is off