Class PlatformProcessInstanceService

  • All Implemented Interfaces:
    com.flowable.platform.security.permission.PermissionServiceRegistryAware, org.springframework.beans.factory.Aware

    @Transactional
    public class PlatformProcessInstanceService
    extends com.flowable.platform.security.service.AbstractPlatformSecurityService
    Author:
    Yvo Swillens
    • Field Detail

      • enableAuditLog

        protected final boolean enableAuditLog
      • processPermissionService

        @Autowired
        protected com.flowable.platform.security.permission.ProcessPermissionService processPermissionService
      • historyService

        @Autowired
        protected org.flowable.engine.HistoryService historyService
      • cmmnHistoryService

        @Autowired
        protected org.flowable.cmmn.api.CmmnHistoryService cmmnHistoryService
      • formService

        @Autowired
        protected org.flowable.form.api.FormService formService
      • formRepositoryService

        @Autowired
        protected org.flowable.form.api.FormRepositoryService formRepositoryService
      • auditService

        @Autowired(required=false)
        protected AuditService auditService
      • contentService

        @Autowired(required=false)
        protected com.flowable.core.content.api.CoreContentService contentService
      • metadataService

        @Autowired(required=false)
        protected com.flowable.core.content.api.MetadataService metadataService
      • documentRepositoryService

        @Autowired(required=false)
        protected com.flowable.core.content.api.DocumentRepositoryService documentRepositoryService
      • inspectProcessInstanceInterceptor

        @Autowired
        protected org.springframework.beans.factory.ObjectProvider<InspectProcessInstanceInterceptor> inspectProcessInstanceInterceptor
      • engineConfiguration

        @Autowired
        protected org.flowable.spring.SpringProcessEngineConfiguration engineConfiguration
      • objectMapper

        @Autowired
        protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
      • formDecoratorInvoker

        @Autowired
        protected com.flowable.core.service.form.FlowableFormDecoratorInvoker formDecoratorInvoker
    • Constructor Detail

      • PlatformProcessInstanceService

        public PlatformProcessInstanceService​(boolean enableAuditLog)
    • Method Detail

      • getProcessInstance

        public ProcessInstanceRepresentation getProcessInstance​(java.lang.String processInstanceId,
                                                                boolean includeTranslations)
      • addTranslations

        protected void addTranslations​(ProcessInstanceRepresentation processInstanceRepresentation,
                                       org.flowable.engine.repository.ProcessDefinition processDefinition)
      • getStartFormVariablesByProcessInstanceId

        public java.util.Map<java.lang.String,​java.lang.Object> getStartFormVariablesByProcessInstanceId​(java.lang.String processInstanceId)
      • getStartFormVariablesByProcessInstanceIdWithoutPermissionCheck

        protected java.util.Map<java.lang.String,​java.lang.Object> getStartFormVariablesByProcessInstanceIdWithoutPermissionCheck​(java.lang.String processInstanceId)
      • getStartFormForProcessInstanceId

        public org.flowable.form.api.FormInfo getStartFormForProcessInstanceId​(java.lang.String processInstanceId)
      • getWorkFormForProcessInstanceId

        public org.flowable.form.api.FormInfo getWorkFormForProcessInstanceId​(java.lang.String processInstanceId)
      • getFormInfo

        protected org.flowable.form.api.FormInfo getFormInfo​(java.lang.String processInstanceId,
                                                             java.lang.String deploymentId,
                                                             java.lang.String processDefinitionId,
                                                             java.lang.String tenantId)
      • getExtensionElementText

        protected java.lang.String getExtensionElementText​(org.flowable.bpmn.model.BaseElement baseElement,
                                                           java.lang.String extensionElementName)
      • saveWorkForm

        public void saveWorkForm​(java.lang.String processInstanceId,
                                 java.util.Map<java.lang.String,​java.lang.Object> variables)
      • saveDocuments

        public void saveDocuments​(java.lang.String processInstanceId,
                                  java.util.Map<java.lang.String,​java.lang.Object> variables)
      • getVariablesByProcessInstanceIdWithPermissionCheck

        public java.util.Map<java.lang.String,​java.lang.Object> getVariablesByProcessInstanceIdWithPermissionCheck​(java.lang.String processInstanceId,
                                                                                                                         java.lang.String subScopeId)
      • getVariablesByProcessInstanceId

        public java.util.Map<java.lang.String,​java.lang.Object> getVariablesByProcessInstanceId​(java.lang.String processInstanceId,
                                                                                                      java.lang.String subScopeId)
      • assign

        @Transactional
        public void assign​(java.lang.String processInstanceId,
                           java.lang.String userId)
      • getProcessVariables

        protected java.util.Map<java.lang.String,​java.lang.Object> getProcessVariables​(java.lang.String processInstanceId)
      • getHistoricVariables

        protected java.util.Map<java.lang.String,​java.lang.Object> getHistoricVariables​(java.lang.String processInstanceId)
      • fetchProcessInstance

        protected org.flowable.engine.runtime.ProcessInstance fetchProcessInstance​(java.lang.String processInstanceId)
      • fetchProcessInstanceWithHistory

        protected ProcessInstanceInfo fetchProcessInstanceWithHistory​(java.lang.String processInstanceId)
      • transformVariables

        protected void transformVariables​(java.util.Map<java.lang.String,​java.lang.Object> variables)
      • isFormFieldValidationEnabled

        protected boolean isFormFieldValidationEnabled​(org.flowable.common.engine.api.variable.VariableContainer variableContainer,
                                                       java.lang.String workFormValidationExpression)
      • getWorkFormValidationExpression

        protected java.lang.String getWorkFormValidationExpression​(java.lang.String processDefinitionId)
      • logSaveProcessEvent

        protected void logSaveProcessEvent​(org.flowable.engine.runtime.ProcessInstance processInstance)
      • createProcessInstanceComment

        public CommentInstanceRepresentation createProcessInstanceComment​(java.lang.String processInstanceId,
                                                                          java.lang.String commentContent)
      • updateProcessInstanceComment

        public CommentInstanceRepresentation updateProcessInstanceComment​(java.lang.String processInstanceId,
                                                                          java.lang.String commentId,
                                                                          java.lang.String commentContent)
      • deleteProcessInstanceComment

        public void deleteProcessInstanceComment​(java.lang.String processInstanceId,
                                                 java.lang.String commentId)
      • getContentItem

        public org.flowable.content.api.ContentItem getContentItem​(java.lang.String processInstanceId,
                                                                   java.lang.String contentItemId)