Class PlatformProcessInstanceService
java.lang.Object
com.flowable.platform.security.service.AbstractPlatformSecurityService
com.flowable.platform.service.process.PlatformProcessInstanceService
- All Implemented Interfaces:
PermissionServiceRegistryAware,Aware
- Author:
- Yvo Swillens
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AuditServiceprotected org.flowable.cmmn.api.CmmnHistoryServiceprotected CoreContentServiceprotected CoreRestDataInterceptorprotected DataObjectRuntimeServiceprotected DocumentMetadataHandlerprotected DocumentRepositoryServiceprotected final booleanprotected org.flowable.spring.SpringProcessEngineConfigurationprotected org.flowable.form.api.FormServiceprotected FormServiceInvokerprotected org.flowable.engine.HistoryServiceprotected PlatformIdentityServiceprotected ObjectProvider<InspectProcessInstanceInterceptor> protected MetadataServiceprotected com.fasterxml.jackson.databind.ObjectMapperprotected Stringprotected PlatformCommentServiceprotected PlatformContentItemPermissionHandlerprotected PlatformContentItemServiceprotected PlatformEngineConfigurationprotected PlatformTranslationServiceprotected ProcessPermissionServiceprotected org.flowable.rest.service.api.RestResponseFactoryprotected ScopedFormProviderprotected PlatformRestVariableTransformerFields inherited from class com.flowable.platform.security.service.AbstractPlatformSecurityService
additionalAdminUsers, CASE_PREFIX, cmmnRepositoryService, cmmnRuntimeService, cmmnTaskService, defaultSecurityPolicyKey, defaultSecurityPolicyModel, EXTERNAL_WORKER_PREFIX, inspectEnabled, permissionServiceRegistry, platformSecurityInterceptor, policyRepositoryService, PROCESS_PREFIX, repositoryService, runtimeService, SECURITY_POLICY_MODEL, TASK_PREFIX, taskService -
Constructor Summary
ConstructorsConstructorDescriptionPlatformProcessInstanceService(boolean enableAuditLog, String participantCandidateGroups) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddTranslations(ProcessInstanceRepresentation processInstanceRepresentation, org.flowable.engine.repository.ProcessDefinition processDefinition) voidprotected PlatformUserQuerycreateProcessInstanceComment(String processInstanceId, String commentContent) createProcessParticipantCandidateUsersQuery(String processInstanceId, PlatformUserQueryRequest request) voiddeleteProcessInstanceComment(String processInstanceId, String commentId) protected org.flowable.engine.runtime.ProcessInstancefetchProcessInstance(String processInstanceId) protected ProcessInstanceInfofetchProcessInstanceWithHistory(String processInstanceId) org.flowable.content.api.ContentItemgetContentItem(String processInstanceId, String contentItemId) getHistoricVariables(String processInstanceId) org.flowable.content.api.ContentItemgetLatestContentItem(String processInstanceId, String contentItemId) getProcessInstance(String processInstanceId, boolean includeTranslations) org.flowable.common.rest.api.DataResponse<CommentInstanceRepresentation> getProcessInstanceStatusOptions(String processInstanceId) getProcessVariables(String processInstanceId) getScopedVariablesByProcessInstanceId(String processInstanceId, String subScopeId) org.flowable.form.api.FormInfogetStartFormForProcessInstanceId(String processInstanceId) getStartFormVariablesByProcessInstanceId(String processInstanceId) getStartFormVariablesByProcessInstanceIdWithoutPermissionCheck(String processInstanceId) protected org.flowable.rest.service.api.engine.variable.RestVariablegetUpdatedVariableWithoutAccessCheck(org.flowable.engine.runtime.Execution execution, String variableName, org.flowable.rest.service.api.engine.variable.RestVariable.RestVariableScope variableScope) getVariablesByProcessInstanceId(String processInstanceId, String subScopeId) getVariablesByProcessInstanceIdWithPermissionCheck(String processInstanceId, String subScopeId) org.flowable.form.api.FormInfogetWorkFormForProcessInstanceId(String processInstanceId) protected StringgetWorkFormValidationExpression(String processDefinitionId) protected booleanhasVariableOnScope(org.flowable.engine.runtime.Execution execution, String variableName, org.flowable.rest.service.api.engine.variable.RestVariable.RestVariableScope scope) invokeFormFieldService(String instanceId, String fieldId, String operationType, Map<String, Object> serviceInvocationInput) invokeFormFieldService(String instanceId, String fieldId, Map<String, Object> serviceInvocationInput) protected booleanisFormFieldValidationEnabled(org.flowable.common.engine.api.variable.VariableContainer variableContainer, String workFormValidationExpression) protected voidlogSaveProcessEvent(org.flowable.engine.runtime.ProcessInstance processInstance) voidsaveDocuments(String processInstanceId, Map<String, Object> variables) voidsaveWorkForm(String processInstanceId, Map<String, Object> variables) startNewProcessInstance(CreateProcessInstanceRepresentation startRequest, boolean includeTranslations, boolean includeNextTaskInfo, boolean createTestDefinition) protected voidtransformVariables(Map<String, Object> variables) org.flowable.rest.service.api.engine.variable.RestVariableupdateExecutionVariable(String executionId, String variableName, jakarta.servlet.http.HttpServletRequest request) updateProcessInstanceComment(String processInstanceId, String commentId, String commentContent) voidupdateProcessInstanceStatus(String processInstanceId, String status) Methods inherited from class com.flowable.platform.security.service.AbstractPlatformSecurityService
addAdditionalPermissions, currentUserHasAdminRights, currentUserIsSuperAdmin, fetchCasePermissionMappings, fetchCasePermissionMappings, fetchCaseSecurityPolicyModel, fetchPermissions, fetchPermissionsForTask, fetchProcessPermissionMappings, fetchProcessPermissionMappings, fetchProcessSecurityPolicyModel, fetchSecurityPolicyModel, fetchSecurityPolicyModel, fetchSecurityPolicyModelForCaseInstance, fetchSecurityPolicyModelForProcessInstance, fetchSecurityPolicyModelForTask, fetchSecurityPolicyModelForTask, fetchTaskPermissionMappings, fetchTaskPermissionMappings, fetchTaskPermissionMappings, fetchTaskPermissionMappingsForCase, fetchTaskPermissionMappingsForProcess, fetchTaskSecurityPolicyModelForCase, fetchTaskSecurityPolicyModelForProcess, filterPermissionsForRole, getCmmnExtensionElementValue, getCurrentGroupKeys, getCurrentSecurityScope, getCurrentTenantId, getCurrentUserId, getDefaultSecurityPolicyModel, getExtensionElementValue, getSecurityPolicyModelByKey, groupOrUserMatches, groupOrUserMatches, hasAnyMatchingIdentityLink, hasAssigneeOrOwnerIdentityLink, hasPermissionForEntityLinks, hasPermissionForHistoricEntityLinks, setPermissionServiceRegistry, translatePermissionForScope
-
Field Details
-
enableAuditLog
protected final boolean enableAuditLog -
processPermissionService
-
historyService
-
cmmnHistoryService
-
formService
-
platformTranslationService
-
platformCommentService
-
auditService
-
platformContentItemService
-
contentService
-
metadataService
-
dataObjectRuntimeService
-
platformEngineConfiguration
-
documentRepositoryService
-
documentMetadataHandler
-
platformContentItemPermissionHandler
@Autowired(required=false) protected PlatformContentItemPermissionHandler platformContentItemPermissionHandler -
inspectProcessInstanceInterceptor
@Autowired protected ObjectProvider<InspectProcessInstanceInterceptor> inspectProcessInstanceInterceptor -
variableTransformer
-
engineConfiguration
-
objectMapper
-
scopedFormProvider
-
coreRestDataInterceptor
-
formServiceInvoker
-
identityService
-
restResponseFactory
@Autowired(required=false) protected org.flowable.rest.service.api.RestResponseFactory restResponseFactory -
participantCandidateGroups
-
-
Constructor Details
-
PlatformProcessInstanceService
-
-
Method Details
-
createProcessParticipantCandidateUsersQuery
public PlatformUserQuery createProcessParticipantCandidateUsersQuery(String processInstanceId, PlatformUserQueryRequest request) -
getProcessInstance
public ProcessInstanceRepresentation getProcessInstance(String processInstanceId, boolean includeTranslations) -
getProcessInstanceStatusOptions
-
updateProcessInstanceStatus
-
addTranslations
protected void addTranslations(ProcessInstanceRepresentation processInstanceRepresentation, org.flowable.engine.repository.ProcessDefinition processDefinition) -
getStartFormVariablesByProcessInstanceId
-
getStartFormVariablesByProcessInstanceIdWithoutPermissionCheck
-
getStartFormForProcessInstanceId
-
startNewProcessInstance
public ProcessInstanceRepresentation startNewProcessInstance(CreateProcessInstanceRepresentation startRequest, boolean includeTranslations, boolean includeNextTaskInfo, boolean createTestDefinition) -
getWorkFormForProcessInstanceId
-
invokeFormFieldService
-
invokeFormFieldService
-
saveWorkForm
-
saveDocuments
-
getVariablesByProcessInstanceIdWithPermissionCheck
-
getVariablesByProcessInstanceId
-
getScopedVariablesByProcessInstanceId
-
assign
-
updateExecutionVariable
-
getProcessVariables
-
getHistoricVariables
-
fetchProcessInstance
protected org.flowable.engine.runtime.ProcessInstance fetchProcessInstance(String processInstanceId) -
fetchProcessInstanceWithHistory
-
transformVariables
-
isFormFieldValidationEnabled
protected boolean isFormFieldValidationEnabled(org.flowable.common.engine.api.variable.VariableContainer variableContainer, String workFormValidationExpression) -
getWorkFormValidationExpression
-
logSaveProcessEvent
protected void logSaveProcessEvent(org.flowable.engine.runtime.ProcessInstance processInstance) -
getProcessInstanceComments
public org.flowable.common.rest.api.DataResponse<CommentInstanceRepresentation> getProcessInstanceComments(CommentQueryRequest request) -
createProcessInstanceComment
public CommentInstanceRepresentation createProcessInstanceComment(String processInstanceId, String commentContent) -
updateProcessInstanceComment
public CommentInstanceRepresentation updateProcessInstanceComment(String processInstanceId, String commentId, String commentContent) -
deleteProcessInstanceComment
-
getContentItem
-
getLatestContentItem
-
getUpdatedVariableWithoutAccessCheck
protected org.flowable.rest.service.api.engine.variable.RestVariable getUpdatedVariableWithoutAccessCheck(org.flowable.engine.runtime.Execution execution, String variableName, org.flowable.rest.service.api.engine.variable.RestVariable.RestVariableScope variableScope) -
hasVariableOnScope
protected boolean hasVariableOnScope(org.flowable.engine.runtime.Execution execution, String variableName, org.flowable.rest.service.api.engine.variable.RestVariable.RestVariableScope scope) -
createPlatformUserQuery
-