Interface ILoopStatementMustLoopValidating<TData>
- Type Parameters:
TData- Type of the node's properties model.
- All Superinterfaces:
ICustomParametersUpdateable, IElementHandler<TData, WorkflowNode>, IExecutionResultDescriptor, INodeHandler<TData>, IRefinedExecutionResultDescriptor<TData>, IResourceBundleLocator, IWorkflowElementTypeProviding, IWorkflowNodeFlowAnalyzer<TData>, IWorkflowNodeTypeProviding
- All Known Implementing Classes:
FcDoUntilLoopHandler, FcForEachLoopHandler, FcWhileLoopHandler
Mixin with an implementation of
validateGlobal
for node handlers that implement some kind of loop and wish to enforce that a loop is actually
possible. Validates the the loop body can complete normally or at least abruptly by issuing a continue statement that
targets the loop. Otherwise, it is guaranteed that the loop body is never executed more than once.- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
Fields inherited from interface IElementHandler
CURRENT_HANDLER_VERSION -
Method Summary
Modifier and TypeMethodDescriptionintdefault voidSimilar tovalidateLocal, but performs validations that require knowledge about other workflow elements.Methods inherited from interface ICustomParametersUpdateable
updateCustomParamsMethods inherited from interface IElementHandler
extractDescription, extractName, extractSearchTerms, getCascadingStyleSheet, getCascadingStyleSheet, getDataModelClass, getDisplayLabel, getElementSummaryModel, getElementSummaryXhtml, getFastJsonConverter, getFilterCriteriaForEntities, getFilterCriteriaForObjects, getHelpPageLocation, getJavaScript, getJavaScript, getPropertiesViewXhtml, getResourceBundle, getVersion, isAvailable, isHasUserVisibleName, readEntityReferences, readObjectReferences, readPlaceholders, validateLocal, writeEntityReferences, writeObjectReferences, writePlaceholdersMethods inherited from interface IExecutionResultDescriptor
getAlwaysValueDescriptor, getAttachmentValueDescriptor, getCurrentAttachmentValueDescriptor, getCurrentFileValueDescriptor, getCurrentValueDescriptor, getErrorValueDescriptor, getErrorValueDescriptors, getFileValueDescriptor, getSoftErrorValueDescriptor, getSoftErrorValueDescriptors, getSuccessValueDescriptorMethods inherited from interface INodeHandler
execute, getBpmnModeler, getLocalizedTypeName, getNodePrototypes, getPropertiesBeanClass, getRelatedNodeTypes, getSupportedControlTransferTypes, isCreateProtocolEntryAfterExecution, isCreateProtocolEntryAfterExecution, isReplacePlaceholderBeforeExecutionMethods inherited from interface IRefinedExecutionResultDescriptor
getAlwaysValueDescriptor, getAlwaysValueDescriptor, getAttachmentValueDescriptor, getAttachmentValueDescriptor, getCurrentAttachmentValueDescriptor, getCurrentAttachmentValueDescriptor, getCurrentFileValueDescriptor, getCurrentFileValueDescriptor, getCurrentValueDescriptor, getCurrentValueDescriptor, getErrorValueDescriptor, getErrorValueDescriptors, getFileValueDescriptor, getFileValueDescriptor, getSoftErrorValueDescriptor, getSoftErrorValueDescriptors, getSuccessValueDescriptor, getSuccessValueDescriptorMethods inherited from interface IWorkflowElementTypeProviding
getTypeMethods inherited from interface IWorkflowNodeFlowAnalyzer
createFlowGraph
-
Method Details
-
getLoopBodyChildIndex
int getLoopBodyChildIndex()- Returns:
- Index of the child representing the loop body.
-
validateGlobal
default void validateGlobal(IElementGlobalValidationParams<TData, WorkflowNode> params) throws WorkflowValidationException Description copied from interface:IElementHandlerSimilar tovalidateLocal, but performs validations that require knowledge about other workflow elements. As such, this method is given access to the entireWorkflowProcessand the list of all workflow elements of the process. This method is then responsible for iterating over all applicable workflow elements, using methods such asgetTriggersByTypeorgetNodesByType, and adding the appropriate validation failures viaaddGlobalValidationMessageandmarkGlobalValidationFailed.- Specified by:
validateGlobalin interfaceIElementHandler<TData, WorkflowNode>- Parameters:
params- The workflow task and all workflow elements to validate.- Throws:
WorkflowValidationException- When the validation could not be performed. Please note that this is meant for unexpected errors only - you should not throw an exception if a workflow element is simply just invalid.
-