Package org.flowable.cmmn.model
Class ReactivationRule
java.lang.Object
org.flowable.cmmn.model.BaseElement
org.flowable.cmmn.model.CmmnElement
org.flowable.cmmn.model.CaseElement
org.flowable.cmmn.model.PlanItemRule
org.flowable.cmmn.model.ReactivationRule
- All Implemented Interfaces:
HasExtensionAttributes
The reactivation rule describes how a plan item is reactivated during phase two of case reactivation. There are three possible conditions:
activateCondition
if evaluated to true, immediately activates the plan item, even if it contains conditions or entry sentriesignoreCondition
if evaluated to true, completely ignores the plan itemdefaultCondition
if evaluated to true, will treat the plan item the very same way as if the case was newly created
null
, it is evaluated as false
. You might also just put true
as the condition to permanently
activate it without runtime evaluation.
If more than one evaluates to true
, they are treated in the following order: activate, ignore and then default, which means as an example,
if the activate condition evaluates to true, but the default one as well, the activate one has precedence, so the plan item immediately gets activated.- Author:
- Micha Kiener
-
Field Summary
FieldsFields inherited from class org.flowable.cmmn.model.PlanItemRule
condition
Fields inherited from class org.flowable.cmmn.model.CaseElement
name, parent
Fields inherited from class org.flowable.cmmn.model.CmmnElement
documentation, documentationTextFormat
Fields inherited from class org.flowable.cmmn.model.BaseElement
attributes, extensionElements, id, xmlColumnNumber, xmlRowNumber
-
Constructor Summary
ConstructorsConstructorDescriptionReactivationRule
(String activateCondition, String ignoreCondition, String defaultCondition) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
int
hashCode()
boolean
boolean
void
setActivateCondition
(String activateCondition) void
setDefaultCondition
(String defaultCondition) void
setIgnoreCondition
(String ignoreCondition) toString()
Methods inherited from class org.flowable.cmmn.model.PlanItemRule
getCondition, setCondition
Methods inherited from class org.flowable.cmmn.model.CaseElement
getName, getParent, getParentStage, setName, setParent
Methods inherited from class org.flowable.cmmn.model.CmmnElement
getDocumentation, getDocumentationTextFormat, setDocumentation, setDocumentationTextFormat, setValues
Methods inherited from class org.flowable.cmmn.model.BaseElement
addAttribute, addExtensionElement, getAttributes, getAttributeValue, getExtensionElements, getId, getXmlColumnNumber, getXmlRowNumber, setAttributes, setExtensionElements, setId, setValues, setXmlColumnNumber, setXmlRowNumber
-
Field Details
-
activateCondition
-
ignoreCondition
-
defaultCondition
-
-
Constructor Details
-
ReactivationRule
public ReactivationRule() -
ReactivationRule
-
-
Method Details
-
hasActivationRule
public boolean hasActivationRule() -
hasIgnoreRule
public boolean hasIgnoreRule() -
hasDefaultRule
public boolean hasDefaultRule() -
hasActivationCondition
public boolean hasActivationCondition() -
hasIgnoreCondition
public boolean hasIgnoreCondition() -
hasDefaultCondition
public boolean hasDefaultCondition() -
getDefaultCondition
-
setDefaultCondition
-
getActivateCondition
-
setActivateCondition
-
getIgnoreCondition
-
setIgnoreCondition
-
toString
- Overrides:
toString
in classPlanItemRule
-
equals
-
hashCode
public int hashCode()
-