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 6215531
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:04:29+00:00 2026-05-24T07:04:29+00:00

I am facing a problem that, for some business processes the sequence of invoking

  • 0

I am facing a problem that, for some business processes the sequence of invoking business objects and methods may change frequently. So I came up with something similar to the below:(Sorry somehow I can’t post image…, I tried to express them in the below text)

Business Objects:
Object1, Object2

Methods: M1, M2, M3, M4

Processes: P1 (M1 > M2 > M3), P2 (M2 > M3 > if M3 return true then M4 else end)

In this case I am using .NET 3.5. I create some classes to represent processes, which contains those sequences I mentioned. It works. But the problem is I need to compile every time when process changed. It would be much better if I could configure it by some sort of XML.

I have heard about jBPM for Java, Workflow Foundation for .NET but not sure if they fit my needs, or would they be overkill. I even don’t what keyword to search in Google. Could anyone advice what technology I should use to solve this issue? Or just point me to some websites or books? Thanks in advance.

  • 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-24T07:04:29+00:00Added an answer on May 24, 2026 at 7:04 am

    A common way to decouple software layers is by using interfaces as stated by Dependency Inversion Principle. In you case you could abstract the process concept using an interface and implement the logic in the implementation of that interface.
    when you need change the logic of the process you can create a new implementation of that interface. You can use any IoC framework to inject what implementation you want to use

    below is showed just a simple way to do that:

     public interface IMethod
        {
            void M1();
            string M2();
            void M3();
            void M4();
        }
    
        public interface IProcess
        {
            IMethod Method { get; set; }
            void P1();
            void P2();
        }
    
        public class Process : IProcess
        {
            public IMethod Method
            {
                get { throw new NotImplementedException(); }
                set { throw new NotImplementedException(); }
            }
    
            public void P1()
            {
                Method.M1();
                Method.M2();
            }
    
            public void P2()
            {
                if(Method.M2()==string.Empty)
                {
                    Method.M3();
                }
            }
        }
    
        public class AnotherProcess : IProcess
        {
            public IMethod Method
            {
                get { throw new NotImplementedException(); }
                set { throw new NotImplementedException(); }
            }
    
            public void P1()
            {
             Method.M4();
            }
    
            public void P2()
            {
                Method.M2();
                Method.M4();
            }
        }
    
        public class UseProcess
        {
            private IProcess _process;
    
            //you can inject the process dependency if you need use a different implementation
    
            public UseProcess(IProcess process)
            {
                _process = process;
            }
    
            public void DoSomething()
            {
                _process.P1();
            }
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am facing a problem that require the reuse some of the functions within
I am facing a problem with JavaScript objects. I have some text on a
i'm facing a problem that i never came accross before: well i successfully applyed
The problem I'm facing is that it seems that some of the files generated
I'm facing a problem that seems to have no straighforward solution. I'm using java.util.Map
I am facing the problem that I cannot properly map my foreign key table
I'm working with Eclipse and ClearCase and we're facing the problem that there's no
I'm facing a problem while unit testing my forms. The problem is that data
That was helpful kgiannakakis. I'm facing a problem as below: a = ['zbc','2.3'] for
I am new to Python and Numpy, and I am facing a problem, that

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.