Class ClassifyContentItemJobHandler

java.lang.Object
com.flowable.agent.engine.impl.contentitem.ClassifyContentItemJobHandler
All Implemented Interfaces:
org.flowable.job.service.JobHandler

public class ClassifyContentItemJobHandler extends Object implements org.flowable.job.service.JobHandler
Author:
Filip Hrisafov
  • Field Details

  • Constructor Details

    • ClassifyContentItemJobHandler

      public ClassifyContentItemJobHandler()
  • Method Details

    • getType

      public String getType()
      Specified by:
      getType in interface org.flowable.job.service.JobHandler
    • execute

      public void execute(org.flowable.job.service.impl.persistence.entity.JobEntity job, String configuration, org.flowable.variable.api.delegate.VariableScope variableScope, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
      Specified by:
      execute in interface org.flowable.job.service.JobHandler
    • getDocumentDefinitionName

      protected String getDocumentDefinitionName(org.flowable.content.api.ContentItem contentItem, String documentType, DocumentRepositoryService documentRepositoryService)
    • getDocumentDefinitionId

      protected String getDocumentDefinitionId(String documentDefinitionKey, DocumentRepositoryService documentRepositoryService)
    • classifyDocument

      protected String classifyDocument(AgentInstance agentInstance)
    • getExtractionOperation

      protected String getExtractionOperation(AgentDefinition documentAgentDefinition, String documentType, AgentRepositoryService agentRepositoryService)
    • extractContentFromDocument

      protected Map<String,Object> extractContentFromDocument(AgentDefinition documentAgentDefinition, String extractionOperation, CoreContentItem contentItem, org.flowable.common.engine.impl.interceptor.CommandContext commandContext)