Package de.esoco.data.process
Klasse ProcessState
java.lang.Object
de.esoco.lib.property.AbstractStringProperties
de.esoco.lib.property.StringProperties
de.esoco.data.element.DataElement<String>
de.esoco.data.element.StringDataElement
de.esoco.data.process.ProcessDescription
de.esoco.data.process.ProcessState
- Alle implementierten Schnittstellen:
de.esoco.lib.property.HasProperties
,de.esoco.lib.property.MutableProperties
,Serializable
A process description subclass that provides additional information about the
current state of a process during it's execution. It also overrides the
methods
DataElement.equals(Object)
and DataElement.hashCode()
to only check an internal, unique and immutable ID that is assigned during
instance creation. This allows to use process state objects as map keys.- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic enum
An enumeration of the process execution modes.static enum
An enumeration of flags that describe the current state of the process and the interactive step at which the process paused.Von Klasse geerbte verschachtelte Klassen/Schnittstellen de.esoco.data.element.DataElement
DataElement.CopyMode, DataElement.Flag
-
Feldübersicht
Modifizierer und TypFeldBeschreibungstatic final String
The name of the data element list that contains the interaction parameter data elements.static final String
The name of the data element list that contains the data elements for additional views.Von Klasse geerbte Felder de.esoco.data.element.DataElement
ALLOWED_VALUES_CHANGED, ANONYMOUS_ELEMENT_PREFIX, DISPLAY_FLAGS, HIDDEN_URL, INPUT_FLAGS, INTERACTION_URL, ITEM_ALL_RESOURCE, ITEM_NEW_RESOURCE, ITEM_RESOURCE_PREFIX, PATH_SEPARATOR_CHAR, SERVER_PROPERTIES
-
Konstruktorübersicht
KonstruktorBeschreibungProcessState
(ProcessDescription description, int processId, String processInfo) Creates a new instance for a finished process without any further interaction.ProcessState
(ProcessDescription description, int processId, String processInfo, String currentStep, List<DataElement<?>> interactionParams, List<DataElementList> viewParams, List<ProcessState> spawnProcesses, Set<ProcessState.ProcessStateFlag> currentStepFlags) Creates a new instance by copying the data from another process description (or state) and specific process state attributes.ProcessState
(ProcessState originalState, de.esoco.lib.property.InteractionEventType eventType, DataElement<?> interactionElement, List<DataElement<?>> modifiedParams) Creates an copy instance for process interactions. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfinal boolean
Returns the rollback state of the current process.final String
Returns the name of the currently executed process step.Returns the process execution mode.final DataElement
<?> Returns the data element that caused the re-execution of the process after during an interaction because of an interactive input event.final de.esoco.lib.property.InteractionEventType
Returns TRUE if an interaction event has been caused by an action event or FALSE for a continuous selection event.List
<DataElement<?>> Returns the data elements that represent the interaction parameters of the current process step.final int
Returns the ID of the process.final String
Returns an information string for the process or it's current state.Returns a list of process states for processes that need to be spawned indepently from the current process context.Returns the data elements that represent the additional views in an interactive process step.final boolean
Returns TRUE if the current step contains interaction parameters that will cause an immediate re-execution of the process and therefore doesn't need a special interaction control ("next button") to proceed.final boolean
Returns TRUE if the process execution should be continued automatically after an interaction.final boolean
Returns TRUE if the current step is the final interactive step in the process.boolean
Checks whether the process has finished execution.final void
setExecutionMode
(ProcessState.ProcessExecutionMode executionMode) Sets the execution mode.final void
setProcessId
(int processId) Updates the ID of the process.toString()
Returns a string representation of this element.Von Klasse geerbte Methoden de.esoco.data.process.ProcessDescription
createSeparator, getClientHeight, getClientInfo, getClientLocale, getClientWidth, getDescriptionId, getProcessInput, isInputRequired, isSeparator, setClientInfo, setClientLocale, setClientSize, setProcessInput
Von Klasse geerbte Methoden de.esoco.data.element.StringDataElement
copy, getPhoneNumberParts, getValue, isValidValue, newInstance, setStringValue, updateValue
Von Klasse geerbte Methoden de.esoco.data.element.DataElement
checkImmutable, checkValidValue, copyAttributes, copyValue, createItemName, createItemResource, createResourceId, equals, getAllowedValues, getElementValidator, getName, getParent, getPath, getResourceId, getRoot, getSimpleName, getValidator, getValueHashCode, hasEqualValueAs, hashCode, init, isImmutable, isModified, isOptional, isSelected, markAsChanged, readFrom, removeProperty, setModified, setProperty, setSelected, setValidator, setValue, toDebugString, valuesEqual, writeTo
Von Klasse geerbte Methoden de.esoco.lib.property.StringProperties
clearFlag, clearProperties, setFlag, setProperties, setProperty, setProperty
Von Klasse geerbte Methoden de.esoco.lib.property.AbstractStringProperties
convertCollection, convertMap, convertValue, ensurePropertyMapExists, findValue, getIntProperty, getProperty, getPropertyCount, getPropertyMap, getPropertyNames, hasEqualProperties, hasFlag, hasProperty, parseCollection, parseMap, parseValue, setPropertyMap
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden de.esoco.lib.property.HasProperties
getIntProperty, getProperty, getPropertyCount, getPropertyNames, hasFlag, hasProperty
-
Felddetails
-
INTERACTION_PARAMS_LIST
The name of the data element list that contains the interaction parameter data elements.- Siehe auch:
-
VIEW_PARAMS_LIST
The name of the data element list that contains the data elements for additional views.- Siehe auch:
-
-
Konstruktordetails
-
ProcessState
Creates a new instance for a finished process without any further interaction.- Siehe auch:
-
ProcessState
public ProcessState(ProcessState originalState, de.esoco.lib.property.InteractionEventType eventType, DataElement<?> interactionElement, List<DataElement<?>> modifiedParams) Creates an copy instance for process interactions.- Parameter:
originalState
- The original process stateeventType
- The interaction event typeinteractionElement
- The data element that caused the interactionmodifiedParams
- The parameters that have been modified since the last interaction
-
ProcessState
public ProcessState(ProcessDescription description, int processId, String processInfo, String currentStep, List<DataElement<?>> interactionParams, List<DataElementList> viewParams, List<ProcessState> spawnProcesses, Set<ProcessState.ProcessStateFlag> currentStepFlags) Creates a new instance by copying the data from another process description (or state) and specific process state attributes.- Parameter:
description
- The process description or stateprocessId
- The ID of the described processprocessInfo
- An information string describing the processcurrentStep
- The name of the currently executed process stepinteractionParams
- The interaction parameter data elementsviewParams
- The optional view parameter data elements (NULL for none)spawnProcesses
- An optional list of new processes to be displayed by the client (NULL for none)currentStepFlags
- The flags for the current step
-
-
Methodendetails
-
canRollback
public final boolean canRollback()Returns the rollback state of the current process.- Gibt zurück:
- TRUE if the current process can be rolled back to a previous interaction
-
getCurrentStep
Returns the name of the currently executed process step.- Gibt zurück:
- The currently executed process step
-
getExecutionMode
Returns the process execution mode.- Gibt zurück:
- The process execution mode
-
getInteractionElement
Returns the data element that caused the re-execution of the process after during an interaction because of an interactive input event. In all other cases NULL will be returned.- Gibt zurück:
- The data element that caused an interactive input event or NULL for a non-interactive re-execution of the process
-
getInteractionEventType
public final de.esoco.lib.property.InteractionEventType getInteractionEventType()Returns TRUE if an interaction event has been caused by an action event or FALSE for a continuous selection event.- Gibt zurück:
- TRUE for an action event, FALSE for a continuous selection event
-
getInteractionParams
Returns the data elements that represent the interaction parameters of the current process step.- Gibt zurück:
- A list containing the interaction parameter data elements (empty for none)
-
getProcessId
public final int getProcessId()Returns the ID of the process.- Gibt zurück:
- The process ID
-
getProcessInfo
Returns an information string for the process or it's current state.- Gibt zurück:
- The process information
-
getSpawnProcesses
Returns a list of process states for processes that need to be spawned indepently from the current process context.- Gibt zurück:
- A list containing the process states of the processes to spawn (empty for none)
-
getViewParams
Returns the data elements that represent the additional views in an interactive process step.- Gibt zurück:
- A list containing the view parameter data elements
-
hasImmedidateInteraction
public final boolean hasImmedidateInteraction()Returns TRUE if the current step contains interaction parameters that will cause an immediate re-execution of the process and therefore doesn't need a special interaction control ("next button") to proceed.- Gibt zurück:
- TRUE if immediate execution parameters are present
-
isAutoContinue
public final boolean isAutoContinue()Returns TRUE if the process execution should be continued automatically after an interaction.- Gibt zurück:
- The auto continue flag
-
isFinalStep
public final boolean isFinalStep()Returns TRUE if the current step is the final interactive step in the process.- Gibt zurück:
- TRUE for the final interactive step
-
isFinished
public boolean isFinished()Checks whether the process has finished execution. This will be the case if the name of the current step as returned bygetCurrentStep()
is NULL.- Gibt zurück:
- TRUE if the process is finished
-
setExecutionMode
Sets the execution mode. This method is intended to be used by clients to send the process execution mode to the server.- Parameter:
executionMode
- The new execution mode
-
setProcessId
public final void setProcessId(int processId) Updates the ID of the process.- Parameter:
processId
- The new process id
-
toString
Returns a string representation of this element.- Setzt außer Kraft:
toString
in KlasseDataElement<String>
- Siehe auch:
-