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

  • SEARCH
  • Home
  • 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 3720954
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T05:23:26+00:00 2026-05-19T05:23:26+00:00

What is the closest design pattern for something like an issue tracker? You have

  • 0

What is the closest design pattern for something like an issue tracker?

You have an object that can be one of various statuses: open, closed, in production.

Actions can be performed based on the current status.

My initial modeling looks a little like this:

class Status
    - next_status (None or Status)
    - previous_status (None or Status)
    - actions (set of Actions)

class Action
    - name (string)
    - description (string)

With the possibility of grouping actions and assigning the group to a Status. Similar to most permissions models you could say.

Was just looking for input on what pattern this most follows so I can research it some more. Thanks!

  • 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. Editorial Team
    Editorial Team
    2026-05-19T05:23:28+00:00Added an answer on May 19, 2026 at 5:23 am

    You’re representing a finite state machine (FSM), really a flowchart, but your class design looks like a doubly-linked list. If Status determines the prior and next Status this is workable, but in most systems this is untrue. Consider a Status of “open” in your example, is it possible that the next could be either “closed” or “in production”?

    If both Statuses are possibilities consider changing the Status object and adding a Transition (or perhaps replacing Action?) object to your class hierarchy:

    class Status 
        - transitions (Transition[])
    
    class Transition 
        - from (Status)
        - to (Status)
    

    Here Status knows about what Transitions are possible (e.g. “opened” may transition to “closed” or “in production”). In this way you represent the FSM as a directed graph. Also, in my own experience it’s usually not important to have the an entity know where it just came from thus the removal of prior_status. Instead the path can be captured through audit logging / database table capturing history.

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

Sidebar

Related Questions

I would like to design an application that runs on a smartphone with a
I have to design a CMS where a set of credentials can only be
I would like JdbcPersistenceManager to always have just one jdbcConnection and for it to
The closest I can find on mysql.com is something called Generic Linux (Architecture Independent),
I have a mockup design that I think I want to use jQuery Cycle
The closest thing I can get are events that show a COLLAB_ADD_COLLABORATOR type of
What is the closest you can get to a try-catch block in php4? I'm
I need to search for the closest Dialcode bigger than the actual one. For
I have the following jQuery: $(this).closest('div.mcoup').find('div.delcoup').slideToggle(400) .siblings().children('div.delcoup').slideUp(400); What I'm trying to do is get
The closest example I can think of is iTunes. I'm thinking about a system

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.