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 AuditService
protected org.flowable.cmmn.api.CmmnHistoryService
protected CoreContentService
protected CoreRestDataInterceptor
protected DataObjectRuntimeService
protected DocumentMetadataHandler
protected DocumentRepositoryService
protected final boolean
protected org.flowable.spring.SpringProcessEngineConfiguration
protected org.flowable.form.api.FormService
protected FormServiceInvoker
protected org.flowable.engine.HistoryService
protected PlatformIdentityService
protected ObjectProvider
<InspectProcessInstanceInterceptor> protected MetadataService
protected com.fasterxml.jackson.databind.ObjectMapper
protected String
protected PlatformCommentService
protected PlatformContentItemPermissionHandler
protected PlatformContentItemService
protected PlatformEngineConfiguration
protected PlatformTranslationService
protected ProcessPermissionService
protected org.flowable.rest.service.api.RestResponseFactory
protected ScopedFormProvider
protected PlatformRestVariableTransformer
Fields 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 void
addTranslations
(ProcessInstanceRepresentation processInstanceRepresentation, org.flowable.engine.repository.ProcessDefinition processDefinition) void
protected PlatformUserQuery
createProcessInstanceComment
(String processInstanceId, String commentContent) createProcessParticipantCandidateUsersQuery
(String processInstanceId, PlatformUserQueryRequest request) void
deleteProcessInstanceComment
(String processInstanceId, String commentId) protected org.flowable.engine.runtime.ProcessInstance
fetchProcessInstance
(String processInstanceId) protected ProcessInstanceInfo
fetchProcessInstanceWithHistory
(String processInstanceId) org.flowable.content.api.ContentItem
getContentItem
(String processInstanceId, String contentItemId) getHistoricVariables
(String processInstanceId) org.flowable.content.api.ContentItem
getLatestContentItem
(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.FormInfo
getStartFormForProcessInstanceId
(String processInstanceId) getStartFormVariablesByProcessInstanceId
(String processInstanceId) getStartFormVariablesByProcessInstanceIdWithoutPermissionCheck
(String processInstanceId) 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) getVariablesByProcessInstanceId
(String processInstanceId, String subScopeId) getVariablesByProcessInstanceIdWithPermissionCheck
(String processInstanceId, String subScopeId) org.flowable.form.api.FormInfo
getWorkFormForProcessInstanceId
(String processInstanceId) protected String
getWorkFormValidationExpression
(String processDefinitionId) protected boolean
hasVariableOnScope
(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 boolean
isFormFieldValidationEnabled
(org.flowable.common.engine.api.variable.VariableContainer variableContainer, String workFormValidationExpression) protected void
logSaveProcessEvent
(org.flowable.engine.runtime.ProcessInstance processInstance) void
saveDocuments
(String processInstanceId, Map<String, Object> variables) void
saveWorkForm
(String processInstanceId, Map<String, Object> variables) startNewProcessInstance
(CreateProcessInstanceRepresentation startRequest, boolean includeTranslations, boolean includeNextTaskInfo, boolean createTestDefinition) protected void
transformVariables
(Map<String, Object> variables) org.flowable.rest.service.api.engine.variable.RestVariable
updateExecutionVariable
(String executionId, String variableName, jakarta.servlet.http.HttpServletRequest request) updateProcessInstanceComment
(String processInstanceId, String commentId, String commentContent) void
updateProcessInstanceStatus
(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
-