Reputation: 147
My application has many modules and the original business flow looks like this:
A -> B -> C -> D
As the application grows, alternative flows are added to satisfy customers' need:
A -> B -> C -> D
A -> B -> C' -> D (C now can perform optional operations)
A -> D
A -> D' (D now can perform C's optional operations)
The numbers of unit test cases and QC's manual tests rocket.
Current I have 2 solutions:
The chosen solution must meet below objectives:
I have no idea which one I should use or there is any better solution.
Upvotes: 1
Views: 82
Reputation: 368
First, I am not entirely sure I understand your problem, so let me state my assumptions and then provide my answer. Adapt as necessary.
Assumptions:
If this is the case, I would ensure that I had a proper understanding of my data model, and which parts each of the steps would operate on, and then build a state machine around this.
Benefits:
Things to keep in mind:
I have successfully employed this way of modelling a business flow in a previous project. It was a flow where end users could purchase objects. We needed to handle lots of alternative flows, such as switching between different ways of payment, retries when backend systems were unavailable and so on.
We rolled our own state machine framework for this to suit our needs. You should probably look at what is available for your platform.
Upvotes: 1
Reputation: 167
It sounds like you need a workflow system. You can build the individual components and test them independently, then use a workflow system to wire them together in a per-customer configuration.
Windows Workflow and any Java BPM software would suit the task.
Upvotes: 1