Question
Cognizant
NL
Last activity: 12 Nov 2021 3:52 EST
flow class and new case design
.I am having doubt about the correct and recommended approach . Need some suggestion .
- Suppose we have a Road Assistance case
- The road assistance case has 5 steps for Truck and 4 steps for Car.
For similar functionality I have following questions
- Do we follow open/closed principle for flows also?
- Should flows mostly be created in work class ?
- For the example given above what approach is recommended
- should we use when condition to drive the control to the assignment based on type of vehicle?
OR
- we would have Page type property(Vehicle)[ORG-APP-Data-Vehicle] design time inside pyWorkPage. The class of that page would be (org-App-Data-Vehicle-Truck/Car) based on selection user vehicle selection at runtime .The flow inside org-App-Data-Vehicle-Truck class will have 5 steps and the flow inside org-App-Data-Vehicle-Car would have 4 steps. If a new type vehicle would be added a new class would we added that would have flow for that type of vehicle .
OR
- We should create separate case type for each vehicle type.
.I am having doubt about the correct and recommended approach . Need some suggestion .
- Suppose we have a Road Assistance case
- The road assistance case has 5 steps for Truck and 4 steps for Car.
For similar functionality I have following questions
- Do we follow open/closed principle for flows also?
- Should flows mostly be created in work class ?
- For the example given above what approach is recommended
- should we use when condition to drive the control to the assignment based on type of vehicle?
OR
- we would have Page type property(Vehicle)[ORG-APP-Data-Vehicle] design time inside pyWorkPage. The class of that page would be (org-App-Data-Vehicle-Truck/Car) based on selection user vehicle selection at runtime .The flow inside org-App-Data-Vehicle-Truck class will have 5 steps and the flow inside org-App-Data-Vehicle-Car would have 4 steps. If a new type vehicle would be added a new class would we added that would have flow for that type of vehicle .
OR
- We should create separate case type for each vehicle type.