Class DefaultFormHandler
- java.lang.Object
-
- org.camunda.bpm.engine.impl.form.handler.DefaultFormHandler
-
- All Implemented Interfaces:
FormHandler
- Direct Known Subclasses:
DefaultStartFormHandler
,DefaultTaskFormHandler
public class DefaultFormHandler extends java.lang.Object implements FormHandler
- Author:
- Tom Baeyens, Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<java.lang.String>
ALLOWED_FORM_REF_BINDINGS
protected java.lang.String
businessKeyFieldId
protected java.lang.String
deploymentId
static java.lang.String
FORM_FIELD_ELEMENT
static java.lang.String
FORM_PROPERTY_ELEMENT
static java.lang.String
FORM_REF_BINDING_DEPLOYMENT
static java.lang.String
FORM_REF_BINDING_LATEST
static java.lang.String
FORM_REF_BINDING_VERSION
protected java.util.List<FormFieldHandler>
formFieldHandlers
protected java.util.List<FormPropertyHandler>
formPropertyHandlers
-
Constructor Summary
Constructors Constructor Description DefaultFormHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fireFormPropertyHistoryEvents(VariableMap properties, VariableScope variableScope)
java.lang.String
getBusinessKeyFieldId()
java.lang.String
getDeploymentId()
java.util.List<FormPropertyHandler>
getFormPropertyHandlers()
protected FormTypes
getFormTypes()
protected void
initializeFormFields(FormDataImpl taskFormData, ExecutionEntity execution)
protected void
initializeFormProperties(FormDataImpl formData, ExecutionEntity execution)
void
parseConfiguration(Element activityElement, DeploymentEntity deployment, ProcessDefinitionEntity processDefinition, BpmnParse bpmnParse)
protected void
parseFormData(BpmnParse bpmnParse, ExpressionManager expressionManager, Element extensionElement)
protected void
parseFormField(Element formField, BpmnParse bpmnParse, ExpressionManager expressionManager)
protected void
parseFormFields(Element formData, BpmnParse bpmnParse, ExpressionManager expressionManager)
protected void
parseFormProperties(BpmnParse bpmnParse, ExpressionManager expressionManager, Element extensionElement)
protected void
parseProperties(Element formField, FormFieldHandler formFieldHandler, BpmnParse bpmnParse, ExpressionManager expressionManager)
protected void
parseValidation(Element formField, FormFieldHandler formFieldHandler, BpmnParse bpmnParse, ExpressionManager expressionManager)
void
setBusinessKeyFieldId(java.lang.String businessKeyFieldId)
void
setDeploymentId(java.lang.String deploymentId)
void
setFormPropertyHandlers(java.util.List<FormPropertyHandler> formPropertyHandlers)
void
submitFormVariables(VariableMap properties, VariableScope variableScope)
-
-
-
Field Detail
-
FORM_FIELD_ELEMENT
public static final java.lang.String FORM_FIELD_ELEMENT
- See Also:
- Constant Field Values
-
FORM_PROPERTY_ELEMENT
public static final java.lang.String FORM_PROPERTY_ELEMENT
- See Also:
- Constant Field Values
-
FORM_REF_BINDING_DEPLOYMENT
public static final java.lang.String FORM_REF_BINDING_DEPLOYMENT
- See Also:
- Constant Field Values
-
FORM_REF_BINDING_LATEST
public static final java.lang.String FORM_REF_BINDING_LATEST
- See Also:
- Constant Field Values
-
FORM_REF_BINDING_VERSION
public static final java.lang.String FORM_REF_BINDING_VERSION
- See Also:
- Constant Field Values
-
ALLOWED_FORM_REF_BINDINGS
public static final java.util.List<java.lang.String> ALLOWED_FORM_REF_BINDINGS
-
deploymentId
protected java.lang.String deploymentId
-
businessKeyFieldId
protected java.lang.String businessKeyFieldId
-
formPropertyHandlers
protected java.util.List<FormPropertyHandler> formPropertyHandlers
-
formFieldHandlers
protected java.util.List<FormFieldHandler> formFieldHandlers
-
-
Method Detail
-
parseConfiguration
public void parseConfiguration(Element activityElement, DeploymentEntity deployment, ProcessDefinitionEntity processDefinition, BpmnParse bpmnParse)
- Specified by:
parseConfiguration
in interfaceFormHandler
-
parseFormData
protected void parseFormData(BpmnParse bpmnParse, ExpressionManager expressionManager, Element extensionElement)
-
parseFormFields
protected void parseFormFields(Element formData, BpmnParse bpmnParse, ExpressionManager expressionManager)
-
parseFormField
protected void parseFormField(Element formField, BpmnParse bpmnParse, ExpressionManager expressionManager)
-
parseProperties
protected void parseProperties(Element formField, FormFieldHandler formFieldHandler, BpmnParse bpmnParse, ExpressionManager expressionManager)
-
parseValidation
protected void parseValidation(Element formField, FormFieldHandler formFieldHandler, BpmnParse bpmnParse, ExpressionManager expressionManager)
-
getFormTypes
protected FormTypes getFormTypes()
-
parseFormProperties
protected void parseFormProperties(BpmnParse bpmnParse, ExpressionManager expressionManager, Element extensionElement)
-
initializeFormProperties
protected void initializeFormProperties(FormDataImpl formData, ExecutionEntity execution)
-
initializeFormFields
protected void initializeFormFields(FormDataImpl taskFormData, ExecutionEntity execution)
-
submitFormVariables
public void submitFormVariables(VariableMap properties, VariableScope variableScope)
- Specified by:
submitFormVariables
in interfaceFormHandler
-
fireFormPropertyHistoryEvents
protected void fireFormPropertyHistoryEvents(VariableMap properties, VariableScope variableScope)
-
getDeploymentId
public java.lang.String getDeploymentId()
-
setDeploymentId
public void setDeploymentId(java.lang.String deploymentId)
-
getFormPropertyHandlers
public java.util.List<FormPropertyHandler> getFormPropertyHandlers()
-
setFormPropertyHandlers
public void setFormPropertyHandlers(java.util.List<FormPropertyHandler> formPropertyHandlers)
-
getBusinessKeyFieldId
public java.lang.String getBusinessKeyFieldId()
-
setBusinessKeyFieldId
public void setBusinessKeyFieldId(java.lang.String businessKeyFieldId)
-
-