Package com.flowable.core.service.form
Class FlowableCoreFormDecorator
java.lang.Object
com.flowable.core.service.form.FlowableCoreFormDecorator
- All Implemented Interfaces:
FlowableFormDecorator
- Author:
- Filip Hrisafov
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decorateCaseDefinitionFormModel
(FlowableFormModel formModel, String caseDefinitionId) void
decorateCaseInstanceFormModel
(FlowableFormModel formModel, String caseInstanceId) void
decorateDefinitionFormModel
(FlowableFormModel formModel, String scopeType, String scopeDefinitionId) void
decorateFormModel
(FlowableFormModel formModel, String scopeType, String scopeId) protected void
decorateFormModel
(FlowableFormModel formModel, String scopeType, String scopeId, String scopeDefinitionId) Decorate the giveformModel
based on the passed scope Type and id or definition.void
decorateProcessDefinitionFormModel
(FlowableFormModel formModel, String processDefinitionId) void
decorateProcessInstanceFormModel
(FlowableFormModel formModel, String processInstanceId) void
decorateTaskFormModel
(FlowableFormModel formModel, String taskId) protected String
getDocumentDefinitionUrl
(String fieldId, String scopeType, String scopeId, String scopeDefinitionId) protected String
getFileServiceValue
(String scopeType, String scopeId, String scopeDefinitionId) protected String
getFormUploadUrl
(String scopeType, String scopeId, String scopeDefinitionId) protected String
getInvokeServiceUrl
(String fieldId, String scopeType, String scopeId, String scopeDefinitionId) getListObjectByName
(String name, Map<String, Object> formField) getMapObjectByName
(String name, Map<String, Object> formField) protected String
getUpdateFileUploadUrl
(String scopeType, String scopeId, String scopeDefinitionId) protected boolean
hasNoValueForKey
(String key, Map<String, Object> map) protected boolean
hasValueForKey
(String key, Map<String, Object> map) protected void
processAttachmentFormField
(Map<String, Object> formField, String scopeType, String scopeId, String scopeDefinitionId) protected void
processDataTableFormField
(Map<String, Object> formField, String scopeType, String scopeId, String scopeDefinitionId) protected void
processExtraSettingsMap
(Map<String, Object> extraSettings, String scopeType, String scopeId, String scopeDefinitionId) protected void
processFormFieldMap
(Map<String, Object> formField, String scopeType, String scopeId, String scopeDefinitionId) protected void
processGalleriesFormField
(Map<String, Object> formField, String scopeType, String scopeId, String scopeDefinitionId) protected void
processInvokeServiceField
(Map<String, Object> formField, String scopeType, String scopeId, String scopeDefinitionId) protected void
processOtherFormField
(Map<String, Object> formField, String scopeType, String scopeId, String scopeDefinitionId) protected void
processPdfViewerFormField
(Map<String, Object> formField, String scopeType, String scopeId, String scopeDefinitionId) protected void
processSelectFormField
(Map<String, Object> formField, String scopeType, String scopeId, String scopeDefinitionId) protected void
processUploadFormField
(Map<String, Object> formField, String scopeType, String scopeId, String scopeDefinitionId)
-
Field Details
-
FILE_SERVICE_VALUE
- See Also:
-
-
Constructor Details
-
FlowableCoreFormDecorator
public FlowableCoreFormDecorator()
-
-
Method Details
-
decorateFormModel
- Specified by:
decorateFormModel
in interfaceFlowableFormDecorator
-
decorateDefinitionFormModel
public void decorateDefinitionFormModel(FlowableFormModel formModel, String scopeType, String scopeDefinitionId) - Specified by:
decorateDefinitionFormModel
in interfaceFlowableFormDecorator
-
decorateTaskFormModel
- Specified by:
decorateTaskFormModel
in interfaceFlowableFormDecorator
-
decorateProcessInstanceFormModel
- Specified by:
decorateProcessInstanceFormModel
in interfaceFlowableFormDecorator
-
decorateCaseInstanceFormModel
- Specified by:
decorateCaseInstanceFormModel
in interfaceFlowableFormDecorator
-
decorateProcessDefinitionFormModel
public void decorateProcessDefinitionFormModel(FlowableFormModel formModel, String processDefinitionId) - Specified by:
decorateProcessDefinitionFormModel
in interfaceFlowableFormDecorator
-
decorateCaseDefinitionFormModel
- Specified by:
decorateCaseDefinitionFormModel
in interfaceFlowableFormDecorator
-
decorateFormModel
protected void decorateFormModel(FlowableFormModel formModel, String scopeType, String scopeId, String scopeDefinitionId) Decorate the giveformModel
based on the passed scope Type and id or definition.scopeId
andscopeDefinitionId
are never set in the same time.- Parameters:
formModel
- the form model that should be decoratedscopeType
- the scope type for which the decoration should happenscopeId
- the scope if for which the decoration should happenscopeDefinitionId
- the scope definition id for which the decoration should happen
-
processFormFieldMap
-
processInvokeServiceField
-
processUploadFormField
-
processAttachmentFormField
-
processPdfViewerFormField
-
processGalleriesFormField
-
processDataTableFormField
-
processSelectFormField
-
processOtherFormField
-
processExtraSettingsMap
-
hasNoValueForKey
-
hasValueForKey
-
getFormUploadUrl
-
getUpdateFileUploadUrl
-
getFileServiceValue
-
getMapObjectByName
-
getListObjectByName
-
getDocumentDefinitionUrl
-
getInvokeServiceUrl
-