Chapter 10, Float Your Application with Web Flow

Questions

Answers

Consider the following web flow registry configuration; it has a single flow definition file, namely validate.xml. How will you form the URL to invoke the flow?

@Bean   
public FlowDefinitionRegistry flowRegistry() {    
    return getFlowDefinitionRegistryBuilder()    
            .setBasePath("/WEB-INF/flows")    
  .addFlowLocation("/customer/validate.xml","validateCustomer")      
            .build();    
}   

3. http://localhost:8080/webstore/validateCustomer

Consider the following flow invoking URL:

http://localhost:8080/webstore/validate?customerId=C1234

In a flow definition file, how will you retrieve the customerId HTTP request parameter?

1.  <evaluate expression = "requestParameters.customerId " result = "customerId" ...

Get Spring: Developing Java Applications for the Enterprise now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.