You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the closure of events depends on the definition of PlanDefs in the "questionnaire": {} configuration in the ON-CLICK action.
This configuration is also used by the Workflow start functionality. This setup creates a risk of closing wrong workflows or opening unnecessary workflows for clients.
Example to Highlight the Above Risk
Suppose the PlanDef configuration has 10 PlanDefinitions defined, where 4 are required to open new workflows and 6 are required to close workflows.
Currently, when the event condition is met, the Workflow closure code will close all 10 Careplans referenced by the PlanDefs defined in the array, regardless of whether they should be closed or not. However, all 10 PlanDefs have the potential to open new workflows if the conditions in the actions are met.
High-Level Implementation
Move the Event Management PlanDefinition configuration to the eventWorkflows configuration.
Ensure that the PlanDefinitions defined in eventWorkflows are executed only when the required conditions are met.
Acceptance Criteria
All Event Management PlanDefinitions must be defined in the eventWorkflows configuration.
All Event Management PlanDefinitions can only be closed if their defined condition is true.
Each condition should target particular PlanDefinition(s) to be closed whenever the condition is met
Description of the Issue
"questionnaire": {}
configuration in the ON-CLICK action.Example to Highlight the Above Risk
High-Level Implementation
eventWorkflows
configuration.Acceptance Criteria
The
eventWorkflows
will be created hereThe text was updated successfully, but these errors were encountered: