Class PlatformCaseInstanceService
java.lang.Object
com.flowable.platform.security.service.AbstractPlatformSecurityService
com.flowable.platform.service.caze.PlatformCaseInstanceService
- All Implemented Interfaces:
PermissionServiceRegistryAware
,Aware
- Author:
- Yvo Swillens
-
Field Summary
Modifier and TypeFieldDescriptionprotected AppEngine
protected AuditService
protected CasePermissionService
protected CmmnEngine
protected CmmnHistoryService
protected PlatformContentItemService
protected CoreContentService
protected CoreRestDataInterceptor
protected final String
protected DocumentMetadataHandler
protected DocumentRepositoryService
protected final boolean
protected CoreFormService
protected FormServiceInvoker
protected HistoryService
protected PlatformIdentityService
protected ObjectProvider<InspectCaseInstanceInterceptor>
protected MetadataService
protected com.fasterxml.jackson.databind.ObjectMapper
protected String
protected PlatformCommentService
protected PlatformContentItemPermissionHandler
protected PlatformTranslationService
protected ScopedFormProvider
protected PlatformRestVariableTransformer
Fields inherited from class com.flowable.platform.security.service.AbstractPlatformSecurityService
additionalAdminUsers, CASE_PREFIX, cmmnRepositoryService, cmmnRuntimeService, cmmnTaskService, defaultSecurityPolicyKey, defaultSecurityPolicyModel, EXTERNAL_WORKER_PREFIX, inspectEnabled, permissionServiceRegistry, platformSecurityInterceptor, policyRepositoryService, PROCESS_PREFIX, repositoryService, runtimeService, SECURITY_POLICY_MODEL, TASK_PREFIX, taskService
-
Constructor Summary
ConstructorDescriptionPlatformCaseInstanceService
(boolean enableAuditLog, String defaultHeaderConfig, String participantCandidateGroups) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addTranslations
(CaseInstanceRepresentation caseInstanceRepresentation, CaseDefinition caseDefinition) void
createCandidateParticipantUsersQuery
(String caseInstanceId, PlatformUserQueryRequest request) createCaseInstanceComment
(String caseInstanceId, String commentContent) protected HeaderConfigRepresentation
createHeaderConfig
(String caseHeaderConfig, String casePageHeaderConfig, String localHeaderConfig, String hideSaveButton) protected NavigationElementRepresentation
createNavigationElementRepresentation
(ExtensionElement extensionElement, String caseHeaderConfig, String casePageHeaderConfig, ExpressionManager expressionManager, VariableContainer variableContainer) protected PlatformUserQuery
protected VariableContainer
createVariableContainerForHistoricCaseInstance
(HistoricCaseInstance historicCaseInstance) void
deleteCaseInstanceComment
(String caseInstanceId, String commentId) protected CaseInstance
fetchCaseInstance
(String caseInstanceId) protected CaseInstanceInfo
fetchCaseInstanceWithHistory
(String caseInstanceId) protected void
fillHistoricNavigationElements
(NavigationResponseRepresentation navigationResponse, String caseHeaderConfig, CaseInstanceInfo caseInstance, CmmnModel cmmnModel, Map<String, BpmnModel> bpmnModelMap, Map<String, CmmnModel> cmmnModelMap) protected void
fillRuntimeNavigationElements
(NavigationResponseRepresentation navigationResponse, String caseHeaderConfig, CaseInstanceInfo caseInstance, CmmnModel cmmnModel, Map<String, BpmnModel> bpmnModelMap, Map<String, CmmnModel> cmmnModelMap) protected void
fillStaticCasePageElements
(PlanItemDefinition planItemDefinition, String caseHeaderConfig, String casePageHeaderConfig, String renderedState, NavigationResponseRepresentation navigationResponse, VariableContainer variableContainer) protected void
fillStaticPageElements
(ExtensionElement customViewElement, NavigationResponseRepresentation navigationResponse) getCaseInstance
(String caseInstanceId, boolean includeTranslations) getCaseInstanceCasePageTasks
(String caseInstanceId) getCaseInstanceStatusOptions
(String caseInstanceId) getCaseVariables
(String caseInstanceId) getContentItem
(String caseInstanceId, String contentItemId) protected String
getExtensionElementValue
(String name, CmmnElement cmmnElement) getHistoricVariables
(String caseInstanceId) protected String
getIdentityLinkRenderedStateValue
(List<? extends IdentityLinkInfo> identityLinks) getLatestContentItem
(String caseInstanceId, String contentItemId) getNavigationElements
(String caseInstanceId) getPermissionGroupList
(String permissionGroups) protected String
getRenderedStateValue
(String renderingValue) protected String
getRenderedStateValue
(FlowElement flowElement, String taskState) protected String
getRenderedStateValue
(PlanItemDefinition planItemDefinition, String planItemState) protected String
getRenderedStateValue
(PlanItemDefinition planItemDefinition, String subScopeId, Map<String, String> taskPlanItemStateMap) getStageOverview
(String caseInstanceId) getStartFormForCaseInstanceId
(String caseInstanceId) getStartFormVariablesByCaseInstanceId
(String caseInstanceId) getStartFormVariablesByCaseInstanceIdWithoutPermissionCheck
(String caseInstanceId) getVariablesByCaseInstanceId
(String caseInstanceId) getVariablesByCaseInstanceIdWithPermissionCheck
(String caseInstanceId) getWorkFormForCaseInstanceId
(String caseInstanceId) protected String
getWorkFormValidationExpression
(String caseDefinitionId) invokeFormFieldService
(String caseInstanceId, String fieldId, Map<String, Object> serviceInvocationInput) protected boolean
isFormFieldValidationEnabled
(VariableContainer variableContainer, String workFormValidationExpression) protected void
logSaveCaseEvent
(CaseInstance caseInstance) protected String
resolvePotentialStringExpression
(String value, ExpressionManager expressionManager, VariableContainer variableContainer) void
saveDocuments
(String caseInstanceId, Map<String, Object> variables) void
saveWorkForm
(String caseInstanceId, Map<String, Object> variables) startNewCaseInstance
(CreateCaseInstanceRepresentation startRequest, boolean includeTranslations, boolean createTestDefinition) protected void
transformVariables
(Map<String, Object> variables) updateCaseInstanceComment
(String caseInstanceId, String commentId, String commentContent) void
updateCaseInstanceStatus
(String caseInstanceId, String status) 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 Details
-
enableAuditLog
protected final boolean enableAuditLog -
defaultHeaderConfig
-
participantCandidateGroups
-
cmmnHistoryService
-
formService
-
formServiceInvoker
-
historyService
-
platformTranslationService
-
platformCommentService
-
auditService
-
contentItemService
-
contentService
-
metadataService
-
documentRepositoryService
-
documentMetadataHandler
-
platformContentItemPermissionHandler
@Autowired(required=false) protected PlatformContentItemPermissionHandler platformContentItemPermissionHandler -
coreRestDataInterceptor
-
casePermissionService
-
inspectCaseInstanceInterceptor
-
variableTransformer
-
cmmnEngine
-
appEngine
-
objectMapper
-
scopedFormProvider
-
identityService
-
-
Constructor Details
-
PlatformCaseInstanceService
-
-
Method Details
-
createCandidateParticipantUsersQuery
public PlatformUserQuery createCandidateParticipantUsersQuery(String caseInstanceId, PlatformUserQueryRequest request) -
createPlatformUserQuery
-
getCaseInstance
public CaseInstanceRepresentation getCaseInstance(String caseInstanceId, boolean includeTranslations) -
getStageOverview
-
getCaseInstanceStatusOptions
-
invokeFormFieldService
-
updateCaseInstanceStatus
-
addTranslations
protected void addTranslations(CaseInstanceRepresentation caseInstanceRepresentation, CaseDefinition caseDefinition) -
getCaseInstanceComments
public DataResponse<CommentInstanceRepresentation> getCaseInstanceComments(CommentQueryRequest request) -
createCaseInstanceComment
public CommentInstanceRepresentation createCaseInstanceComment(String caseInstanceId, String commentContent) -
updateCaseInstanceComment
public CommentInstanceRepresentation updateCaseInstanceComment(String caseInstanceId, String commentId, String commentContent) -
deleteCaseInstanceComment
-
getStartFormVariablesByCaseInstanceId
-
getStartFormVariablesByCaseInstanceIdWithoutPermissionCheck
-
getStartFormForCaseInstanceId
-
startNewCaseInstance
public CaseInstanceRepresentation startNewCaseInstance(CreateCaseInstanceRepresentation startRequest, boolean includeTranslations, boolean createTestDefinition) -
getWorkFormForCaseInstanceId
-
saveWorkForm
-
getCaseInstanceCasePageTasks
-
saveDocuments
-
getVariablesByCaseInstanceIdWithPermissionCheck
-
getVariablesByCaseInstanceId
-
getContentItem
-
getLatestContentItem
-
assign
-
createVariableContainerForHistoricCaseInstance
protected VariableContainer createVariableContainerForHistoricCaseInstance(HistoricCaseInstance historicCaseInstance) -
getRenderedStateValue
-
getRenderedStateValue
-
getRenderedStateValue
-
getRenderedStateValue
-
getIdentityLinkRenderedStateValue
-
resolvePotentialStringExpression
protected String resolvePotentialStringExpression(String value, ExpressionManager expressionManager, VariableContainer variableContainer) -
getCaseVariables
-
getHistoricVariables
-
fetchCaseInstance
-
fetchCaseInstanceWithHistory
-
transformVariables
-
isFormFieldValidationEnabled
protected boolean isFormFieldValidationEnabled(VariableContainer variableContainer, String workFormValidationExpression) -
getWorkFormValidationExpression
-
getPermissionGroupList
-
logSaveCaseEvent
-
createHeaderConfig
protected HeaderConfigRepresentation createHeaderConfig(String caseHeaderConfig, String casePageHeaderConfig, String localHeaderConfig, String hideSaveButton) -
getExtensionElementValue
-