Package net.officefloor.frame.api.build
Interface FunctionBuilder<F extends Enum<F>>
- All Known Subinterfaces:
AdministrationBuilder<F,,G> FlowBuilder<F>,GovernanceBuilder<F>,ManagedFunctionBuilder<O,,F> ManagedObjectFunctionBuilder<O,F>
- All Known Implementing Classes:
AbstractFunctionBuilder,AdministrationBuilderImpl,GovernanceBuilderImpl,ManagedFunctionBuilderImpl
public interface FunctionBuilder<F extends Enum<F>>
Builds a
FunctionState provides linking to other
FunctionState instances.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddEscalation(Class<? extends Throwable> typeOfCause, String functionName) voidvoidvoidsetResponsibleTeam(String officeTeamName)
-
Method Details
-
setResponsibleTeam
-
linkFlow
- Parameters:
key- Key identifying theFlow.functionName- Name of the initialManagedFunctionfor theFlow.argumentType- Type of argument passed to the instigatedFlow. May benullto indicate no argument.isSpawnThreadState-trueto instigate theFlowin a spawnedThreadState.
-
linkFlow
void linkFlow(int flowIndex, String functionName, Class<?> argumentType, boolean isSpawnThreadState) - Parameters:
flowIndex- Index identifying theFlow.functionName- Name of the initialManagedFunctionfor theFlow.argumentType- Type of argument passed to the instigatedFlow. May benullto indicate no argument.isSpawnThreadState-trueto instigate theFlowin a spawnedThreadState.
-
addEscalation
Adds an
EscalationFlowto theEscalationProcedurefor theManagedFunction.The order in which the
EscalationFlowinstances are added is the order in which they are checked for handling escalation. Only oneEscalationFlowis used to handle escalation and the first one covering the cause will be used. This is similar totry ... catchblocks.- Parameters:
typeOfCause- Type of cause handled by thisEscalationFlow.functionName- Name of theManagedFunctionto handle theEscalation.
-