Class IsPlanItemCompletedExpressionFunction
java.lang.Object
org.flowable.cmmn.engine.impl.function.IsPlanItemCompletedExpressionFunction
- All Implemented Interfaces:
FlowableFunctionDelegate
,FlowableAstFunctionCreator
public class IsPlanItemCompletedExpressionFunction
extends Object
implements FlowableFunctionDelegate, FlowableAstFunctionCreator
This function evaluates a plan item to be completed, which is most likely used on a plan item with a repetition rule to check, whether it has alreday
been completed before.
- Author:
- Micha Kiener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFunction
(String name, int index, AstParameters parameters, boolean varargs, FlowableExpressionParser parser) Create anAstFunction
based on the provided name, index, parameters.Returns the method that is invoked by JUEL.The names of the functions that this creator can create.static boolean
isPlanItemCompleted
(Object object) The name of the method when used in an expression, like the second part of ${prefix:method()}.prefix()
The prefix of the method when used in an expression, like the first part of ${prefix:method()}.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.flowable.common.engine.api.delegate.FlowableFunctionDelegate
localNames, prefixes
-
Constructor Details
-
IsPlanItemCompletedExpressionFunction
public IsPlanItemCompletedExpressionFunction()
-
-
Method Details
-
prefix
Description copied from interface:FlowableFunctionDelegate
The prefix of the method when used in an expression, like the first part of ${prefix:method()}. Will be used to match the text of the expression to the actualFlowableFunctionDelegate
instance.- Specified by:
prefix
in interfaceFlowableFunctionDelegate
-
localName
Description copied from interface:FlowableFunctionDelegate
The name of the method when used in an expression, like the second part of ${prefix:method()}. Will be used to match the text of the expression to the actualFlowableFunctionDelegate
instance.- Specified by:
localName
in interfaceFlowableFunctionDelegate
-
functionMethod
Description copied from interface:FlowableFunctionDelegate
Returns the method that is invoked by JUEL.- Specified by:
functionMethod
in interfaceFlowableFunctionDelegate
-
getFunctionNames
Description copied from interface:FlowableAstFunctionCreator
The names of the functions that this creator can create.- Specified by:
getFunctionNames
in interfaceFlowableAstFunctionCreator
-
createFunction
public AstFunction createFunction(String name, int index, AstParameters parameters, boolean varargs, FlowableExpressionParser parser) Description copied from interface:FlowableAstFunctionCreator
Create anAstFunction
based on the provided name, index, parameters. Potentially creating new parameters to enhance the function.- Specified by:
createFunction
in interfaceFlowableAstFunctionCreator
- Parameters:
name
- the name of the functionindex
- the indexparameters
- the parameters for the functionvarargs
- whether varargs is supportedparser
- the parser for potentially creating identifiers
-
isPlanItemCompleted
-