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 CmmnHistoryServiceprotected CoreContentServiceprotected CoreRestDataInterceptorprotected DocumentMetadataHandlerprotected DocumentRepositoryServiceprotected final booleanprotected SpringProcessEngineConfigurationprotected FormServiceprotected FormServiceInvokerprotected HistoryServiceprotected PlatformIdentityServiceprotected ObjectProvider<InspectProcessInstanceInterceptor>protected MetadataServiceprotected com.fasterxml.jackson.databind.ObjectMapperprotected Stringprotected PlatformCommentServiceprotected PlatformContentItemPermissionHandlerprotected PlatformContentItemServiceprotected PlatformTranslationServiceprotected ProcessPermissionServiceprotected 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, ProcessDefinition processDefinition) voidprotected PlatformUserQuerycreateProcessInstanceComment(String processInstanceId, String commentContent) createProcessParticipantCandidateUsersQuery(String processInstanceId, PlatformUserQueryRequest request) voiddeleteProcessInstanceComment(String processInstanceId, String commentId) protected ProcessInstancefetchProcessInstance(String processInstanceId) protected ProcessInstanceInfofetchProcessInstanceWithHistory(String processInstanceId) getContentItem(String processInstanceId, String contentItemId) getHistoricVariables(String processInstanceId) getLatestContentItem(String processInstanceId, String contentItemId) getProcessInstance(String processInstanceId, boolean includeTranslations) getProcessInstanceStatusOptions(String processInstanceId) getProcessVariables(String processInstanceId) getScopedVariablesByProcessInstanceId(String processInstanceId, String subScopeId) getStartFormForProcessInstanceId(String processInstanceId) getStartFormVariablesByProcessInstanceId(String processInstanceId) getStartFormVariablesByProcessInstanceIdWithoutPermissionCheck(String processInstanceId) getVariablesByProcessInstanceId(String processInstanceId, String subScopeId) getVariablesByProcessInstanceIdWithPermissionCheck(String processInstanceId, String subScopeId) getWorkFormForProcessInstanceId(String processInstanceId) protected StringgetWorkFormValidationExpression(String processDefinitionId) invokeFormFieldService(String instanceId, String fieldId, Map<String, Object> serviceInvocationInput) protected booleanisFormFieldValidationEnabled(VariableContainer variableContainer, String workFormValidationExpression) protected voidlogSaveProcessEvent(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) 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
-
documentRepositoryService
-
documentMetadataHandler
-
platformContentItemPermissionHandler
@Autowired(required=false) protected PlatformContentItemPermissionHandler platformContentItemPermissionHandler -
inspectProcessInstanceInterceptor
@Autowired protected ObjectProvider<InspectProcessInstanceInterceptor> inspectProcessInstanceInterceptor -
variableTransformer
-
engineConfiguration
-
objectMapper
-
scopedFormProvider
-
coreRestDataInterceptor
-
formServiceInvoker
-
identityService
-
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, ProcessDefinition processDefinition) -
getStartFormVariablesByProcessInstanceId
-
getStartFormVariablesByProcessInstanceIdWithoutPermissionCheck
-
getStartFormForProcessInstanceId
-
startNewProcessInstance
public ProcessInstanceRepresentation startNewProcessInstance(CreateProcessInstanceRepresentation startRequest, boolean includeTranslations, boolean includeNextTaskInfo, boolean createTestDefinition) -
getWorkFormForProcessInstanceId
-
invokeFormFieldService
-
saveWorkForm
-
saveDocuments
-
getVariablesByProcessInstanceIdWithPermissionCheck
-
getVariablesByProcessInstanceId
-
getScopedVariablesByProcessInstanceId
-
assign
-
getProcessVariables
-
getHistoricVariables
-
fetchProcessInstance
-
fetchProcessInstanceWithHistory
-
transformVariables
-
isFormFieldValidationEnabled
protected boolean isFormFieldValidationEnabled(VariableContainer variableContainer, String workFormValidationExpression) -
getWorkFormValidationExpression
-
logSaveProcessEvent
-
getProcessInstanceComments
public 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
-
createPlatformUserQuery
-