Class PlatformTaskService
- java.lang.Object
-
- com.flowable.platform.security.service.AbstractPlatformSecurityService
-
- com.flowable.platform.service.task.PlatformTaskService
-
- All Implemented Interfaces:
PermissionServiceRegistryAware
,Aware
@Transactional public class PlatformTaskService 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 PlatformTaskService(boolean enableLegacyHistoricTaskVariables, String participantCandidateGroups)
-
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
-
historyService
@Autowired protected HistoryService historyService
-
cmmnHistoryService
@Autowired protected CmmnHistoryService cmmnHistoryService
-
formRepositoryService
@Autowired protected FormRepositoryService formRepositoryService
-
formService
@Autowired protected CoreFormService formService
-
identityService
@Autowired protected PlatformIdentityService identityService
-
licenseCheckService
@Autowired protected com.flowable.license.LicenseCheckService licenseCheckService
-
permissionService
@Autowired protected 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 CoreContentService contentService
-
documentRepositoryService
@Autowired(required=false) protected DocumentRepositoryService documentRepositoryService
-
metadataService
@Autowired(required=false) protected MetadataService metadataService
-
documentMetadataHandler
@Autowired(required=false) protected DocumentMetadataHandler documentMetadataHandler
-
platformContentItemPermissionHandler
@Autowired(required=false) protected PlatformContentItemPermissionHandler platformContentItemPermissionHandler
-
inspectTaskInterceptor
@Autowired protected ObjectProvider<InspectTaskInterceptor> inspectTaskInterceptor
-
variableTransformer
@Autowired protected PlatformRestVariableTransformer variableTransformer
-
objectMapper
@Autowired protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
scopedFormProvider
@Autowired protected ScopedFormProvider scopedFormProvider
-
formServiceInvoker
@Autowired protected FormServiceInvoker formServiceInvoker
-
enableLegacyHistoricTaskVariables
protected boolean enableLegacyHistoricTaskVariables
-
participantCandidateGroups
protected String participantCandidateGroups
-
-
Constructor Detail
-
PlatformTaskService
public PlatformTaskService(boolean enableLegacyHistoricTaskVariables, String participantCandidateGroups)
-
-
Method Detail
-
getTask
public TaskRepresentation getTask(String taskId, boolean includeTranslations)
-
getTaskComments
public DataResponse<CommentInstanceRepresentation> getTaskComments(CommentQueryRequest request)
-
createTaskComment
public CommentInstanceRepresentation createTaskComment(String taskId, String commentContent)
-
invokeFormFieldService
public ServiceInvocationResultResponseResponse invokeFormFieldService(String taskId, String fieldId, Map<String,Object> serviceInvocationInput)
-
updateTaskComment
public CommentInstanceRepresentation updateTaskComment(String taskId, String commentId, String commentContent)
-
getContentItem
public ContentItem getContentItem(String taskId, String contentItemId)
-
getLatestContentItemVersion
public ContentItem getLatestContentItemVersion(String taskId, String contentItemId)
-
completeTaskForm
public void completeTaskForm(String taskId, CompleteFormRepresentation formRepresentation)
-
saveTaskForm
public void saveTaskForm(String taskId, SaveFormRepresentation saveFormRepresentation)
-
getTaskVariablesWithPermissionCheck
public Map<String,Object> getTaskVariablesWithPermissionCheck(String taskId)
-
getNextTask
public TaskRepresentation getNextTask(String scopeId, String scopeType)
-
createTaskCandidateQuery
public PlatformUserQuery createTaskCandidateQuery(String taskId, PlatformUserQueryRequest request)
-
createPotentialTaskParticipatingUsersQuery
public PlatformUserQuery createPotentialTaskParticipatingUsersQuery(String taskId, PlatformUserQueryRequest request)
-
addIdentityLink
public RestIdentityLink addIdentityLink(String taskId, RestIdentityLink identityLink)
-
mapAttachmentsToContentItems
protected Map<String,Object> mapAttachmentsToContentItems(Map<String,Object> formVariables)
-
createPlatformUserQuery
protected PlatformUserQuery createPlatformUserQuery(PlatformUserQueryRequest request)
-
createTaskRepresentation
protected TaskRepresentation createTaskRepresentation(Task task)
-
createTaskRepresentation
protected TaskRepresentation createTaskRepresentation(HistoricTaskInstance task)
-
createTaskRepresentationFromInfo
protected TaskRepresentation createTaskRepresentationFromInfo(TaskInfo task)
-
getDelegationStateString
protected String getDelegationStateString(DelegationState state)
-
-