Class PlatformTaskService
java.lang.Object
com.flowable.platform.security.service.AbstractPlatformSecurityService
com.flowable.platform.service.task.PlatformTaskService
- All Implemented Interfaces:
com.flowable.platform.security.permission.PermissionServiceRegistryAware
,org.springframework.beans.factory.Aware
@Transactional
public class PlatformTaskService
extends com.flowable.platform.security.service.AbstractPlatformSecurityService
- Author:
- Yvo Swillens
-
Field Summary
Fields Modifier and Type Field Description protected org.flowable.cmmn.api.CmmnHistoryService
cmmnHistoryService
protected PlatformContentItemService
contentItemService
protected com.flowable.core.content.api.CoreContentService
contentService
protected java.lang.Integer
defaultListResponseSize
protected DocumentMetadataHandler
documentMetadataHandler
protected com.flowable.core.content.api.DocumentRepositoryService
documentRepositoryService
protected com.flowable.core.service.form.FlowableFormDecoratorInvoker
formDecoratorInvoker
protected org.flowable.form.api.FormRepositoryService
formRepositoryService
protected org.flowable.form.api.FormService
formService
protected org.flowable.engine.HistoryService
historyService
protected com.flowable.core.idm.api.PlatformIdentityService
identityService
protected org.springframework.beans.factory.ObjectProvider<InspectTaskInterceptor>
inspectTaskInterceptor
protected com.flowable.license.LicenseCheckService
licenseCheckService
protected com.flowable.core.content.api.MetadataService
metadataService
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
protected com.flowable.platform.security.permission.TaskPermissionService
permissionService
protected PlatformCommentService
platformCommentService
protected PlatformTranslationService
platformTranslationService
protected TranslationService
translationService
protected PlatformRestVariableTransformer
variableTransformer
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 PlatformTaskService()
-
Method Summary
Modifier and Type Method Description org.flowable.rest.service.api.engine.RestIdentityLink
addIdentityLink(java.lang.String taskId, org.flowable.rest.service.api.engine.RestIdentityLink identityLink)
void
completeTaskForm(java.lang.String taskId, CompleteFormRepresentation formRepresentation)
protected com.flowable.core.idm.api.PlatformUserQuery
createPlatformUserQuery(TaskUserQueryRequest request)
com.flowable.core.idm.api.PlatformUserQuery
createTaskCandidateQuery(java.lang.String taskId, TaskUserQueryRequest request)
CommentInstanceRepresentation
createTaskComment(java.lang.String taskId, java.lang.String commentContent)
protected TaskRepresentation
createTaskRepresentation(org.flowable.task.api.history.HistoricTaskInstance task)
protected TaskRepresentation
createTaskRepresentation(org.flowable.task.api.Task task)
protected TaskRepresentation
createTaskRepresentationFromInfo(org.flowable.task.api.TaskInfo task)
void
deleteTaskComment(java.lang.String taskId, java.lang.String commentId)
org.flowable.content.api.ContentItem
getContentItem(java.lang.String taskId, java.lang.String contentItemId)
protected java.lang.String
getDelegationStateString(org.flowable.task.api.DelegationState state)
TaskRepresentation
getTask(java.lang.String taskId, boolean includeTranslations)
org.flowable.common.rest.api.DataResponse<CommentInstanceRepresentation>
getTaskComments(CommentQueryRequest request)
org.flowable.form.api.FormInfo
getTaskForm(java.lang.String taskId)
java.util.Map<java.lang.String,java.lang.Object>
getTaskVariables(java.lang.String taskId)
java.util.Map<java.lang.String,java.lang.Object>
getTaskVariablesWithPermissionCheck(java.lang.String taskId)
protected java.util.Map<java.lang.String,java.lang.Object>
mapAttachmentsToContentItems(java.util.Map<java.lang.String,java.lang.Object> formVariables)
void
saveDocuments(java.lang.String taskId, java.util.Map<java.lang.String,java.lang.Object> variables)
void
saveTaskForm(java.lang.String taskId, SaveFormRepresentation saveFormRepresentation)
protected void
transformVariables(java.util.Map<java.lang.String,java.lang.Object> variables)
CommentInstanceRepresentation
updateTaskComment(java.lang.String taskId, java.lang.String commentId, java.lang.String commentContent)
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, getCurrentTenantId, getCurrentUserId, getDefaultSecurityPolicyModel, getExtensionElementValue, getSecurityPolicyModelByKey, groupOrUserMatches, groupOrUserMatches, hasAnyMatchingIdentityLink, hasAssigneeOrOwnerIdentityLink, hasPermissionForEntityLinks, hasPermissionForHistoricEntityLinks, setPermissionServiceRegistry, translatePermissionForScope
-
Field Details
-
historyService
@Autowired protected org.flowable.engine.HistoryService historyService -
cmmnHistoryService
@Autowired protected org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService -
formRepositoryService
@Autowired protected org.flowable.form.api.FormRepositoryService formRepositoryService -
formService
@Autowired protected org.flowable.form.api.FormService formService -
identityService
@Autowired protected com.flowable.core.idm.api.PlatformIdentityService identityService -
licenseCheckService
@Autowired protected com.flowable.license.LicenseCheckService licenseCheckService -
permissionService
@Autowired protected com.flowable.platform.security.permission.TaskPermissionService permissionService -
translationService
-
platformTranslationService
-
platformCommentService
-
contentItemService
-
contentService
@Autowired(required=false) protected com.flowable.core.content.api.CoreContentService contentService -
documentRepositoryService
@Autowired(required=false) protected com.flowable.core.content.api.DocumentRepositoryService documentRepositoryService -
metadataService
@Autowired(required=false) protected com.flowable.core.content.api.MetadataService metadataService -
documentMetadataHandler
-
inspectTaskInterceptor
@Autowired protected org.springframework.beans.factory.ObjectProvider<InspectTaskInterceptor> inspectTaskInterceptor -
variableTransformer
-
objectMapper
@Autowired protected com.fasterxml.jackson.databind.ObjectMapper objectMapper -
formDecoratorInvoker
@Autowired protected com.flowable.core.service.form.FlowableFormDecoratorInvoker formDecoratorInvoker -
defaultListResponseSize
@Value("${flowable.platform.rest.default-list-response-size:100}") protected java.lang.Integer defaultListResponseSize
-
-
Constructor Details
-
PlatformTaskService
public PlatformTaskService()
-
-
Method Details
-
getTask
-
getTaskComments
public org.flowable.common.rest.api.DataResponse<CommentInstanceRepresentation> getTaskComments(CommentQueryRequest request) -
createTaskComment
public CommentInstanceRepresentation createTaskComment(java.lang.String taskId, java.lang.String commentContent) -
updateTaskComment
public CommentInstanceRepresentation updateTaskComment(java.lang.String taskId, java.lang.String commentId, java.lang.String commentContent) -
deleteTaskComment
public void deleteTaskComment(java.lang.String taskId, java.lang.String commentId) -
getContentItem
public org.flowable.content.api.ContentItem getContentItem(java.lang.String taskId, java.lang.String contentItemId) -
completeTaskForm
public void completeTaskForm(java.lang.String taskId, CompleteFormRepresentation formRepresentation) -
saveTaskForm
-
saveDocuments
public void saveDocuments(java.lang.String taskId, java.util.Map<java.lang.String,java.lang.Object> variables) -
getTaskVariablesWithPermissionCheck
public java.util.Map<java.lang.String,java.lang.Object> getTaskVariablesWithPermissionCheck(java.lang.String taskId) -
getTaskVariables
public java.util.Map<java.lang.String,java.lang.Object> getTaskVariables(java.lang.String taskId) -
getTaskForm
public org.flowable.form.api.FormInfo getTaskForm(java.lang.String taskId) -
createTaskCandidateQuery
public com.flowable.core.idm.api.PlatformUserQuery createTaskCandidateQuery(java.lang.String taskId, TaskUserQueryRequest request) -
addIdentityLink
public org.flowable.rest.service.api.engine.RestIdentityLink addIdentityLink(java.lang.String taskId, org.flowable.rest.service.api.engine.RestIdentityLink identityLink) -
transformVariables
protected void transformVariables(java.util.Map<java.lang.String,java.lang.Object> variables) -
mapAttachmentsToContentItems
protected java.util.Map<java.lang.String,java.lang.Object> mapAttachmentsToContentItems(java.util.Map<java.lang.String,java.lang.Object> formVariables) -
createPlatformUserQuery
protected com.flowable.core.idm.api.PlatformUserQuery createPlatformUserQuery(TaskUserQueryRequest request) -
createTaskRepresentation
-
createTaskRepresentation
protected TaskRepresentation createTaskRepresentation(org.flowable.task.api.history.HistoricTaskInstance task) -
createTaskRepresentationFromInfo
-
getDelegationStateString
protected java.lang.String getDelegationStateString(org.flowable.task.api.DelegationState state)
-