Class BpmnFormProvider
java.lang.Object
com.flowable.platform.service.form.PermissionAwareFormProvider
com.flowable.platform.service.process.BpmnFormProvider
- All Implemented Interfaces:
FormProvider,PermissionServiceRegistryAware,Aware
- Author:
- Filip Hrisafov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CoreFormRepositoryServiceprotected final org.flowable.form.api.FormServiceprotected final org.flowable.engine.ProcessEngineFields inherited from class com.flowable.platform.service.form.PermissionAwareFormProvider
permissionServiceRegistry -
Constructor Summary
ConstructorsConstructorDescriptionBpmnFormProvider(org.flowable.engine.ProcessEngine processEngine, CoreFormRepositoryService formRepositoryService, org.flowable.form.api.FormService formService) -
Method Summary
Modifier and TypeMethodDescriptionprotected ProcessInstanceInfofetchProcessInstanceWithHistory(String processInstanceId) protected StringgetExtensionElementText(org.flowable.bpmn.model.BaseElement baseElement, String extensionElementName) org.flowable.form.api.FormInfogetFormInfoForScopeDefinitionId(String scopeDefinitionId, FormProviderContext context) Retrieve the form info for the givenscopeDefinitionIdin the providedcontext.org.flowable.form.api.FormInfogetFormInfoForScopeId(String scopeId, FormProviderContext context) Retrieve the form info for the givenscopeIdin the providedcontextprotected org.flowable.engine.HistoryServiceprotected org.flowable.engine.RepositoryServiceprotected org.flowable.engine.RuntimeServiceThe scope type that this form provider is responsible forprotected org.flowable.form.api.FormInfogetStartFormInfo(String processInstanceId) protected org.flowable.form.api.FormInfogetStartFormInfoByDefinitionId(String scopeDefinitionId) protected org.flowable.form.api.FormInfogetWorkFormInfo(String processInstanceId) Methods inherited from class com.flowable.platform.service.form.PermissionAwareFormProvider
getCurrentTenantId, getPermissionScopeType, setPermissionServiceRegistry, validatePermissionOnHistoricScope, validatePermissionOnRuntimeScope, validatePermissionOnScope, validateReadPermissionOnScopeDefinition
-
Field Details
-
processEngine
protected final org.flowable.engine.ProcessEngine processEngine -
formRepositoryService
-
formService
protected final org.flowable.form.api.FormService formService
-
-
Constructor Details
-
BpmnFormProvider
public BpmnFormProvider(org.flowable.engine.ProcessEngine processEngine, CoreFormRepositoryService formRepositoryService, org.flowable.form.api.FormService formService)
-
-
Method Details
-
getScopeType
Description copied from interface:FormProviderThe scope type that this form provider is responsible for -
getFormInfoForScopeId
public org.flowable.form.api.FormInfo getFormInfoForScopeId(String scopeId, FormProviderContext context) Description copied from interface:FormProviderRetrieve the form info for the givenscopeIdin the providedcontext- Parameters:
scopeId- the scope instance idcontext- the context under which the form info should be retrieved (nevernull)- Returns:
- the form info for the scope
-
getStartFormInfo
-
getWorkFormInfo
-
fetchProcessInstanceWithHistory
-
getExtensionElementText
-
getFormInfoForScopeDefinitionId
public org.flowable.form.api.FormInfo getFormInfoForScopeDefinitionId(String scopeDefinitionId, FormProviderContext context) Description copied from interface:FormProviderRetrieve the form info for the givenscopeDefinitionIdin the providedcontext. This is different compared withFormProvider.getFormInfoForScopeId(String, FormProviderContext)such that it looks for a form for a given definition instead of an instance.- Parameters:
scopeDefinitionId- the scope definition idcontext- the context under which the form info should be retrieved (nevernull)- Returns:
- the form info for the scope definition
-
getStartFormInfoByDefinitionId
-
getHistoryService
protected org.flowable.engine.HistoryService getHistoryService() -
getRuntimeService
protected org.flowable.engine.RuntimeService getRuntimeService() -
getRepositoryService
protected org.flowable.engine.RepositoryService getRepositoryService()
-