This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

show intercepting filter in sequence diagram

 
Lin Sun
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I searched past posts about showing JSF in sequence diagram. It appears a common approach is:

JSF page <------> Managed Bean <-----------> SLSB

without showing FacesServlet.

Given that approach, my question is how to show intercepting filter in sequence diagram. For example, if user finishes shopping and checks out, an intercepting filter can check if user is signed on and if not, direct user to sign on first.

With FacesServlet in place, I think the sequence diagram goes something like below:

Some JSF page ----> FacesServlet ---> PhaseListener (as intercepting filter) -----> Signon JSF page--> back to PhaseListener --> back to FaceServlet ----> show Cart JSF page and allow user to check out


How do you show the intercepting filter pattern in sequence diagram without FaceServlet and PhaseListener in place?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can either show it where it would be called or put it as a note outside the diagram.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic