Class GovernanceMetaDataImpl<I,F extends 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 Enum<F>>
extends Object
implements GovernanceMetaData<I,F>
GovernanceMetaData implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionGovernanceMetaDataImpl(String governanceName, GovernanceFactory<? super I, F> governanceFactory, TeamManagement responsibleTeam, long asynchronousFlowTimeout, AssetManagerReference asynchronousFlowAssetManagerReference, Logger logger) Initiate. -
Method Summary
Modifier and TypeMethodDescriptioncreateGovernanceContainer(ThreadState threadState, int governanceIndex) Creates theGovernanceContainer.createGovernanceFunctionLogic(GovernanceActivity<F> activity) Creates theManagedFunctionContainerfor theGovernanceActivity.Obtains theAssetManagerReferencethat managesAsynchronousFlowinstances instigated by theManagedFunction.longObtains the time out forAsynchronousFlowinstigated by theManagedFunction.Obtains theEscalationProcedurefor theManagedFunctionLogic.getFlow(int flowIndex) Obtains theFlowMetaDataof the specifiedFlow.Obtains the name of theManagedFunctionLogic.GovernanceFactory<? super I,F> Obtains theGovernanceFactory.Obtains the name of theGovernance.Obtains theManagedFunctionMetaDataof the nextManagedFunction.Obtains theOfficeMetaData.Obtains theTeamManagementresponsible for completion of theFunctionState.voidloadOfficeMetaData(OfficeMetaData officeMetaData, FlowMetaData[] flowMetaData, EscalationProcedure escalationProcedure) Loads the remaining state.
-
Constructor Details
-
GovernanceMetaDataImpl
public GovernanceMetaDataImpl(String governanceName, GovernanceFactory<? super I, F> governanceFactory, TeamManagement responsibleTeam, long asynchronousFlowTimeout, AssetManagerReference asynchronousFlowAssetManagerReference, Logger logger) Initiate.- Parameters:
governanceName- Name of theGovernance.governanceFactory-GovernanceFactory.responsibleTeam-TeamManagementofTeamresponsible for theGovernanceActivityinstances.asynchronousFlowTimeout-AsynchronousFlowtimeout.asynchronousFlowAssetManagerReference-AssetManagerReferenceforAsynchronousFlowinstances.logger-LoggerforGovernanceContext.
-
-
Method Details
-
loadOfficeMetaData
public void loadOfficeMetaData(OfficeMetaData officeMetaData, FlowMetaData[] flowMetaData, EscalationProcedure escalationProcedure) Loads the remaining state.- Parameters:
officeMetaData-OfficeMetaData.flowMetaData-FlowMetaDatainstances.escalationProcedure-EscalationProcedure.
-
getFunctionName
Description copied from interface:ManagedFunctionLogicMetaDataObtains the name of theManagedFunctionLogic.- Specified by:
getFunctionNamein interfaceManagedFunctionLogicMetaData- Returns:
- Name of the
ManagedFunctionLogic.
-
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
Description copied from interface:ManagedFunctionLogicMetaDataObtains theAssetManagerReferencethat managesAsynchronousFlowinstances instigated by theManagedFunction.- Specified by:
getAsynchronousFlowManagerReferencein interfaceManagedFunctionLogicMetaData- Returns:
AssetManagerReferencethat managesAsynchronousFlowinstances instigated by theManagedFunction.
-
getNextManagedFunctionMetaData
Description copied from interface:ManagedFunctionLogicMetaDataObtains theManagedFunctionMetaDataof the nextManagedFunction.- Specified by:
getNextManagedFunctionMetaDatain interfaceManagedFunctionLogicMetaData- Returns:
ManagedFunctionMetaDataof nextManagedFunction.
-
getEscalationProcedure
Description copied from interface:ManagedFunctionLogicMetaDataObtains theEscalationProcedurefor theManagedFunctionLogic.- Specified by:
getEscalationProcedurein interfaceManagedFunctionLogicMetaData- Returns:
EscalationProcedure.
-
getOfficeMetaData
Description copied from interface:ManagedFunctionLogicMetaDataObtains theOfficeMetaData.- Specified by:
getOfficeMetaDatain interfaceManagedFunctionLogicMetaData- Returns:
OfficeMetaData.
-
getGovernanceName
Description copied from interface:GovernanceMetaDataObtains the name of theGovernance.- Specified by:
getGovernanceNamein interfaceGovernanceMetaData<I,F extends 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 Enum<F>> - Parameters:
threadState-ThreadState.governanceIndex- Index of theGovernancewithin theThreadState.- Returns:
GovernanceContainer.
-
createGovernanceFunctionLogic
Description copied from interface:GovernanceMetaDataCreates theManagedFunctionContainerfor theGovernanceActivity.- Specified by:
createGovernanceFunctionLogicin interfaceGovernanceMetaData<I,F extends Enum<F>> - Parameters:
activity-GovernanceActivity.- Returns:
ManagedFunctionLogicfor theGovernanceActivity.
-
getGovernanceFactory
Description copied from interface:GovernanceMetaDataObtains theGovernanceFactory.- Specified by:
getGovernanceFactoryin interfaceGovernanceMetaData<I,F extends Enum<F>> - Returns:
GovernanceFactory.
-
getFlow
Description copied from interface:ManagedFunctionLogicMetaDataObtains theFlowMetaDataof the specifiedFlow.- Specified by:
getFlowin interfaceManagedFunctionLogicMetaData- Parameters:
flowIndex- Index of theFlow.- Returns:
FlowMetaDataof the specifiedFlow.
-