@ Override public void execute ( DelegateExecution execution ) { ActionDefinition actionDefinition = findRelatedActionDefinition ( execution ) ; Connector connector = getConnector ( getImplementation ( execution ) ) ; IntegrationContext integrationContext = connector . apply ( integrationContextBuilder . from ( execution , actionDefinition ) ) ; execution . setVariables ( outboundVariablesProvider . calculateVariables ( integrationContext , actionDefinition ) ) ; leave ( execution ) ; }
We have two different implementation strategy that can be executed in according if we have a connector action definition match or not .