Package com.flowable.form.engine.impl
Class FormServiceImpl
- java.lang.Object
-
- org.flowable.common.engine.impl.service.CommonServiceImpl<C>
-
- org.flowable.common.engine.impl.service.CommonEngineServiceImpl<FormEngineConfiguration>
-
- com.flowable.form.engine.impl.FormServiceImpl
-
- All Implemented Interfaces:
FormService
public class FormServiceImpl extends CommonEngineServiceImpl<FormEngineConfiguration> implements FormService
- Author:
- Tijs Rademakers
-
-
Field Summary
-
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutor
-
Fields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration
-
-
Constructor Summary
Constructors Constructor Description FormServiceImpl()
-
Method Summary
-
Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutor
-
Methods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
-
-
-
Method Detail
-
getVariablesFromFormSubmission
public Map<String,Object> getVariablesFromFormSubmission(FormInfo formInfo, Map<String,Object> values)
-
validateFormFields
public void validateFormFields(FormInfo formInfo, Map<String,Object> values)
- Specified by:
validateFormFields
in interfaceFormService
-
getVariablesFromFormSubmission
public Map<String,Object> getVariablesFromFormSubmission(FormInfo formInfo, Map<String,Object> values, String outcome)
- Specified by:
getVariablesFromFormSubmission
in interfaceFormService
-
createFormInstance
public FormInstance createFormInstance(Map<String,Object> variables, FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome)
- Specified by:
createFormInstance
in interfaceFormService
-
saveFormInstance
public FormInstance saveFormInstance(Map<String,Object> variables, FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome)
- Specified by:
saveFormInstance
in interfaceFormService
-
saveFormInstanceByFormDefinitionId
public FormInstance saveFormInstanceByFormDefinitionId(Map<String,Object> variables, String formDefinitionId, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome)
- Specified by:
saveFormInstanceByFormDefinitionId
in interfaceFormService
-
createFormInstanceWithScopeId
public FormInstance createFormInstanceWithScopeId(Map<String,Object> variables, FormInfo formInfo, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome)
- Specified by:
createFormInstanceWithScopeId
in interfaceFormService
-
saveFormInstanceWithScopeId
public FormInstance saveFormInstanceWithScopeId(Map<String,Object> variables, FormInfo formInfo, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome)
- Specified by:
saveFormInstanceWithScopeId
in interfaceFormService
-
saveFormInstanceWithScopeId
public FormInstance saveFormInstanceWithScopeId(Map<String,Object> variables, String formModelId, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome)
- Specified by:
saveFormInstanceWithScopeId
in interfaceFormService
-
getFormModelWithVariablesById
public FormInfo getFormModelWithVariablesById(String formDefinitionId, String taskId, Map<String,Object> variables)
- Specified by:
getFormModelWithVariablesById
in interfaceFormService
-
getFormModelWithVariablesById
public FormInfo getFormModelWithVariablesById(String formId, String taskId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
- Specified by:
getFormModelWithVariablesById
in interfaceFormService
-
getFormModelWithVariablesByKey
public FormInfo getFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String,Object> variables)
- Specified by:
getFormModelWithVariablesByKey
in interfaceFormService
-
getFormModelWithVariablesByKey
public FormInfo getFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
- Specified by:
getFormModelWithVariablesByKey
in interfaceFormService
-
getFormModelWithVariablesByKeyAndParentDeploymentId
public FormInfo getFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String,Object> variables)
- Specified by:
getFormModelWithVariablesByKeyAndParentDeploymentId
in interfaceFormService
-
getFormModelWithVariablesByKeyAndParentDeploymentId
public FormInfo getFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
- Specified by:
getFormModelWithVariablesByKeyAndParentDeploymentId
in interfaceFormService
-
getFormInstanceModelById
public FormInstanceInfo getFormInstanceModelById(String formInstanceId, Map<String,Object> variables)
- Specified by:
getFormInstanceModelById
in interfaceFormService
-
getFormInstanceModelById
public FormInstanceInfo getFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String,Object> variables)
- Specified by:
getFormInstanceModelById
in interfaceFormService
-
getFormInstanceModelById
public FormInstanceInfo getFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
- Specified by:
getFormInstanceModelById
in interfaceFormService
-
getFormInstanceModelByKey
public FormInstanceInfo getFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String,Object> variables)
- Specified by:
getFormInstanceModelByKey
in interfaceFormService
-
getFormInstanceModelByKey
public FormInstanceInfo getFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
- Specified by:
getFormInstanceModelByKey
in interfaceFormService
-
getFormInstanceModelByKeyAndParentDeploymentId
public FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String,Object> variables)
- Specified by:
getFormInstanceModelByKeyAndParentDeploymentId
in interfaceFormService
-
getFormInstanceModelByKeyAndParentDeploymentId
public FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
- Specified by:
getFormInstanceModelByKeyAndParentDeploymentId
in interfaceFormService
-
getFormInstanceModelByKeyAndScopeId
public FormInstanceInfo getFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String,Object> variables)
- Specified by:
getFormInstanceModelByKeyAndScopeId
in interfaceFormService
-
getFormInstanceModelByKeyAndScopeId
public FormInstanceInfo getFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
- Specified by:
getFormInstanceModelByKeyAndScopeId
in interfaceFormService
-
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId
public FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String,Object> variables)
- Specified by:
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId
in interfaceFormService
-
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId
public FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
- Specified by:
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId
in interfaceFormService
-
getFormInstanceValues
public byte[] getFormInstanceValues(String formInstanceId)
- Specified by:
getFormInstanceValues
in interfaceFormService
-
createFormInstanceQuery
public FormInstanceQuery createFormInstanceQuery()
- Specified by:
createFormInstanceQuery
in interfaceFormService
-
deleteFormInstance
public void deleteFormInstance(String formInstanceId)
- Specified by:
deleteFormInstance
in interfaceFormService
-
deleteFormInstancesByFormDefinition
public void deleteFormInstancesByFormDefinition(String formDefinitionId)
- Specified by:
deleteFormInstancesByFormDefinition
in interfaceFormService
-
deleteFormInstancesByProcessDefinition
public void deleteFormInstancesByProcessDefinition(String processDefinitionId)
- Specified by:
deleteFormInstancesByProcessDefinition
in interfaceFormService
-
deleteFormInstancesByScopeDefinition
public void deleteFormInstancesByScopeDefinition(String scopeDefinitionId)
- Specified by:
deleteFormInstancesByScopeDefinition
in interfaceFormService
-
getSavedFormVariables
public Map<String,Object> getSavedFormVariables(FormInstance formInstance)
-
-