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
Modifier and TypeFieldDescriptionprotected AuditService
protected CmmnHistoryService
protected CoreContentService
protected CoreRestDataInterceptor
protected DocumentMetadataHandler
protected DocumentRepositoryService
protected final boolean
protected SpringProcessEngineConfiguration
protected FormService
protected FormServiceInvoker
protected HistoryService
protected PlatformIdentityService
protected ObjectProvider<InspectProcessInstanceInterceptor>
protected MetadataService
protected com.fasterxml.jackson.databind.ObjectMapper
protected String
protected PlatformCommentService
protected PlatformContentItemPermissionHandler
protected PlatformContentItemService
protected PlatformTranslationService
protected ProcessPermissionService
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
ConstructorDescriptionPlatformProcessInstanceService
(boolean enableAuditLog, String participantCandidateGroups) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addTranslations
(ProcessInstanceRepresentation processInstanceRepresentation, ProcessDefinition processDefinition) void
protected PlatformUserQuery
createProcessInstanceComment
(String processInstanceId, String commentContent) createProcessParticipantCandidateUsersQuery
(String processInstanceId, PlatformUserQueryRequest request) void
deleteProcessInstanceComment
(String processInstanceId, String commentId) protected ProcessInstance
fetchProcessInstance
(String processInstanceId) protected ProcessInstanceInfo
fetchProcessInstanceWithHistory
(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) getStartFormForProcessInstanceId
(String processInstanceId) getStartFormVariablesByProcessInstanceId
(String processInstanceId) getStartFormVariablesByProcessInstanceIdWithoutPermissionCheck
(String processInstanceId) getVariablesByProcessInstanceId
(String processInstanceId, String subScopeId) getVariablesByProcessInstanceIdWithPermissionCheck
(String processInstanceId, String subScopeId) getWorkFormForProcessInstanceId
(String processInstanceId) protected String
getWorkFormValidationExpression
(String processDefinitionId) invokeFormFieldService
(String instanceId, String fieldId, Map<String, Object> serviceInvocationInput) protected boolean
isFormFieldValidationEnabled
(VariableContainer variableContainer, String workFormValidationExpression) protected void
logSaveProcessEvent
(ProcessInstance processInstance) void
saveDocuments
(String processInstanceId, Map<String, Object> variables) void
saveWorkForm
(String processInstanceId, Map<String, Object> variables) startNewProcessInstance
(CreateProcessInstanceRepresentation startRequest, boolean includeTranslations, boolean createTestDefinition) protected void
transformVariables
(Map<String, Object> variables) updateProcessInstanceComment
(String processInstanceId, String commentId, String commentContent) void
updateProcessInstanceStatus
(String processInstanceId, String status) Methods inherited from class com.flowable.platform.security.service.AbstractPlatformSecurityService
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 createTestDefinition) -
getWorkFormForProcessInstanceId
-
invokeFormFieldService
-
saveWorkForm
-
saveDocuments
-
getVariablesByProcessInstanceIdWithPermissionCheck
-
getVariablesByProcessInstanceId
-
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
-