Class ItemHandler
java.lang.Object
org.camunda.bpm.engine.impl.cmmn.handler.CmmnElementHandler<CmmnElement,CmmnActivity>
org.camunda.bpm.engine.impl.cmmn.handler.ItemHandler
- All Implemented Interfaces:
ModelElementHandler<CmmnElement,
CmmnHandlerContext, CmmnActivity>
- Direct Known Subclasses:
EventListenerItemHandler
,MilestoneItemHandler
,StageItemHandler
,TaskItemHandler
- Author:
- Roman Smirnov
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected CmmnActivity
createActivity
(CmmnElement element, CmmnHandlerContext context) protected CmmnActivityBehavior
protected PlanItemControl
getDefaultControl
(CmmnElement element) protected PlanItemDefinition
getDefinition
(CmmnElement element) protected String
getDesciption
(CmmnElement element) protected String
getDocumentation
(CmmnElement element) protected Collection<Sentry>
getEntryCriterias
(CmmnElement element) protected Collection<Sentry>
getExitCriterias
(CmmnElement element) protected Expression
getExpressionValue
(CamundaField field, ExpressionManager expressionManager) protected ExtensionElements
getExtensionElements
(CmmnElement element) protected FixedValue
getFixedValue
(CamundaField field) protected PlanItemControl
getItemControl
(CmmnElement element) protected String
getName
(CmmnElement element) getStandardEvents
(CmmnElement element) handleElement
(CmmnElement element, CmmnHandlerContext context) This method handles a element to create a new element.protected void
initializeActivity
(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) protected void
initializeActivityType
(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) protected void
initializeAutoComplete
(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) protected CaseControlRule
initializeCaseControlRule
(ConditionExpression condition, CmmnHandlerContext context) protected CaseExecutionListener
initializeCaseExecutionListener
(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, CamundaCaseExecutionListener listener) protected void
initializeCaseExecutionListeners
(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) protected void
initializeDescription
(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) protected void
initializeEntryCriterias
(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) protected void
initializeExitCriterias
(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) protected FieldDeclaration
initializeFieldDeclaration
(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, CamundaField field) protected List<FieldDeclaration>
initializeFieldDeclarations
(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, Collection<CamundaField> fields) protected void
initializeManualActivationRule
(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) protected void
initializeRepetitionRule
(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) protected void
initializeRequiredRule
(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) protected ExecutableScript
initializeScript
(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, CamundaScript script) protected CaseVariableListener
initializeVariableListener
(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, CamundaVariableListener listener) protected void
initializeVariableListeners
(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) protected boolean
isDiscretionaryItem
(CmmnElement element) protected boolean
isPlanItem
(CmmnElement element) protected <V extends ModelElementInstance>
List<V>queryExtensionElementsByClass
(CmmnElement element, Class<V> cls)
-
Field Details
-
PROPERTY_AUTO_COMPLETE
- See Also:
-
PROPERTY_REQUIRED_RULE
- See Also:
-
PROPERTY_MANUAL_ACTIVATION_RULE
- See Also:
-
PROPERTY_REPETITION_RULE
- See Also:
-
PROPERTY_IS_BLOCKING
- See Also:
-
PROPERTY_DISCRETIONARY
- See Also:
-
PROPERTY_ACTIVITY_TYPE
- See Also:
-
PROPERTY_ACTIVITY_DESCRIPTION
- See Also:
-
PARENT_COMPLETE
- See Also:
-
TASK_OR_STAGE_CREATE_EVENTS
-
TASK_OR_STAGE_UPDATE_EVENTS
-
TASK_OR_STAGE_END_EVENTS
-
TASK_OR_STAGE_EVENTS
-
EVENT_LISTENER_OR_MILESTONE_CREATE_EVENTS
-
EVENT_LISTENER_OR_MILESTONE_UPDATE_EVENTS
-
EVENT_LISTENER_OR_MILESTONE_END_EVENTS
-
EVENT_LISTENER_OR_MILESTONE_EVENTS
-
CASE_PLAN_MODEL_CREATE_EVENTS
-
CASE_PLAN_MODEL_UPDATE_EVENTS
-
CASE_PLAN_MODEL_CLOSE_EVENTS
-
CASE_PLAN_MODEL_EVENTS
-
DEFAULT_VARIABLE_EVENTS
-
-
Constructor Details
-
ItemHandler
public ItemHandler()
-
-
Method Details
-
createActivity
-
getActivityBehavior
-
handleElement
Description copied from interface:ModelElementHandler
This method handles a element to create a new element.
- Specified by:
handleElement
in interfaceModelElementHandler<CmmnElement,
CmmnHandlerContext, CmmnActivity> - Specified by:
handleElement
in classCmmnElementHandler<CmmnElement,
CmmnActivity> - Parameters:
element
- theModelElementInstance
to be handled.context
- theHandlerContext
which holds necessary information.- Returns:
- a new element.
-
initializeActivity
protected void initializeActivity(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) -
initializeActivityType
protected void initializeActivityType(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) -
initializeDescription
protected void initializeDescription(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) -
initializeAutoComplete
protected void initializeAutoComplete(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) -
initializeRequiredRule
protected void initializeRequiredRule(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) -
initializeManualActivationRule
protected void initializeManualActivationRule(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) -
initializeRepetitionRule
protected void initializeRepetitionRule(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) -
initializeCaseControlRule
protected CaseControlRule initializeCaseControlRule(ConditionExpression condition, CmmnHandlerContext context) -
initializeCaseExecutionListeners
protected void initializeCaseExecutionListeners(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) -
initializeCaseExecutionListener
protected CaseExecutionListener initializeCaseExecutionListener(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, CamundaCaseExecutionListener listener) -
initializeVariableListeners
protected void initializeVariableListeners(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) -
initializeVariableListener
protected CaseVariableListener initializeVariableListener(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, CamundaVariableListener listener) -
initializeScript
protected ExecutableScript initializeScript(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, CamundaScript script) -
initializeFieldDeclarations
protected List<FieldDeclaration> initializeFieldDeclarations(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, Collection<CamundaField> fields) -
initializeFieldDeclaration
protected FieldDeclaration initializeFieldDeclaration(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, CamundaField field) -
getFixedValue
-
getExpressionValue
-
initializeEntryCriterias
protected void initializeEntryCriterias(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) -
initializeExitCriterias
protected void initializeExitCriterias(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context) -
getDefaultControl
-
queryExtensionElementsByClass
protected <V extends ModelElementInstance> List<V> queryExtensionElementsByClass(CmmnElement element, Class<V> cls) -
getExtensionElements
-
getItemControl
-
getName
-
getDefinition
-
getEntryCriterias
-
getExitCriterias
-
getDesciption
-
getDocumentation
-
isPlanItem
-
isDiscretionaryItem
-
getStandardEvents
-