Class ExternalAgentPollJobHandler

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

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

  • Constructor Details

    • ExternalAgentPollJobHandler

      public ExternalAgentPollJobHandler()
  • 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
    • auditExternalAgentPollInvocation

      protected void auditExternalAgentPollInvocation(AgentEngineConfiguration agentEngineConfiguration, AgentInstanceEntity agentInstanceEntity, String agentInvocationId, Date pollStartDate, Date pollEndDate, String externalAgentConfig, String stringResult)
    • reschedulePollingJob

      protected void reschedulePollingJob(org.flowable.job.service.impl.persistence.entity.JobEntity job, org.flowable.variable.api.delegate.VariableScope variableScope, org.flowable.common.engine.impl.interceptor.CommandContext commandContext, int currentRetryCount)
    • calculateDueDate

      protected Date calculateDueDate(org.flowable.common.engine.impl.runtime.Clock clock, int currentRetryCount, Date oldDate)
    • getOutputConverter

      protected org.springframework.ai.converter.StructuredOutputConverter<com.fasterxml.jackson.databind.JsonNode> getOutputConverter(AgentEngineConfiguration agentEngineConfiguration, String outputSchema, AgentDefinitionModel.AgentOperation agentOperation)
    • getLongProperty

      protected static long getLongProperty(Map<String,Object> properties, String property, long defaultValue)