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

Ask A Question

Stats

  • Questions 83k
  • Answers 83k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer By default the Assigned To list comes from the members… May 11, 2026 at 4:54 pm
  • Editorial Team
    Editorial Team added an answer Step 3 means that you should type export MITSCHEME_6001_DIRECTORY=${your_problems_path}. If… May 11, 2026 at 4:54 pm
  • Editorial Team
    Editorial Team added an answer Freshmeat is also a large source of open source projects.… May 11, 2026 at 4:54 pm

Related Questions

So no doubt that building a domain model is something that I think happens
It seems that the decision to make your objects fully cognizant of their roles
I am trying to wrap my head around doing validation in a MVC scenario.
Let say a company are building a brand new application. The application are following

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.