Class ProcessAiActivatedPlanItemInstancesJobHandler

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

public class ProcessAiActivatedPlanItemInstancesJobHandler extends Object implements org.flowable.job.service.JobHandler
  • Field Details

  • Constructor Details

    • ProcessAiActivatedPlanItemInstancesJobHandler

      public ProcessAiActivatedPlanItemInstancesJobHandler()
  • 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
    • processPlanItem

      protected void processPlanItem(String planItemInstanceId, String explanation, org.flowable.cmmn.engine.CmmnEngineConfiguration cmmnEngineConfiguration, ActionRuntimeService actionRuntimeService, AgentInstance agentInstance, AgentEngineConfiguration agentEngineConfiguration, AgentInvocation agentInvocation) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • actionInstanceExists

      protected boolean actionInstanceExists(ActionRuntimeService actionRuntimeService, AgentInstance agentInstance, String planItemInstanceId)
    • createSuggestionActionInstance

      protected ActionInstance createSuggestionActionInstance(ActionRuntimeService actionRuntimeService, AgentInstance agentInstance, org.flowable.cmmn.engine.impl.persistence.entity.PlanItemInstanceEntity planItemInstance)
    • createExchangeForSuggestion

      protected AgentInvocationExchange createExchangeForSuggestion(AgentEngineConfiguration agentEngineConfiguration, org.flowable.cmmn.engine.impl.persistence.entity.PlanItemInstanceEntity planItemInstanceEntity, String explanation, ActionInstance actionInstance, AgentInvocation agentInvocation) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • createExchangeForAutomatic

      protected AgentInvocationExchange createExchangeForAutomatic(AgentEngineConfiguration agentEngineConfiguration, org.flowable.cmmn.engine.impl.persistence.entity.PlanItemInstanceEntity planItemInstanceEntity, String explanation, AgentInvocation agentInvocation) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • createSuggestionExchange

      protected AgentInvocationExchange createSuggestionExchange(AgentEngineConfiguration agentEngineConfiguration, AgentInvocation agentInvocation, String humanReadableContent, String technicalContent)