Package org.imixs.workflow.office.forms
Class CustomFormService
java.lang.Object
org.imixs.workflow.office.forms.CustomFormService
- All Implemented Interfaces:
Serializable
@DeclareRoles({"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"})
@RolesAllowed({"org.imixs.ACCESSLEVEL.NOACCESS","org.imixs.ACCESSLEVEL.READERACCESS","org.imixs.ACCESSLEVEL.AUTHORACCESS","org.imixs.ACCESSLEVEL.EDITORACCESS","org.imixs.ACCESSLEVEL.MANAGERACCESS"})
public class CustomFormService
extends Object
implements Serializable
The CustomFormController computes a set of fields based on a data object
provided by the model. This data is used by the
CustomFormController
to display sections and fields.- Author:
- rsoika
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonWorkflowEvent(org.imixs.workflow.engine.ProcessingEvent processingEvent) WorkflowEvent listener to update the current FormDefinition.updateCustomFieldDefinition(org.imixs.workflow.ItemCollection workitem) This method updates the custom Field Definition based on a given workitem.
-
Constructor Details
-
CustomFormService
public CustomFormService()
-
-
Method Details
-
onWorkflowEvent
public void onWorkflowEvent(@Observes org.imixs.workflow.engine.ProcessingEvent processingEvent) throws org.imixs.workflow.exceptions.ModelException WorkflowEvent listener to update the current FormDefinition.- Parameters:
processingEvent-- Throws:
org.imixs.workflow.exceptions.AccessDeniedExceptionorg.imixs.workflow.exceptions.ModelException
-
updateCustomFieldDefinition
public String updateCustomFieldDefinition(org.imixs.workflow.ItemCollection workitem) throws org.imixs.workflow.exceptions.ModelException This method updates the custom Field Definition based on a given workitem. The method first looks if the model contains a custom definition and stores the data into the field txtWorkflowEditorCustomForm.In case the model does not provide a custom Field Definition but the workitem has stored one the method returns the existing one and did not update the item 'txtWorkflowEditorCustomForm'
- Returns:
- Throws:
org.imixs.workflow.exceptions.ModelException
-