Class ActivitiInboundGateway

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle, org.springframework.integration.context.ExpressionCapable, org.springframework.integration.support.context.NamedComponent, org.springframework.integration.support.management.IntegrationManagement, org.springframework.integration.support.management.MessageSourceMetrics, org.springframework.integration.support.management.TrackableComponent

    public class ActivitiInboundGateway
    extends org.springframework.integration.gateway.MessagingGatewaySupport
    As a process enters a wait-state, this forwards the flow into Spring Integration. Spring Integration flows may ultimately return a reply message and that will signal the execution.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.springframework.integration.support.management.IntegrationManagement

        org.springframework.integration.support.management.IntegrationManagement.ManagementOverrides
    • Field Summary

      • Fields inherited from class org.springframework.integration.gateway.MessagingGatewaySupport

        messagingTemplate
      • Fields inherited from class org.springframework.integration.endpoint.AbstractEndpoint

        lifecycleCondition, lifecycleLock
      • Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport

        EXPRESSION_PARSER, logger
      • Fields inherited from interface org.springframework.integration.support.management.IntegrationManagement

        METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
      • Fields inherited from interface org.springframework.context.SmartLifecycle

        DEFAULT_PHASE
    • Constructor Summary

      Constructors 
      Constructor Description
      ActivitiInboundGateway​(org.activiti.engine.ProcessEngine processEngine, java.lang.String... pvsOrHeadersToPreserve)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(IntegrationActivityBehavior receiveTaskActivityBehavior, org.activiti.engine.delegate.DelegateExecution execution)  
      protected void initializeDefaultPreservedHeaders()  
      void signal​(IntegrationActivityBehavior receiveTaskActivityBehavior, org.activiti.engine.delegate.DelegateExecution execution, java.lang.String signalName, java.lang.Object data)  
      • Methods inherited from class org.springframework.integration.gateway.MessagingGatewaySupport

        buildErrorMessage, doStart, doStop, getComponentType, getErrorChannel, getErrorMessageAttributes, getManagedName, getManagedType, getMessageCount, getMessageCountLong, getOverrides, getReplyChannel, getRequestChannel, isCountsEnabled, isLoggingEnabled, onInit, receive, receive, receiveMessage, receiveMessage, registerReplyMessageCorrelatorIfNecessary, reset, send, sendAndReceive, sendAndReceiveMessage, sendAndReceiveMessageReactive, setCountsEnabled, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setLoggingEnabled, setManagedName, setManagedType, setReplyChannel, setReplyChannelName, setReplyMapper, setReplyTimeout, setRequestChannel, setRequestChannelName, setRequestMapper, setRequestTimeout, setShouldTrack
      • Methods inherited from class org.springframework.integration.endpoint.AbstractEndpoint

        destroy, doStop, getPhase, getRole, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stop
      • Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport

        afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.springframework.beans.factory.DisposableBean

        destroy
      • Methods inherited from interface org.springframework.integration.support.management.IntegrationManagement

        registerMetricsCaptor
      • Methods inherited from interface org.springframework.integration.support.context.NamedComponent

        getBeanName, getComponentName
    • Constructor Detail

      • ActivitiInboundGateway

        public ActivitiInboundGateway​(org.activiti.engine.ProcessEngine processEngine,
                                      java.lang.String... pvsOrHeadersToPreserve)
    • Method Detail

      • initializeDefaultPreservedHeaders

        protected void initializeDefaultPreservedHeaders()
      • execute

        public void execute​(IntegrationActivityBehavior receiveTaskActivityBehavior,
                            org.activiti.engine.delegate.DelegateExecution execution)
      • signal

        public void signal​(IntegrationActivityBehavior receiveTaskActivityBehavior,
                           org.activiti.engine.delegate.DelegateExecution execution,
                           java.lang.String signalName,
                           java.lang.Object data)