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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanactionInstanceExists(ActionRuntimeService actionRuntimeService, AgentInstance agentInstance, String planItemInstanceId) protected AgentInvocationExchangecreateExchangeForAutomatic(AgentEngineConfiguration agentEngineConfiguration, org.flowable.cmmn.engine.impl.persistence.entity.PlanItemInstanceEntity planItemInstanceEntity, String explanation, AgentInvocation agentInvocation) protected AgentInvocationExchangecreateExchangeForSuggestion(AgentEngineConfiguration agentEngineConfiguration, org.flowable.cmmn.engine.impl.persistence.entity.PlanItemInstanceEntity planItemInstanceEntity, String explanation, ActionInstance actionInstance, AgentInvocation agentInvocation) protected ActionInstancecreateSuggestionActionInstance(ActionRuntimeService actionRuntimeService, AgentInstance agentInstance, org.flowable.cmmn.engine.impl.persistence.entity.PlanItemInstanceEntity planItemInstance) protected AgentInvocationExchangecreateSuggestionExchange(AgentEngineConfiguration agentEngineConfiguration, AgentInvocation agentInvocation, String humanReadableContent, String technicalContent) voidexecute(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) getType()protected voidprocessPlanItem(String planItemInstanceId, String explanation, org.flowable.cmmn.engine.CmmnEngineConfiguration cmmnEngineConfiguration, ActionRuntimeService actionRuntimeService, AgentInstance agentInstance, AgentEngineConfiguration agentEngineConfiguration, AgentInvocation agentInvocation)
-
Field Details
-
TYPE
- See Also:
-
TRIM_COMMA_SEPARATED
-
-
Constructor Details
-
ProcessAiActivatedPlanItemInstancesJobHandler
public ProcessAiActivatedPlanItemInstancesJobHandler()
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceorg.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:
executein interfaceorg.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)
-