org.jbpm.formModeler.core.processing
public interface FormProcessor
Modifier and Type | Field and Description |
---|---|
static String |
ATTR_INTERPRETER |
static String |
CUSTOM_NAMESPACE_SEPARATOR |
static String |
DEFAULT_NAMESPACE |
static String |
FORM_MODE |
static String |
MODIFIED_FIELD_NAMES |
static String |
NAMESPACE_SEPARATOR |
Modifier and Type | Method and Description |
---|---|
void |
clear(FormRenderContext context)
Clears status data for given render context
|
void |
clear(Form form,
String namespace)
Clears status data for given form.
|
void |
clear(String ctxUID)
Clears status data for given render context
|
void |
clearField(Form form,
String namespace,
String fieldName)
Clear a field value.
|
void |
clearFieldErrors(Form form,
String namespace)
Remove field errors that might be in this formStatus.
|
Map |
createFieldContextValueFromHolder(Form form,
String namespace,
Map<String,Object> inputData,
Map<String,Object> outputData,
Map<String,Object> loadedObjects,
DataHolder holder) |
void |
flushPendingCalculations(Form form,
String namespace)
Calculates all formulas for given form.
|
void |
forceWrongField(Form form,
String namespace,
String fieldName)
Mark a field as wrong
|
Object |
getAttribute(Form form,
String namespace,
String attributeName)
Gets an attribute for given form status
|
Map |
getMapRepresentationToPersist(Form form,
String namespace)
Returns the Map to persis based on the data stored on the data stored on a FormStatus
|
void |
modify(Form form,
String namespace,
String fieldName,
Object value)
Directly modify the status value for a form field.
|
void |
persist(FormRenderContext context)
Persists the status for given FormRenderContext.
|
void |
persist(String ctxUid)
Persists the status for given FormRenderContext id.
|
Object |
persistFormHolder(Form form,
String namespace,
Map<String,Object> mapToPersist,
DataHolder holder,
Object loadedObject)
Persists the form fields that match the given holder
|
FormStatusData |
read(Form form,
String namespace)
Read status for given form id.
|
FormStatusData |
read(Form form,
String namespace,
Map<String,Object> formValues)
Read status for given form id.
|
FormStatusData |
read(Form form,
String namespace,
Map<String,Object> formValues,
Map<String,Object> loadedObjects)
Read status for given form id.
|
FormStatusData |
read(String ctxUid)
Read status for given FormRenderContext id.
|
void |
setAttribute(Form form,
String namespace,
String attributeName,
Object attributeValue)
Sets an attribute for given form status
|
void |
setValues(Form form,
String namespace,
Map parameterMap,
Map filesMap)
Get submit values from a request parameter map and a files map, and store it in
a form status.
|
void |
setValues(Form form,
String namespace,
Map parameterMap,
Map filesMap,
boolean incremental)
Get submit values from a request parameter map and a files map, and store it in
a form status.
|
static final String NAMESPACE_SEPARATOR
static final String CUSTOM_NAMESPACE_SEPARATOR
static final String DEFAULT_NAMESPACE
static final String MODIFIED_FIELD_NAMES
static final String FORM_MODE
static final String ATTR_INTERPRETER
void setValues(Form form, String namespace, Map parameterMap, Map filesMap)
form
- Form to processparameterMap
- Parameters map, as extracted from a request.filesMap
- files map, where a parameter name points to a filenamespace
- Form namespacevoid setValues(Form form, String namespace, Map parameterMap, Map filesMap, boolean incremental)
form
- Form to processparameterMap
- Parameters map, as extracted from a request.filesMap
- files map, where a parameter name points to a fileincremental
- Determines if form status should be cleared before setting the parameter valuesnamespace
- Form namespacevoid modify(Form form, String namespace, String fieldName, Object value)
form
- Form to modifynamespace
- Form namespacefieldName
- Field name to modifyvalue
- new value to set for this field.void setAttribute(Form form, String namespace, String attributeName, Object attributeValue)
form
- Form to processnamespace
- Form namespaceattributeName
- Attribute nameattributeValue
- Attribute valueObject getAttribute(Form form, String namespace, String attributeName)
form
- Form to processnamespace
- Form namespaceattributeName
- Attribute nameFormStatusData read(String ctxUid)
ctxUid
- Form render context UIDvoid persist(FormRenderContext context) throws Exception
context
- Form render contextException
Object persistFormHolder(Form form, String namespace, Map<String,Object> mapToPersist, DataHolder holder, Object loadedObject) throws Exception
form
- namespace
- mapToPersist
- holder
- Exception
void persist(String ctxUid) throws Exception
ctxUid
- Form render context UIDException
FormStatusData read(Form form, String namespace)
form
- Form id to readnamespace
- Form namespaceFormStatusData read(Form form, String namespace, Map<String,Object> formValues)
form
- Form to readnamespace
- Form namespaceformValues
- Values to load into the statusFormStatusData read(Form form, String namespace, Map<String,Object> formValues, Map<String,Object> loadedObjects)
form
- Form to readnamespace
- Form namespaceformValues
- Values to load into the statusloadedObjects
- Map containing the objects loaded on the formvoid flushPendingCalculations(Form form, String namespace)
form
- Form to storenamespace
- Form namespaceMap getMapRepresentationToPersist(Form form, String namespace) throws Exception
form
- The form that corresponds the FormStatusnamespace
- The namespace that identifies the FormStatusException
- in case of error building the Mapvoid clear(FormRenderContext context)
context
- Context to clearvoid clear(String ctxUID)
ctxUID
- Render context id to clearvoid clear(Form form, String namespace)
form
- Form to clearnamespace
- Form namespacevoid clearField(Form form, String namespace, String fieldName)
form
- Form to processnamespace
- Form namespacefieldName
- Field name to clearvoid clearFieldErrors(Form form, String namespace)
form
- Form to clearnamespace
- Namespace to clearvoid forceWrongField(Form form, String namespace, String fieldName)
form
- form to modifynamespace
- namespacefieldName
- field name to mark as wrongCopyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.