We have a need to generate a questionnaire (dynamic - The answer to 1 question drives the question for the next - Yes or No may lead to a different path) based on a decision tree that can be delegated to business for modification on the fly
The decision tree rule can reference backed by controls/html properties and the system should prompt these questions. When the leaf of the decisiontree is reached a decision was made and the flowaction can be submitted to proceed to the next step.
Basically the entire decision tree(dynamic questionnaire) has to run within the context of a single flowaction.
Has anyone implemented similar use cases?
***Edited by Moderator Marije to add Capability tags***
If there is a FW for it then the answer to your question is yes. Frameworks are directly on Pega.
What is the problem that you're trying to solve and what other options did you consider before landing on decision trees?
@carej1 The use case itself is a decision tree(business requirement) that comprises of a series of questions to be asked dynamically depending on the answer to the previous question. The questions may vary by client and grade and also the answer to a question dictates or drives the next question(yes and No path branches to a different decision tree). Basically a flowaction triggering questions dynamically to the user before reaching a final decision point(leaf of the decision tree). Let me
I know that the smartdispute framework operates based on a similar concept/idea(dynamic questionnaire), however I believe this can be achieved using the base pega platform as well
Posted: 1 year ago
Posted: 18 Mar 2022 15:23 EDT
Santhosh Bagannagari (SanthoshB6893)
@SethuS88 I dont think Decision tree can be used to achieve the said functionality (correct me if I am missing something here). I would try to implement this functionality with creating below data models.
1. Questions - Just contain the question information
2. Answers - Contains QuestionID, Answer Text and Next Question ID (maintains relation between answers and questions)
At runtime of case processing, based on the selected answer, you can always dynamically fetch next question and its corresponding answers. Any change in Questions and Answers will be reflected immediately.
Regarding delegation, we cant use the OOTB delegation as is ( we can still do by delegating these data types but it would be less business friendly). You can build Harness with a UI to display the tree structure in a grid with edit functionality. Post update, you can update the data records in the table.