Class GovernanceMetaDataImpl<I,F extends java.lang.Enum<F>>
- java.lang.Object
-
- net.officefloor.frame.impl.execute.governance.GovernanceMetaDataImpl<I,F>
-
- All Implemented Interfaces:
GovernanceMetaData<I,F>,ManagedFunctionLogicMetaData
public class GovernanceMetaDataImpl<I,F extends java.lang.Enum<F>> extends java.lang.Object implements GovernanceMetaData<I,F>
GovernanceMetaDataimplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description GovernanceMetaDataImpl(java.lang.String governanceName, GovernanceFactory<? super I,F> governanceFactory, TeamManagement responsibleTeam, long asynchronousFlowTimeout, AssetManagerReference asynchronousFlowAssetManagerReference, java.util.logging.Logger logger)Initiate.
-
Method Summary
-
-
-
Constructor Detail
-
GovernanceMetaDataImpl
public GovernanceMetaDataImpl(java.lang.String governanceName, GovernanceFactory<? super I,F> governanceFactory, TeamManagement responsibleTeam, long asynchronousFlowTimeout, AssetManagerReference asynchronousFlowAssetManagerReference, java.util.logging.Logger logger)Initiate.- Parameters:
governanceName- Name of theGovernance.governanceFactory-GovernanceFactory.responsibleTeam-TeamManagementofTeamresponsible for theGovernanceActivityinstances.asynchronousFlowTimeout-AsynchronousFlowtimeout.asynchronousFlowAssetManagerReference-AssetManagerReferenceforAsynchronousFlowinstances.logger-LoggerforGovernanceContext.
-
-
Method Detail
-
loadOfficeMetaData
public void loadOfficeMetaData(OfficeMetaData officeMetaData, FlowMetaData[] flowMetaData, EscalationProcedure escalationProcedure)
Loads the remaining state.- Parameters:
officeMetaData-OfficeMetaData.flowMetaData-FlowMetaDatainstances.escalationProcedure-EscalationProcedure.
-
getFunctionName
public java.lang.String getFunctionName()
Description copied from interface:ManagedFunctionLogicMetaDataObtains the name of theManagedFunctionLogic.- Specified by:
getFunctionNamein interfaceManagedFunctionLogicMetaData- Returns:
- Name of the
ManagedFunctionLogic.
-
getResponsibleTeam
public TeamManagement getResponsibleTeam()
Description copied from interface:ManagedFunctionLogicMetaDataObtains theTeamManagementresponsible for completion of theFunctionState.- Specified by:
getResponsibleTeamin interfaceManagedFunctionLogicMetaData- Returns:
TeamManagementresponsible for completion of theFunctionState. May benullto enable anyTeamto execute theFunctionState.
-
getAsynchronousFlowTimeout
public long getAsynchronousFlowTimeout()
Description copied from interface:ManagedFunctionLogicMetaDataObtains the time out forAsynchronousFlowinstigated by theManagedFunction.- Specified by:
getAsynchronousFlowTimeoutin interfaceManagedFunctionLogicMetaData- Returns:
- Time out for
AsynchronousFlowinstigated by theManagedFunction.
-
getAsynchronousFlowManagerReference
public AssetManagerReference getAsynchronousFlowManagerReference()
Description copied from interface:ManagedFunctionLogicMetaDataObtains theAssetManagerReferencethat managesAsynchronousFlowinstances instigated by theManagedFunction.- Specified by:
getAsynchronousFlowManagerReferencein interfaceManagedFunctionLogicMetaData- Returns:
AssetManagerReferencethat managesAsynchronousFlowinstances instigated by theManagedFunction.
-
getNextManagedFunctionMetaData
public ManagedFunctionMetaData<?,?> getNextManagedFunctionMetaData()
Description copied from interface:ManagedFunctionLogicMetaDataObtains theManagedFunctionMetaDataof the nextManagedFunction.- Specified by:
getNextManagedFunctionMetaDatain interfaceManagedFunctionLogicMetaData- Returns:
ManagedFunctionMetaDataof nextManagedFunction.
-
getEscalationProcedure
public EscalationProcedure getEscalationProcedure()
Description copied from interface:ManagedFunctionLogicMetaDataObtains theEscalationProcedurefor theManagedFunctionLogic.- Specified by:
getEscalationProcedurein interfaceManagedFunctionLogicMetaData- Returns:
EscalationProcedure.
-
getOfficeMetaData
public OfficeMetaData getOfficeMetaData()
Description copied from interface:ManagedFunctionLogicMetaDataObtains theOfficeMetaData.- Specified by:
getOfficeMetaDatain interfaceManagedFunctionLogicMetaData- Returns:
OfficeMetaData.
-
getGovernanceName
public java.lang.String getGovernanceName()
Description copied from interface:GovernanceMetaDataObtains the name of theGovernance.- Specified by:
getGovernanceNamein interfaceGovernanceMetaData<I,F extends java.lang.Enum<F>>- Returns:
- Name of the
Governance.
-
createGovernanceContainer
public GovernanceContainer<I> createGovernanceContainer(ThreadState threadState, int governanceIndex)
Description copied from interface:GovernanceMetaDataCreates theGovernanceContainer.- Specified by:
createGovernanceContainerin interfaceGovernanceMetaData<I,F extends java.lang.Enum<F>>- Parameters:
threadState-ThreadState.governanceIndex- Index of theGovernancewithin theThreadState.- Returns:
GovernanceContainer.
-
createGovernanceFunctionLogic
public ManagedFunctionLogic createGovernanceFunctionLogic(GovernanceActivity<F> activity)
Description copied from interface:GovernanceMetaDataCreates theManagedFunctionContainerfor theGovernanceActivity.- Specified by:
createGovernanceFunctionLogicin interfaceGovernanceMetaData<I,F extends java.lang.Enum<F>>- Parameters:
activity-GovernanceActivity.- Returns:
ManagedFunctionLogicfor theGovernanceActivity.
-
getGovernanceFactory
public GovernanceFactory<? super I,F> getGovernanceFactory()
Description copied from interface:GovernanceMetaDataObtains theGovernanceFactory.- Specified by:
getGovernanceFactoryin interfaceGovernanceMetaData<I,F extends java.lang.Enum<F>>- Returns:
GovernanceFactory.
-
getFlow
public FlowMetaData getFlow(int flowIndex)
Description copied from interface:ManagedFunctionLogicMetaDataObtains theFlowMetaDataof the specifiedFlow.- Specified by:
getFlowin interfaceManagedFunctionLogicMetaData- Parameters:
flowIndex- Index of theFlow.- Returns:
FlowMetaDataof the specifiedFlow.
-
-