org.jbpm.formModeler.core.processing.impl
Class FormProcessorImpl
java.lang.Object
org.jbpm.formModeler.service.bb.commons.config.componentsFactory.BasicFactoryElement
org.jbpm.formModeler.core.processing.impl.FormProcessorImpl
- All Implemented Interfaces:
- Serializable, org.jbpm.formModeler.api.processing.FormProcessor, org.jbpm.formModeler.service.bb.commons.config.componentsFactory.FactoryLifecycle
public class FormProcessorImpl
- extends org.jbpm.formModeler.service.bb.commons.config.componentsFactory.BasicFactoryElement
- implements org.jbpm.formModeler.api.processing.FormProcessor
- See Also:
- Serialized Form
| Fields inherited from interface org.jbpm.formModeler.api.processing.FormProcessor |
ATTR_INTERPRETER, CUSTOM_NAMESPACE_SEPARATOR, DEFAULT_NAMESPACE, FORM_MODE, MODIFIED_FIELD_NAMES, NAMESPACE_SEPARATOR |
|
Method Summary |
void |
clear(Long formId)
|
void |
clear(Long formId,
String namespace)
|
void |
clearField(Long formId,
String namespace,
String fieldName)
|
void |
clearFieldErrors(org.jbpm.formModeler.api.model.Form form,
String namespace)
|
protected FormStatus |
createFormStatus(Long formId,
String namespace)
|
protected FormStatus |
createFormStatus(Long formId,
String namespace,
Map currentValues)
|
protected void |
destroyFormStatus(Long formId,
String namespace)
|
protected boolean |
existsFormStatus(Long formId,
String namespace)
|
protected void |
fillObjectValues(Map obj,
Map values,
org.jbpm.formModeler.api.model.Form form)
Copy to obj values read from status map values |
Map |
filterMapRepresentationToPersist(Map inputValues)
|
void |
flushPendingCalculations(org.jbpm.formModeler.api.model.Form form,
String namespace)
|
void |
forceWrongField(org.jbpm.formModeler.api.model.Form form,
String namespace,
String fieldName)
|
Object |
getAttribute(org.jbpm.formModeler.api.model.Form form,
String namespace,
String attributeName)
|
String |
getFactoryName()
|
protected Map |
getFilteredMapRepresentationToPersist(org.jbpm.formModeler.api.model.Form form,
String namespace)
|
FormChangeProcessor |
getFormChangeProcessor()
|
protected FormManagerImpl |
getFormsManager()
|
protected FormStatus |
getFormStatus(Long formId,
String namespace)
|
protected FormStatus |
getFormStatus(Long formId,
String namespace,
Map currentValues)
|
FormStatusManager |
getFormStatusManager()
|
Object |
getLoadedObject(Long formId)
|
Object |
getLoadedObject(Long formId,
String namespace)
|
Map |
getMapRepresentationToPersist(org.jbpm.formModeler.api.model.Form form,
String namespace)
|
protected String |
getPrefix(org.jbpm.formModeler.api.model.Form form,
String namespace)
|
void |
load(Long formId,
Long objIdentifier,
String itemClassName)
|
void |
load(Long formId,
Object loadObject)
|
void |
load(Long formId,
String namespace,
Long objIdentifier,
String itemClassName)
|
void |
load(Long formId,
String namespace,
Long objIdentifier,
String itemClassName,
String formMode)
|
void |
load(Long formId,
String namespace,
Object loadObject)
|
void |
load(Long formId,
String namespace,
Object loadObject,
String formMode)
|
void |
modify(org.jbpm.formModeler.api.model.Form form,
String namespace,
String fieldName,
Object value)
|
protected void |
propagateChangesToParentFormStatuses(FormStatus formStatus,
String fieldName,
Object value)
|
org.jbpm.formModeler.api.processing.FormStatusData |
read(Long formId)
|
org.jbpm.formModeler.api.processing.FormStatusData |
read(Long formId,
String namespace)
|
org.jbpm.formModeler.api.processing.FormStatusData |
read(Long formId,
String namespace,
Map currentValues)
|
void |
setAttribute(org.jbpm.formModeler.api.model.Form form,
String namespace,
String attributeName,
Object attributeValue)
|
protected void |
setDefaultValues(Long formId,
String namespace,
Map currentValues)
|
protected void |
setFieldValue(org.jbpm.formModeler.api.model.Field field,
FormStatus formStatus,
String inputsPrefix,
Map parameterMap,
Map filesMap,
boolean incremental)
|
void |
setFormChangeProcessor(FormChangeProcessor formChangeProcessor)
|
void |
setFormStatusManager(FormStatusManager formStatusManager)
|
void |
setValues(org.jbpm.formModeler.api.model.Form form,
Map parameterMap,
Map filesMap)
|
void |
setValues(org.jbpm.formModeler.api.model.Form form,
Map parameterMap,
Map filesMap,
boolean incremental)
|
void |
setValues(org.jbpm.formModeler.api.model.Form form,
String namespace,
Map parameterMap,
Map filesMap)
|
void |
setValues(org.jbpm.formModeler.api.model.Form form,
String namespace,
Map parameterMap,
Map filesMap,
boolean incremental)
|
| Methods inherited from class org.jbpm.formModeler.service.bb.commons.config.componentsFactory.BasicFactoryElement |
addPeriodicTask, addPeriodicTask, factoryLookup, getComponentAlias, getComponentDescription, getComponentName, getComponentScope, init, setComponentAlias, shutdown, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormProcessorImpl
public FormProcessorImpl()
getFormStatusManager
public FormStatusManager getFormStatusManager()
setFormStatusManager
public void setFormStatusManager(FormStatusManager formStatusManager)
getFormChangeProcessor
public FormChangeProcessor getFormChangeProcessor()
setFormChangeProcessor
public void setFormChangeProcessor(FormChangeProcessor formChangeProcessor)
getFactoryName
public String getFactoryName()
getFormStatus
protected FormStatus getFormStatus(Long formId,
String namespace)
getFormStatus
protected FormStatus getFormStatus(Long formId,
String namespace,
Map currentValues)
existsFormStatus
protected boolean existsFormStatus(Long formId,
String namespace)
createFormStatus
protected FormStatus createFormStatus(Long formId,
String namespace)
createFormStatus
protected FormStatus createFormStatus(Long formId,
String namespace,
Map currentValues)
setDefaultValues
protected void setDefaultValues(Long formId,
String namespace,
Map currentValues)
destroyFormStatus
protected void destroyFormStatus(Long formId,
String namespace)
setValues
public void setValues(org.jbpm.formModeler.api.model.Form form,
String namespace,
Map parameterMap,
Map filesMap)
- Specified by:
setValues in interface org.jbpm.formModeler.api.processing.FormProcessor
setValues
public void setValues(org.jbpm.formModeler.api.model.Form form,
String namespace,
Map parameterMap,
Map filesMap,
boolean incremental)
- Specified by:
setValues in interface org.jbpm.formModeler.api.processing.FormProcessor
modify
public void modify(org.jbpm.formModeler.api.model.Form form,
String namespace,
String fieldName,
Object value)
- Specified by:
modify in interface org.jbpm.formModeler.api.processing.FormProcessor
setAttribute
public void setAttribute(org.jbpm.formModeler.api.model.Form form,
String namespace,
String attributeName,
Object attributeValue)
- Specified by:
setAttribute in interface org.jbpm.formModeler.api.processing.FormProcessor
getAttribute
public Object getAttribute(org.jbpm.formModeler.api.model.Form form,
String namespace,
String attributeName)
- Specified by:
getAttribute in interface org.jbpm.formModeler.api.processing.FormProcessor
setFieldValue
protected void setFieldValue(org.jbpm.formModeler.api.model.Field field,
FormStatus formStatus,
String inputsPrefix,
Map parameterMap,
Map filesMap,
boolean incremental)
propagateChangesToParentFormStatuses
protected void propagateChangesToParentFormStatuses(FormStatus formStatus,
String fieldName,
Object value)
read
public org.jbpm.formModeler.api.processing.FormStatusData read(Long formId,
String namespace,
Map currentValues)
- Specified by:
read in interface org.jbpm.formModeler.api.processing.FormProcessor
read
public org.jbpm.formModeler.api.processing.FormStatusData read(Long formId,
String namespace)
- Specified by:
read in interface org.jbpm.formModeler.api.processing.FormProcessor
flushPendingCalculations
public void flushPendingCalculations(org.jbpm.formModeler.api.model.Form form,
String namespace)
- Specified by:
flushPendingCalculations in interface org.jbpm.formModeler.api.processing.FormProcessor
getMapRepresentationToPersist
public Map getMapRepresentationToPersist(org.jbpm.formModeler.api.model.Form form,
String namespace)
throws Exception
- Specified by:
getMapRepresentationToPersist in interface org.jbpm.formModeler.api.processing.FormProcessor
- Throws:
Exception
getFilteredMapRepresentationToPersist
protected Map getFilteredMapRepresentationToPersist(org.jbpm.formModeler.api.model.Form form,
String namespace)
throws Exception
- Throws:
Exception
filterMapRepresentationToPersist
public Map filterMapRepresentationToPersist(Map inputValues)
throws Exception
- Throws:
Exception
fillObjectValues
protected void fillObjectValues(Map obj,
Map values,
org.jbpm.formModeler.api.model.Form form)
throws Exception
- Copy to obj values read from status map values
- Parameters:
obj - values -
- Throws:
Exception
load
public void load(Long formId,
String namespace,
Long objIdentifier,
String itemClassName)
throws Exception
- Specified by:
load in interface org.jbpm.formModeler.api.processing.FormProcessor
- Throws:
Exception
load
public void load(Long formId,
String namespace,
Long objIdentifier,
String itemClassName,
String formMode)
throws Exception
- Specified by:
load in interface org.jbpm.formModeler.api.processing.FormProcessor
- Throws:
Exception
load
public void load(Long formId,
String namespace,
Object loadObject)
throws Exception
- Specified by:
load in interface org.jbpm.formModeler.api.processing.FormProcessor
- Throws:
Exception
load
public void load(Long formId,
String namespace,
Object loadObject,
String formMode)
throws Exception
- Specified by:
load in interface org.jbpm.formModeler.api.processing.FormProcessor
- Throws:
Exception
getFormsManager
protected FormManagerImpl getFormsManager()
getLoadedObject
public Object getLoadedObject(Long formId,
String namespace)
throws Exception
- Specified by:
getLoadedObject in interface org.jbpm.formModeler.api.processing.FormProcessor
- Throws:
Exception
clear
public void clear(Long formId,
String namespace)
- Specified by:
clear in interface org.jbpm.formModeler.api.processing.FormProcessor
clearField
public void clearField(Long formId,
String namespace,
String fieldName)
- Specified by:
clearField in interface org.jbpm.formModeler.api.processing.FormProcessor
clearFieldErrors
public void clearFieldErrors(org.jbpm.formModeler.api.model.Form form,
String namespace)
- Specified by:
clearFieldErrors in interface org.jbpm.formModeler.api.processing.FormProcessor
forceWrongField
public void forceWrongField(org.jbpm.formModeler.api.model.Form form,
String namespace,
String fieldName)
- Specified by:
forceWrongField in interface org.jbpm.formModeler.api.processing.FormProcessor
clear
public void clear(Long formId)
getLoadedObject
public Object getLoadedObject(Long formId)
throws Exception
- Throws:
Exception
load
public void load(Long formId,
Object loadObject)
throws Exception
- Throws:
Exception
load
public void load(Long formId,
Long objIdentifier,
String itemClassName)
throws Exception
- Throws:
Exception
read
public org.jbpm.formModeler.api.processing.FormStatusData read(Long formId)
setValues
public void setValues(org.jbpm.formModeler.api.model.Form form,
Map parameterMap,
Map filesMap)
setValues
public void setValues(org.jbpm.formModeler.api.model.Form form,
Map parameterMap,
Map filesMap,
boolean incremental)
getPrefix
protected String getPrefix(org.jbpm.formModeler.api.model.Form form,
String namespace)
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.