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.CmmnHistoryServicecmmnHistoryServiceprotected PlatformContentItemServicecontentItemServiceprotected com.flowable.core.content.api.CoreContentServicecontentServiceprotected java.lang.IntegerdefaultListResponseSizeprotected DocumentMetadataHandlerdocumentMetadataHandlerprotected com.flowable.core.content.api.DocumentRepositoryServicedocumentRepositoryServiceprotected com.flowable.core.service.form.FlowableFormDecoratorInvokerformDecoratorInvokerprotected org.flowable.form.api.FormRepositoryServiceformRepositoryServiceprotected org.flowable.form.api.FormServiceformServiceprotected org.flowable.engine.HistoryServicehistoryServiceprotected com.flowable.core.idm.api.PlatformIdentityServiceidentityServiceprotected org.springframework.beans.factory.ObjectProvider<InspectTaskInterceptor>inspectTaskInterceptorprotected com.flowable.license.LicenseCheckServicelicenseCheckServiceprotected com.flowable.core.content.api.MetadataServicemetadataServiceprotected com.fasterxml.jackson.databind.ObjectMapperobjectMapperprotected com.flowable.platform.security.permission.TaskPermissionServicepermissionServiceprotected PlatformCommentServiceplatformCommentServiceprotected PlatformContentItemPermissionHandlerplatformContentItemPermissionHandlerprotected PlatformTranslationServiceplatformTranslationServiceprotected TranslationServicetranslationServiceprotected PlatformRestVariableTransformervariableTransformer-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.flowable.rest.service.api.engine.RestIdentityLinkaddIdentityLink(java.lang.String taskId, org.flowable.rest.service.api.engine.RestIdentityLink identityLink)voidcompleteTaskForm(java.lang.String taskId, CompleteFormRepresentation formRepresentation)protected com.flowable.core.idm.api.PlatformUserQuerycreatePlatformUserQuery(TaskUserQueryRequest request)com.flowable.core.idm.api.PlatformUserQuerycreateTaskCandidateQuery(java.lang.String taskId, TaskUserQueryRequest request)CommentInstanceRepresentationcreateTaskComment(java.lang.String taskId, java.lang.String commentContent)protected TaskRepresentationcreateTaskRepresentation(org.flowable.task.api.history.HistoricTaskInstance task)protected TaskRepresentationcreateTaskRepresentation(org.flowable.task.api.Task task)protected TaskRepresentationcreateTaskRepresentationFromInfo(org.flowable.task.api.TaskInfo task)voiddeleteTaskComment(java.lang.String taskId, java.lang.String commentId)org.flowable.content.api.ContentItemgetContentItem(java.lang.String taskId, java.lang.String contentItemId)protected java.lang.StringgetDelegationStateString(org.flowable.task.api.DelegationState state)TaskRepresentationgetTask(java.lang.String taskId, boolean includeTranslations)org.flowable.common.rest.api.DataResponse<CommentInstanceRepresentation>getTaskComments(CommentQueryRequest request)org.flowable.form.api.FormInfogetTaskForm(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)voidsaveDocuments(java.lang.String taskId, java.util.Map<java.lang.String,java.lang.Object> variables)voidsaveTaskForm(java.lang.String taskId, SaveFormRepresentation saveFormRepresentation)protected voidtransformVariables(java.util.Map<java.lang.String,java.lang.Object> variables)CommentInstanceRepresentationupdateTaskComment(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 Detail
-
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
@Autowired(required=false) protected TranslationService translationService
-
platformTranslationService
@Autowired(required=false) protected PlatformTranslationService platformTranslationService
-
platformCommentService
@Autowired(required=false) protected PlatformCommentService platformCommentService
-
contentItemService
@Autowired(required=false) protected PlatformContentItemService 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
@Autowired(required=false) protected DocumentMetadataHandler documentMetadataHandler
-
platformContentItemPermissionHandler
@Autowired(required=false) protected PlatformContentItemPermissionHandler platformContentItemPermissionHandler
-
inspectTaskInterceptor
@Autowired protected org.springframework.beans.factory.ObjectProvider<InspectTaskInterceptor> inspectTaskInterceptor
-
variableTransformer
@Autowired protected PlatformRestVariableTransformer 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
-
-
Method Detail
-
getTask
public TaskRepresentation getTask(java.lang.String taskId, boolean includeTranslations)
-
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
public void saveTaskForm(java.lang.String taskId, SaveFormRepresentation saveFormRepresentation)
-
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
protected TaskRepresentation createTaskRepresentation(org.flowable.task.api.Task task)
-
createTaskRepresentation
protected TaskRepresentation createTaskRepresentation(org.flowable.task.api.history.HistoricTaskInstance task)
-
createTaskRepresentationFromInfo
protected TaskRepresentation createTaskRepresentationFromInfo(org.flowable.task.api.TaskInfo task)
-
getDelegationStateString
protected java.lang.String getDelegationStateString(org.flowable.task.api.DelegationState state)
-
-