Package com.flowable.form.engine.impl
Class FormServiceImpl
java.lang.Object
org.flowable.common.engine.impl.service.CommonServiceImpl<FormEngineConfiguration>
org.flowable.common.engine.impl.service.CommonEngineServiceImpl<FormEngineConfiguration>
com.flowable.form.engine.impl.FormServiceImpl
- All Implemented Interfaces:
CoreFormService,org.flowable.form.api.FormService
public class FormServiceImpl
extends org.flowable.common.engine.impl.service.CommonEngineServiceImpl<FormEngineConfiguration>
implements CoreFormService
- Author:
- Tijs Rademakers
-
Field Summary
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutorFields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbulkDeleteFormInstancesByProcessInstanceIds(Collection<String> processInstanceIds) voidbulkDeleteFormInstancesByScopeIdsAndScopeType(Collection<String> scopeIds, String scopeType) org.flowable.form.api.FormInstancecreateFormInstance(Map<String, Object> variables, org.flowable.form.api.FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome) org.flowable.form.api.FormInstanceQueryorg.flowable.form.api.FormInstancecreateFormInstanceWithScopeId(Map<String, Object> variables, org.flowable.form.api.FormInfo formInfo, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome) voiddeleteFormInstance(String formInstanceId) voiddeleteFormInstancesByFormDefinition(String formDefinitionId) voiddeleteFormInstancesByProcessDefinition(String processDefinitionId) voiddeleteFormInstancesByScopeDefinition(String scopeDefinitionId) filterFormValues(String elementId, String elementType, String scopeDefinitionId, String scopeType, Map<String, Object> formValues) Filter the form values based on the defined output mappings.org.flowable.form.api.FormInstanceInfogetFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String, Object> variables) org.flowable.form.api.FormInstanceInfogetFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) org.flowable.form.api.FormInstanceInfogetFormInstanceModelById(String formInstanceId, Map<String, Object> variables) org.flowable.form.api.FormInstanceInfogetFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String, Object> variables) org.flowable.form.api.FormInstanceInfogetFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) org.flowable.form.api.FormInstanceInfogetFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String, Object> variables) org.flowable.form.api.FormInstanceInfogetFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) org.flowable.form.api.FormInstanceInfogetFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String, Object> variables) org.flowable.form.api.FormInstanceInfogetFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) org.flowable.form.api.FormInstanceInfogetFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String, Object> variables) org.flowable.form.api.FormInstanceInfogetFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) byte[]getFormInstanceValues(String formInstanceId) org.flowable.form.api.FormInfoorg.flowable.form.api.FormInfogetFormModelWithVariablesById(String formId, String taskId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) org.flowable.form.api.FormInfogetFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String, Object> variables) org.flowable.form.api.FormInfogetFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) org.flowable.form.api.FormInfogetFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String, Object> variables) org.flowable.form.api.FormInfogetFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) getSavedFormVariables(org.flowable.form.api.FormInstance formInstance) getStartFormVariables(String processInstanceId, String scopeId) getVariablesFromFormSubmission(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, org.flowable.form.api.FormInfo formInfo, Map<String, Object> values) getVariablesFromFormSubmission(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, org.flowable.form.api.FormInfo formInfo, Map<String, Object> values, String outcome) org.flowable.form.api.FormInstancesaveFormInstance(Map<String, Object> variables, org.flowable.form.api.FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome) org.flowable.form.api.FormInstancesaveFormInstanceByFormDefinitionId(Map<String, Object> variables, String formDefinitionId, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome) org.flowable.form.api.FormInstancesaveFormInstanceWithScopeId(Map<String, Object> variables, String formModelId, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome) org.flowable.form.api.FormInstancesaveFormInstanceWithScopeId(Map<String, Object> variables, org.flowable.form.api.FormInfo formInfo, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome) voidvalidateFormFields(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, org.flowable.form.api.FormInfo formInfo, Map<String, Object> values) Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutorMethods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
Constructor Details
-
FormServiceImpl
public FormServiceImpl()
-
-
Method Details
-
getVariablesFromFormSubmission
-
validateFormFields
public void validateFormFields(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, org.flowable.form.api.FormInfo formInfo, Map<String, Object> values) - Specified by:
validateFormFieldsin interfaceorg.flowable.form.api.FormService
-
getVariablesFromFormSubmission
public Map<String,Object> getVariablesFromFormSubmission(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, org.flowable.form.api.FormInfo formInfo, Map<String, Object> values, String outcome) - Specified by:
getVariablesFromFormSubmissionin interfaceorg.flowable.form.api.FormService
-
createFormInstance
public org.flowable.form.api.FormInstance createFormInstance(Map<String, Object> variables, org.flowable.form.api.FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome) - Specified by:
createFormInstancein interfaceorg.flowable.form.api.FormService
-
saveFormInstance
public org.flowable.form.api.FormInstance saveFormInstance(Map<String, Object> variables, org.flowable.form.api.FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome) - Specified by:
saveFormInstancein interfaceorg.flowable.form.api.FormService
-
saveFormInstanceByFormDefinitionId
public org.flowable.form.api.FormInstance saveFormInstanceByFormDefinitionId(Map<String, Object> variables, String formDefinitionId, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome) - Specified by:
saveFormInstanceByFormDefinitionIdin interfaceorg.flowable.form.api.FormService
-
createFormInstanceWithScopeId
public org.flowable.form.api.FormInstance createFormInstanceWithScopeId(Map<String, Object> variables, org.flowable.form.api.FormInfo formInfo, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome) - Specified by:
createFormInstanceWithScopeIdin interfaceorg.flowable.form.api.FormService
-
saveFormInstanceWithScopeId
public org.flowable.form.api.FormInstance saveFormInstanceWithScopeId(Map<String, Object> variables, org.flowable.form.api.FormInfo formInfo, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome) - Specified by:
saveFormInstanceWithScopeIdin interfaceorg.flowable.form.api.FormService
-
saveFormInstanceWithScopeId
public org.flowable.form.api.FormInstance saveFormInstanceWithScopeId(Map<String, Object> variables, String formModelId, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome) - Specified by:
saveFormInstanceWithScopeIdin interfaceorg.flowable.form.api.FormService
-
getFormModelWithVariablesById
public org.flowable.form.api.FormInfo getFormModelWithVariablesById(String formDefinitionId, String taskId, Map<String, Object> variables) - Specified by:
getFormModelWithVariablesByIdin interfaceorg.flowable.form.api.FormService
-
getFormModelWithVariablesById
public org.flowable.form.api.FormInfo getFormModelWithVariablesById(String formId, String taskId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) - Specified by:
getFormModelWithVariablesByIdin interfaceorg.flowable.form.api.FormService
-
getFormModelWithVariablesByKey
public org.flowable.form.api.FormInfo getFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String, Object> variables) - Specified by:
getFormModelWithVariablesByKeyin interfaceorg.flowable.form.api.FormService
-
getFormModelWithVariablesByKey
public org.flowable.form.api.FormInfo getFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) - Specified by:
getFormModelWithVariablesByKeyin interfaceorg.flowable.form.api.FormService
-
getFormModelWithVariablesByKeyAndParentDeploymentId
public org.flowable.form.api.FormInfo getFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String, Object> variables) - Specified by:
getFormModelWithVariablesByKeyAndParentDeploymentIdin interfaceorg.flowable.form.api.FormService
-
getFormModelWithVariablesByKeyAndParentDeploymentId
public org.flowable.form.api.FormInfo getFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) - Specified by:
getFormModelWithVariablesByKeyAndParentDeploymentIdin interfaceorg.flowable.form.api.FormService
-
getFormInstanceModelById
public org.flowable.form.api.FormInstanceInfo getFormInstanceModelById(String formInstanceId, Map<String, Object> variables) - Specified by:
getFormInstanceModelByIdin interfaceorg.flowable.form.api.FormService
-
getFormInstanceModelById
public org.flowable.form.api.FormInstanceInfo getFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String, Object> variables) - Specified by:
getFormInstanceModelByIdin interfaceorg.flowable.form.api.FormService
-
getFormInstanceModelById
public org.flowable.form.api.FormInstanceInfo getFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) - Specified by:
getFormInstanceModelByIdin interfaceorg.flowable.form.api.FormService
-
getFormInstanceModelByKey
public org.flowable.form.api.FormInstanceInfo getFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String, Object> variables) - Specified by:
getFormInstanceModelByKeyin interfaceorg.flowable.form.api.FormService
-
getFormInstanceModelByKey
public org.flowable.form.api.FormInstanceInfo getFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) - Specified by:
getFormInstanceModelByKeyin interfaceorg.flowable.form.api.FormService
-
getFormInstanceModelByKeyAndParentDeploymentId
public org.flowable.form.api.FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String, Object> variables) - Specified by:
getFormInstanceModelByKeyAndParentDeploymentIdin interfaceorg.flowable.form.api.FormService
-
getFormInstanceModelByKeyAndParentDeploymentId
public org.flowable.form.api.FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) - Specified by:
getFormInstanceModelByKeyAndParentDeploymentIdin interfaceorg.flowable.form.api.FormService
-
getFormInstanceModelByKeyAndScopeId
public org.flowable.form.api.FormInstanceInfo getFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String, Object> variables) - Specified by:
getFormInstanceModelByKeyAndScopeIdin interfaceorg.flowable.form.api.FormService
-
getFormInstanceModelByKeyAndScopeId
public org.flowable.form.api.FormInstanceInfo getFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) - Specified by:
getFormInstanceModelByKeyAndScopeIdin interfaceorg.flowable.form.api.FormService
-
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId
public org.flowable.form.api.FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String, Object> variables) - Specified by:
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeIdin interfaceorg.flowable.form.api.FormService
-
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId
public org.flowable.form.api.FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) - Specified by:
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeIdin interfaceorg.flowable.form.api.FormService
-
filterFormValues
public Map<String,Object> filterFormValues(String elementId, String elementType, String scopeDefinitionId, String scopeType, Map<String, Object> formValues) Description copied from interface:CoreFormServiceFilter the form values based on the defined output mappings.- Specified by:
filterFormValuesin interfaceCoreFormService- Parameters:
elementId- element id to which the form is attached to.elementType- element type to which the form is attached to.scopeDefinitionId- definition id to which the form is attached to.scopeType- scope type to which the form is attached to.- Returns:
- the filtered values.
-
getFormInstanceValues
- Specified by:
getFormInstanceValuesin interfaceorg.flowable.form.api.FormService
-
createFormInstanceQuery
public org.flowable.form.api.FormInstanceQuery createFormInstanceQuery()- Specified by:
createFormInstanceQueryin interfaceorg.flowable.form.api.FormService
-
deleteFormInstance
- Specified by:
deleteFormInstancein interfaceorg.flowable.form.api.FormService
-
deleteFormInstancesByFormDefinition
- Specified by:
deleteFormInstancesByFormDefinitionin interfaceorg.flowable.form.api.FormService
-
deleteFormInstancesByProcessDefinition
- Specified by:
deleteFormInstancesByProcessDefinitionin interfaceorg.flowable.form.api.FormService
-
deleteFormInstancesByScopeDefinition
- Specified by:
deleteFormInstancesByScopeDefinitionin interfaceorg.flowable.form.api.FormService
-
getSavedFormVariables
-
getStartFormVariables
-
bulkDeleteFormInstancesByProcessInstanceIds
-
bulkDeleteFormInstancesByScopeIdsAndScopeType
public void bulkDeleteFormInstancesByScopeIdsAndScopeType(Collection<String> scopeIds, String scopeType)
-