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
public abstract class ItemHandler extends CmmnElementHandler<CmmnElement,CmmnActivity>
- Author:
- Roman Smirnov
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<java.lang.String>
CASE_PLAN_MODEL_CLOSE_EVENTS
static java.util.List<java.lang.String>
CASE_PLAN_MODEL_CREATE_EVENTS
static java.util.List<java.lang.String>
CASE_PLAN_MODEL_EVENTS
static java.util.List<java.lang.String>
CASE_PLAN_MODEL_UPDATE_EVENTS
static java.util.List<java.lang.String>
DEFAULT_VARIABLE_EVENTS
static java.util.List<java.lang.String>
EVENT_LISTENER_OR_MILESTONE_CREATE_EVENTS
static java.util.List<java.lang.String>
EVENT_LISTENER_OR_MILESTONE_END_EVENTS
static java.util.List<java.lang.String>
EVENT_LISTENER_OR_MILESTONE_EVENTS
static java.util.List<java.lang.String>
EVENT_LISTENER_OR_MILESTONE_UPDATE_EVENTS
protected static java.lang.String
PARENT_COMPLETE
static java.lang.String
PROPERTY_ACTIVITY_DESCRIPTION
static java.lang.String
PROPERTY_ACTIVITY_TYPE
static java.lang.String
PROPERTY_AUTO_COMPLETE
static java.lang.String
PROPERTY_DISCRETIONARY
static java.lang.String
PROPERTY_IS_BLOCKING
static java.lang.String
PROPERTY_MANUAL_ACTIVATION_RULE
static java.lang.String
PROPERTY_REPETITION_RULE
static java.lang.String
PROPERTY_REQUIRED_RULE
static java.util.List<java.lang.String>
TASK_OR_STAGE_CREATE_EVENTS
static java.util.List<java.lang.String>
TASK_OR_STAGE_END_EVENTS
static java.util.List<java.lang.String>
TASK_OR_STAGE_EVENTS
static java.util.List<java.lang.String>
TASK_OR_STAGE_UPDATE_EVENTS
-
Constructor Summary
Constructors Constructor Description ItemHandler()
-
Method Summary
-
-
-
Field Detail
-
PROPERTY_AUTO_COMPLETE
public static final java.lang.String PROPERTY_AUTO_COMPLETE
- See Also:
- Constant Field Values
-
PROPERTY_REQUIRED_RULE
public static final java.lang.String PROPERTY_REQUIRED_RULE
- See Also:
- Constant Field Values
-
PROPERTY_MANUAL_ACTIVATION_RULE
public static final java.lang.String PROPERTY_MANUAL_ACTIVATION_RULE
- See Also:
- Constant Field Values
-
PROPERTY_REPETITION_RULE
public static final java.lang.String PROPERTY_REPETITION_RULE
- See Also:
- Constant Field Values
-
PROPERTY_IS_BLOCKING
public static final java.lang.String PROPERTY_IS_BLOCKING
- See Also:
- Constant Field Values
-
PROPERTY_DISCRETIONARY
public static final java.lang.String PROPERTY_DISCRETIONARY
- See Also:
- Constant Field Values
-
PROPERTY_ACTIVITY_TYPE
public static final java.lang.String PROPERTY_ACTIVITY_TYPE
- See Also:
- Constant Field Values
-
PROPERTY_ACTIVITY_DESCRIPTION
public static final java.lang.String PROPERTY_ACTIVITY_DESCRIPTION
- See Also:
- Constant Field Values
-
PARENT_COMPLETE
protected static final java.lang.String PARENT_COMPLETE
- See Also:
- Constant Field Values
-
TASK_OR_STAGE_CREATE_EVENTS
public static java.util.List<java.lang.String> TASK_OR_STAGE_CREATE_EVENTS
-
TASK_OR_STAGE_UPDATE_EVENTS
public static java.util.List<java.lang.String> TASK_OR_STAGE_UPDATE_EVENTS
-
TASK_OR_STAGE_END_EVENTS
public static java.util.List<java.lang.String> TASK_OR_STAGE_END_EVENTS
-
TASK_OR_STAGE_EVENTS
public static java.util.List<java.lang.String> TASK_OR_STAGE_EVENTS
-
EVENT_LISTENER_OR_MILESTONE_CREATE_EVENTS
public static java.util.List<java.lang.String> EVENT_LISTENER_OR_MILESTONE_CREATE_EVENTS
-
EVENT_LISTENER_OR_MILESTONE_UPDATE_EVENTS
public static java.util.List<java.lang.String> EVENT_LISTENER_OR_MILESTONE_UPDATE_EVENTS
-
EVENT_LISTENER_OR_MILESTONE_END_EVENTS
public static java.util.List<java.lang.String> EVENT_LISTENER_OR_MILESTONE_END_EVENTS
-
EVENT_LISTENER_OR_MILESTONE_EVENTS
public static java.util.List<java.lang.String> EVENT_LISTENER_OR_MILESTONE_EVENTS
-
CASE_PLAN_MODEL_CREATE_EVENTS
public static java.util.List<java.lang.String> CASE_PLAN_MODEL_CREATE_EVENTS
-
CASE_PLAN_MODEL_UPDATE_EVENTS
public static java.util.List<java.lang.String> CASE_PLAN_MODEL_UPDATE_EVENTS
-
CASE_PLAN_MODEL_CLOSE_EVENTS
public static java.util.List<java.lang.String> CASE_PLAN_MODEL_CLOSE_EVENTS
-
CASE_PLAN_MODEL_EVENTS
public static java.util.List<java.lang.String> CASE_PLAN_MODEL_EVENTS
-
DEFAULT_VARIABLE_EVENTS
public static java.util.List<java.lang.String> DEFAULT_VARIABLE_EVENTS
-
-
Method Detail
-
createActivity
protected CmmnActivity createActivity(CmmnElement element, CmmnHandlerContext context)
-
getActivityBehavior
protected CmmnActivityBehavior getActivityBehavior()
-
handleElement
public CmmnActivity handleElement(CmmnElement element, CmmnHandlerContext context)
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 java.util.List<FieldDeclaration> initializeFieldDeclarations(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, java.util.Collection<CamundaField> fields)
-
initializeFieldDeclaration
protected FieldDeclaration initializeFieldDeclaration(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context, CamundaField field)
-
getFixedValue
protected FixedValue getFixedValue(CamundaField field)
-
getExpressionValue
protected Expression getExpressionValue(CamundaField field, ExpressionManager expressionManager)
-
initializeEntryCriterias
protected void initializeEntryCriterias(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context)
-
initializeExitCriterias
protected void initializeExitCriterias(CmmnElement element, CmmnActivity activity, CmmnHandlerContext context)
-
getDefaultControl
protected PlanItemControl getDefaultControl(CmmnElement element)
-
queryExtensionElementsByClass
protected <V extends ModelElementInstance> java.util.List<V> queryExtensionElementsByClass(CmmnElement element, java.lang.Class<V> cls)
-
getExtensionElements
protected ExtensionElements getExtensionElements(CmmnElement element)
-
getItemControl
protected PlanItemControl getItemControl(CmmnElement element)
-
getName
protected java.lang.String getName(CmmnElement element)
-
getDefinition
protected PlanItemDefinition getDefinition(CmmnElement element)
-
getEntryCriterias
protected java.util.Collection<Sentry> getEntryCriterias(CmmnElement element)
-
getExitCriterias
protected java.util.Collection<Sentry> getExitCriterias(CmmnElement element)
-
getDesciption
protected java.lang.String getDesciption(CmmnElement element)
-
getDocumentation
protected java.lang.String getDocumentation(CmmnElement element)
-
isPlanItem
protected boolean isPlanItem(CmmnElement element)
-
isDiscretionaryItem
protected boolean isDiscretionaryItem(CmmnElement element)
-
getStandardEvents
protected abstract java.util.List<java.lang.String> getStandardEvents(CmmnElement element)
-
-