Class PlatformProcessInstanceService
- java.lang.Object
-
- com.flowable.platform.security.service.AbstractPlatformSecurityService
-
- com.flowable.platform.service.process.PlatformProcessInstanceService
-
- All Implemented Interfaces:
PermissionServiceRegistryAware
,Aware
@Transactional public class PlatformProcessInstanceService extends AbstractPlatformSecurityService
- Author:
- Yvo Swillens
-
-
Field Summary
-
Fields inherited from class com.flowable.platform.security.service.AbstractPlatformSecurityService
additionalAdminUsers, CASE_PREFIX, cmmnRepositoryService, cmmnRuntimeService, cmmnTaskService, defaultSecurityPolicyKey, defaultSecurityPolicyModel, inspectEnabled, permissionServiceRegistry, platformSecurityInterceptor, policyRepositoryService, PROCESS_PREFIX, repositoryService, runtimeService, SECURITY_POLICY_MODEL, TASK_PREFIX, taskService
-
-
Constructor Summary
Constructors Constructor Description PlatformProcessInstanceService(boolean enableAuditLog)
-
Method Summary
-
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 Detail
-
enableAuditLog
protected final boolean enableAuditLog
-
processPermissionService
@Autowired protected ProcessPermissionService processPermissionService
-
historyService
@Autowired protected HistoryService historyService
-
cmmnHistoryService
@Autowired protected CmmnHistoryService cmmnHistoryService
-
formService
@Autowired protected FormService formService
-
platformTranslationService
@Autowired(required=false) protected PlatformTranslationService platformTranslationService
-
platformCommentService
@Autowired(required=false) protected PlatformCommentService platformCommentService
-
auditService
@Autowired(required=false) protected AuditService auditService
-
platformContentItemService
@Autowired(required=false) protected PlatformContentItemService platformContentItemService
-
contentService
@Autowired(required=false) protected CoreContentService contentService
-
metadataService
@Autowired(required=false) protected MetadataService metadataService
-
documentRepositoryService
@Autowired(required=false) protected DocumentRepositoryService documentRepositoryService
-
documentMetadataHandler
@Autowired(required=false) protected DocumentMetadataHandler documentMetadataHandler
-
platformContentItemPermissionHandler
@Autowired(required=false) protected PlatformContentItemPermissionHandler platformContentItemPermissionHandler
-
inspectProcessInstanceInterceptor
@Autowired protected ObjectProvider<InspectProcessInstanceInterceptor> inspectProcessInstanceInterceptor
-
variableTransformer
@Autowired protected PlatformRestVariableTransformer variableTransformer
-
engineConfiguration
@Autowired protected SpringProcessEngineConfiguration engineConfiguration
-
objectMapper
@Autowired protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
scopedFormProvider
@Autowired protected ScopedFormProvider scopedFormProvider
-
-
Method Detail
-
getProcessInstance
public ProcessInstanceRepresentation getProcessInstance(String processInstanceId, boolean includeTranslations)
-
getProcessInstanceStatusOptions
public StatusOptionsRepresentation getProcessInstanceStatusOptions(String processInstanceId)
-
updateProcessInstanceStatus
public void updateProcessInstanceStatus(String processInstanceId, String status)
-
addTranslations
protected void addTranslations(ProcessInstanceRepresentation processInstanceRepresentation, ProcessDefinition processDefinition)
-
getStartFormVariablesByProcessInstanceId
public Map<String,Object> getStartFormVariablesByProcessInstanceId(String processInstanceId)
-
getStartFormVariablesByProcessInstanceIdWithoutPermissionCheck
protected Map<String,Object> getStartFormVariablesByProcessInstanceIdWithoutPermissionCheck(String processInstanceId)
-
getStartFormForProcessInstanceId
public FormInfo getStartFormForProcessInstanceId(String processInstanceId)
-
startNewProcessInstance
public ProcessInstanceRepresentation startNewProcessInstance(CreateProcessInstanceRepresentation startRequest, boolean includeTranslations, boolean createTestDefinition)
-
getWorkFormForProcessInstanceId
public FormInfo getWorkFormForProcessInstanceId(String processInstanceId)
-
getVariablesByProcessInstanceIdWithPermissionCheck
public Map<String,Object> getVariablesByProcessInstanceIdWithPermissionCheck(String processInstanceId, String subScopeId)
-
getVariablesByProcessInstanceId
public Map<String,Object> getVariablesByProcessInstanceId(String processInstanceId, String subScopeId)
-
assign
@Transactional public void assign(String processInstanceId, String userId)
-
fetchProcessInstance
protected ProcessInstance fetchProcessInstance(String processInstanceId)
-
fetchProcessInstanceWithHistory
protected ProcessInstanceInfo fetchProcessInstanceWithHistory(String processInstanceId)
-
isFormFieldValidationEnabled
protected boolean isFormFieldValidationEnabled(VariableContainer variableContainer, String workFormValidationExpression)
-
getWorkFormValidationExpression
protected String getWorkFormValidationExpression(String processDefinitionId)
-
logSaveProcessEvent
protected void logSaveProcessEvent(ProcessInstance processInstance)
-
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
public void deleteProcessInstanceComment(String processInstanceId, String commentId)
-
getContentItem
public ContentItem getContentItem(String processInstanceId, String contentItemId)
-
-