Class 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 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
      • 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
      • inspectTaskInterceptor

        @Autowired
        protected org.springframework.beans.factory.ObjectProvider<InspectTaskInterceptor> inspectTaskInterceptor
      • 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 Detail

      • PlatformTaskService

        public PlatformTaskService()
    • Method Detail

      • getTask

        public TaskRepresentation getTask​(java.lang.String taskId,
                                          boolean includeTranslations)
      • 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)
      • 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)