Package org.imixs.workflow.office.forms
Class CustomFormController
java.lang.Object
org.imixs.workflow.office.forms.CustomFormController
- All Implemented Interfaces:
Serializable
The CustomFormController computes a set of fields based on a data object
provided by the model.
- Author:
- rsoika
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeFieldDefinition(org.imixs.workflow.ItemCollection workitem) Computes an new custom Field Definition based on a given workitem.voidonWorkflowEvent(org.imixs.workflow.faces.data.WorkflowEvent workflowEvent) WorkflowEvent listener to update the current FormDefinition.voidsetReadOnly(boolean readOnly) This method overwrite the 'readOnly' status flag for all sections.
-
Constructor Details
-
CustomFormController
public CustomFormController()
-
-
Method Details
-
getSubforms
-
getSections
-
onWorkflowEvent
public void onWorkflowEvent(@Observes org.imixs.workflow.faces.data.WorkflowEvent workflowEvent) throws org.imixs.workflow.exceptions.ModelException WorkflowEvent listener to update the current FormDefinition.- Parameters:
workflowEvent-- Throws:
org.imixs.workflow.exceptions.AccessDeniedExceptionorg.imixs.workflow.exceptions.ModelException
-
computeFieldDefinition
public void computeFieldDefinition(org.imixs.workflow.ItemCollection workitem) throws org.imixs.workflow.exceptions.ModelException Computes an new custom Field Definition based on a given workitem. The method first looks if the model contains a custom definition. If not the method checks the workitem field txtWorkflowEditorCustomForm which holds the last parsed custom form definition- Throws:
org.imixs.workflow.exceptions.ModelException
-
setReadOnly
public void setReadOnly(boolean readOnly) This method overwrite the 'readOnly' status flag for all sections. Note: sections can be embedded in optional subForms.- Parameters:
readOnly-
-