Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 95789
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:42:47+00:00 2026-05-10T23:42:47+00:00

When your domain layer or business layer (whatever you want to call it) is

  • 0

When your domain layer or business layer (whatever you want to call it) is completely separate from your UI, how does it gather the information it needs to complete a request?

For example, suppose the UI issues a request to add a line to a purchase order, and the business rules determine that you need an authorization code for some reason. How does the domain layer communicate this back? Return some kind of response code indicating it requires authorization? Fire a ‘need authorization’ event and see if anyone responds? Accept some sort of IAuthorizationProvider that the UI will implement?

All of these seem okay, but I struggle with having an explosion of possible things that the business could need. Just continuing with the purchase order example, what if some items need a color? Some need a hazardous materials declaration id? Some need a simple ‘this is rare, are you sure?’. The list could go on and on. It feels like deciding you need this info definitely belongs in the domain layer. In a non-layered app, you’d just pop up a dialog and get what you need. How do you do it in a properly layered application?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:42:48+00:00Added an answer on May 10, 2026 at 11:42 pm

    I’ve done some more reading and found the Notification Pattern from Martin Fowler which seems to be geared towards solving this problem as well as Domain Centric Validation with the Notification Pattern by Jeremy Miller.

    This is Fowler’s description of Notification, which describes pretty much exactly what I was looking for:

    An object that collects together information about errors and other information in the domain layer and communicates it to the presentation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was trying to separate my DAL from my Business Layer, and in doing
Does it make sense to group all Interfaces of your Domain Layer (Modules, Models,
I'm working on creating a domain layer in Zend Framework that is separate from
Can C/C++ be choice of keeping all your logic (business/domain) for web application? Why?
How do you go about integration testing your database through your domain layer/model (repositories)
The controller should ideally be free from domain logic right? How does that match
Using Google Apps for your Domain, is it possible to set up a catch-all
In EJB 3.0 you can write your domain objecs, then convert them into entitities
How do you implement Roles and Security in your C# Domain Driven Design projects?
What are the benefits of hosting your images on a subdomain such as img.domain.com?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.