Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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:

Code Block
languagejava
@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