Package de.esoco.process.step
Klasse Interaction
java.lang.Object
org.obrel.core.RelatedObject
org.obrel.core.SerializableRelatedObject
de.esoco.process.ProcessElement
de.esoco.process.ProcessFragment
de.esoco.process.ProcessStep
de.esoco.process.step.RollbackStep
de.esoco.process.step.Interaction
- Alle implementierten Schnittstellen:
Serializable
,org.obrel.core.Relatable
- Bekannte direkte Unterklassen:
AddHistoryNote
,DisplayMessage
,DisplayProgress
,FragmentInteraction
A generic process step for interactions in a process. The interaction is
achieved by setting the flag relation
MetaTypes.INTERACTIVE
in the
setup()
method. Please see the documentation of Process
for
general information about interactive processes.
This class can either be used to subclass it and implement functionality
in the execute()
method that will be invoked after the interaction
has been completed. Or it can be used directly to create process steps that
are only intended to collect informations into process parameters and to
leave their processing to further process steps.
Although it is possible to implement interactive process steps that are
derived from other step classes it is recommended to derive interactive steps
from this class because it handles several typical interaction cases like
automatic interaction loops (see ProcessStep.getNextStep()
.
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic interface
An interface that defines a method for the handling of an interaction. -
Feldübersicht
Von Klasse geerbte Felder de.esoco.process.ProcessStep
NEXT_STEP
Von Klasse geerbte Felder de.esoco.process.ProcessElement
MSG_PARAM_NOT_SET
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected void
abort()
Cancels the current execution of all registered fragments.protected boolean
Returns TRUE if all registered fragments support a rollback.protected void
cleanup()
This method will always be invoked at the end of a process (whether successful or not) for all executed steps.protected void
execute()
Empty implementation to make this class non-abstract so that it can be used for simple data-collecting interactions.protected void
Executes all actions that have previously been registered through the methodProcessFragment.addCleanupAction(String, Consumer)
.protected Collection
<InteractionFragment> Returns the fragments of this interaction.getParameterInteractionHandler
(org.obrel.core.RelationType<?> param) Returns the currently registered interaction handler for a certain parameter.protected void
handleFragmentInteractions
(org.obrel.core.RelationType<?> interactionParam) Handles any interactions that may occur in a sub-fragment.protected void
Initializes all sub-fragments.void
insertDisplayParameter
(org.obrel.core.RelationType<?> param, org.obrel.core.RelationType<?> beforeParam) Inserts a display parameter before another parameter in the list of this step's interaction parameters.void
insertInputParameter
(org.obrel.core.RelationType<?> param, org.obrel.core.RelationType<?> beforeParam) Inserts an input parameter before another parameter in the list of this step's interaction and input parameters.protected void
Overridden to invokehandleFragmentInteractions(RelationType)
orInteractionFragment.finishFragment()
before super.protected void
Checks which fragment of this instance has caused a continuation.protected void
Overridden to invokeinitFragments()
after super.protected void
Prepares the interactions of all sub-fragments.protected void
Overridden to invokeprepareFragmentInteractions()
after super.protected void
Removes all sub-fragments.protected void
removeFragment
(InteractionFragment fragment) Removes a certain sub-fragment.protected void
rollback()
Implemented to do nothing.void
setParameterInteractionHandler
(org.obrel.core.RelationType<?> param, Interaction.InteractionHandler interactionHandler) Sets the interaction handler for a certain parameter.protected void
setup()
Initializes this step to be interactive by setting a flag relation of the typeMetaTypes.INTERACTIVE
.validateParameters
(boolean onInteraction) Overridden to also validate the parameters of sub-fragments.Von Klasse geerbte Methoden de.esoco.process.ProcessStep
addDisplayParameters, addSubFragment, cancel, checkStopProcessExecution, getName, getNextStep, getProcess, getProcessStep, isParameterModified, needsInteraction, prepareNewInteractionParameters, prepareParameters, prepareValues, removeParameterModification, removeParameterModification, resetParameterModifications, resetParameters, resume, setNextStep, throwMissingParameterException, toString, validate
Von Klasse geerbte Methoden de.esoco.process.ProcessFragment
addCleanupAction, addLayoutFiller, addPanel, addPanel, addPanelParameters, addProcessStepMessage, addSelectionDependency, addSelectionDependency, addStackPanel, addTabPanel, annotateForEntityQuery, annotateForEntityQuery, annotateParameter, applyDerivedParameter, applyDerivedParameters, applyExtraAttribute, changeDate, checkParameter, clearUIFlag, clearUIFlag, collectDerivedParameter, collectDerivedParameters, deleteParameters, disableElements, disableElements, disableElements, disableMultiSelectionElements, displayHistoryValue, enableAllElements, getAbsoluteFilePath, getAllowedElements, getAllowedValues, getCurrentQuery, getDerivedParameterValue, getFragmentId, getInputMode, getInteractiveInputParameter, getNamedTmpListType, getNamedTmpParameterType, getParameter, getParameterAnnotation, getParameterRelation, getProcessUser, getSelectionIndex, getSubFragment, getSubFragments, getTemporaryListType, getTemporaryListType, getTemporaryParameterId, getTemporaryParameterName, getTemporaryParameterPackage, getTemporaryParameterType, getTemporaryParameterType, getTemporaryParameterType, getTemporarySetType, getUIProperties, getUIProperties, getUIProperty, getUserSetting, getUserSettings, hasFlagParameter, hasParameter, hasUIFlag, hasUserSetting, initChartParameter, initCountChartParameter, initProgressParameter, isInteractiveInput, isPanelParameter, lockEntity, markParameterAsModified, performParameterValidations, prepareDateInput, prepareDownload, prepareDownload, removeAllSubFragments, removeAllUIProperties, removeAllUIProperties, removeCleanupAction, removePanel, removeParameterAnnotation, removeSubFragment, removeSubFragment, removeTemporaryParameterType, removeUIProperties, setAllowedElements, setAllowedValues, setAllowedValues, setDatePeriod, setEnabled, setEnabled, setHtmlSize, setImmediateAction, setImmediateAction, setImmediateAction, setInteractive, setInteractive, setInteractive, setInteractive, setInteractive, setLayout, setParameter, setParameter, setParameterBounds, setProcessStepInfo, setProcessStepMessage, setProgressIndicator, setSelectionDependency, setSelectionDependency, setUIFlag, setUIFlag, setUIProperty, setUIProperty, setUIProperty, setUIProperty, setVisible, setVisible, spawnProcess, storeEntity, unlockEntity
Von Klasse geerbte Methoden de.esoco.process.ProcessElement
addDisplayParameters, addInputParameters, addInputParameters, clearInteractionParameters, continueOnInteraction, getParameterValidations, hasInteractionParameter, markInputParams, markInputParams, params, removeAllParameterValidations, removeInteractionParameters, removeInteractionParameters, removeParameterValidations, removeParameterValidations, setContinueOnInteraction, setMandatory, setParameterNotEmptyValidations, setParameterNotEmptyValidations, setParameterNotNullValidations, setParameterNotNullValidations, setParameterValidation, setParameterValidation, staticParams
Von Klasse geerbte Methoden org.obrel.core.RelatedObject
deleteRelation, get, getRelation, getRelations, notifyRelationListeners, readRelations, relationsEqual, relationsHashCode, relationsString, set, set, transform, writeRelations
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden org.obrel.core.Relatable
deleteRelation, deleteRelations, getAll, getOption, getRelationCount, getRelations, hasFlag, hasRelation, hasRelations, init, set, set, set, setOption, streamRelations
-
Konstruktordetails
-
Interaction
public Interaction()
-
-
Methodendetails
-
getParameterInteractionHandler
public Interaction.InteractionHandler getParameterInteractionHandler(org.obrel.core.RelationType<?> param) Returns the currently registered interaction handler for a certain parameter.- Parameter:
param
- The parameter to return the interaction handler for- Gibt zurück:
- The registered interaction handler or NULL for none
-
insertDisplayParameter
public void insertDisplayParameter(org.obrel.core.RelationType<?> param, org.obrel.core.RelationType<?> beforeParam) Inserts a display parameter before another parameter in the list of this step's interaction parameters. If the parameter to insert before doesn't exist the new parameter will be added to the end of the list.- Parameter:
param
- The parameter type to insertbeforeParam
- The parameter type to insert the new type before
-
insertInputParameter
public void insertInputParameter(org.obrel.core.RelationType<?> param, org.obrel.core.RelationType<?> beforeParam) Inserts an input parameter before another parameter in the list of this step's interaction and input parameters. If the parameter to insert before doesn't exist the new parameter will be added to the end of the list.- Parameter:
param
- The parameter type to insertbeforeParam
- The parameter type to insert the new type before
-
setParameterInteractionHandler
public void setParameterInteractionHandler(org.obrel.core.RelationType<?> param, Interaction.InteractionHandler interactionHandler) Sets the interaction handler for a certain parameter. This will replace any previous interaction handler for this parameter.- Parameter:
param
- The parameter to add the handler forinteractionHandler
- The interaction handler or NULL to remove the current handler
-
abort
Cancels the current execution of all registered fragments.- Setzt außer Kraft:
abort
in KlasseProcessStep
- Löst aus:
Exception
- Any kind of exception can be thrown- Siehe auch:
-
canRollback
protected boolean canRollback()Returns TRUE if all registered fragments support a rollback.- Setzt außer Kraft:
canRollback
in KlasseRollbackStep
- Gibt zurück:
- TRUE if the step implementation support a rollback
- Siehe auch:
-
cleanup
protected void cleanup()Beschreibung aus Klasse kopiert:ProcessStep
This method will always be invoked at the end of a process (whether successful or not) for all executed steps. Process steps that allocate resources should override this method to free such resources if that hasn't already be done in a regular way. Multiple invocations of this method can occur and should be handled correctly by implementations. The default implementation does nothing.- Setzt außer Kraft:
cleanup
in KlasseProcessStep
- Siehe auch:
-
execute
Empty implementation to make this class non-abstract so that it can be used for simple data-collecting interactions. Subclasses may implement this method.- Angegeben von:
execute
in KlasseProcessStep
- Löst aus:
Exception
- Any kind of exception may be thrown if executing the step fails- Siehe auch:
-
executeCleanupActions
protected void executeCleanupActions()Executes all actions that have previously been registered through the methodProcessFragment.addCleanupAction(String, Consumer)
.- Setzt außer Kraft:
executeCleanupActions
in KlasseProcessFragment
-
getFragments
Returns the fragments of this interaction. The returned collection should not be modified by the invoking code.- Gibt zurück:
- The collection of fragments
-
handleFragmentInteractions
protected void handleFragmentInteractions(org.obrel.core.RelationType<?> interactionParam) throws Exception Handles any interactions that may occur in a sub-fragment. This method should be invoked from theexecute()
method of a subclass.- Parameter:
interactionParam
- The interaction parameter- Löst aus:
Exception
- If an error occurs
-
initFragments
Initializes all sub-fragments.- Löst aus:
Exception
- If an error occurs
-
internalExecute
Overridden to invokehandleFragmentInteractions(RelationType)
orInteractionFragment.finishFragment()
before super.- Setzt außer Kraft:
internalExecute
in KlasseProcessStep
- Löst aus:
Exception
- Any exception may be thrown by subclasses- Siehe auch:
-
prepareContinuation
Checks which fragment of this instance has caused a continuation.- Setzt außer Kraft:
prepareContinuation
in KlasseProcessStep
- Löst aus:
Exception
- Any exception may be thrown- Siehe auch:
-
prepareExecution
Overridden to invokeinitFragments()
after super.- Setzt außer Kraft:
prepareExecution
in KlasseProcessStep
- Löst aus:
Exception
- Any exception may be thrown- Siehe auch:
-
prepareFragmentInteractions
Prepares the interactions of all sub-fragments.- Löst aus:
Exception
- If an error occurs
-
prepareInteraction
Overridden to invokeprepareFragmentInteractions()
after super.- Setzt außer Kraft:
prepareInteraction
in KlasseProcessStep
- Löst aus:
Exception
- Any exception may be thrown- Siehe auch:
-
removeAllFragments
protected void removeAllFragments()Removes all sub-fragments. -
removeFragment
Removes a certain sub-fragment.- Parameter:
fragment
- The fragment to remove
-
rollback
Beschreibung aus Klasse kopiert:RollbackStep
Implemented to do nothing. Subclasses that perform parameter modifications must override this method to revert such changes.- Setzt außer Kraft:
rollback
in KlasseRollbackStep
- Löst aus:
Exception
- Any exception may be thrown if the rollback fails- Siehe auch:
-
setup
Initializes this step to be interactive by setting a flag relation of the typeMetaTypes.INTERACTIVE
.- Setzt außer Kraft:
setup
in KlasseProcessStep
- Löst aus:
ProcessException
- Can be thrown by subclasses if the initialization fails- Siehe auch:
-
validateParameters
Overridden to also validate the parameters of sub-fragments.- Setzt außer Kraft:
validateParameters
in KlasseProcessStep
- Parameter:
onInteraction
- TRUE if the validation occurs during an interaction and FALSE if it occurs when the process progresses to the next step- Gibt zurück:
- The mapping from invalid parameters to the corresponding error messages
- Siehe auch:
-