You are viewing the documentation for Blueriq 15. Documentation for other versions is available in our documentation directory.

Exposed Function Enhancer is an Blueriq SDK API that can be implemented to provide extra functionality at various phases of exposed Function flow execution.

Custom enhancer can be provided by implementing the com.aquima.interactions.framework.function.IWebFunctionEnhancer and exposing the implementation as a Spring managed bean.

An example of a custom exposed function enhancer:

@Component
public class CustomWebFunctionEnhancer implements IWebFunctionEnhancer {

  @Override
  public void beforeMappingInput(FunctionCallContext context) {
	// custom code here
  }

  @Override
  public void beforeStartingFlow(FunctionCallContext context) {
	// custom code here
  }

}

A single IWebFunctionEnhancer implementation may be present in the Spring Application Context. The default implementation is present only if no other implementation is available.

As it can be seen in the example, the function enhancer provides the function call context:

  • before mapping the input to the profile
  • right before starting the function flow


  • No labels