How to prevent same intent task from getting added multiple times

Hi,

We have a business requirement to prevent a user from starting the same intent task twice until the first one is submitted.

We were thinking of customizing the click and double-click actions in CPMDisplayTaskInMenu, but that section is marked Final.

Is there any way to customize the launch of an intent task to prevent duplicates?

@PatrickC8660

We are doing if any active in progress or queued task there, making disabled for adding duplicate until those queued/in progress tasks closed.

@ThorlikondaGopi How was this achieved? CPMDisplayTaskInMenu is marked Final and there is no disable condition on the links.

@PatrickC8660

You can save as that section into our ruleset.

@ThorlikondaGopi That is not allowed for a Final rule.

We found a solution by customizing CSInteractionDriverAddTask which is not Final and checking the current queued and active tasks and removing from D_Interaction_Driver.DriverCategories().pxResults the ones that match.

The already started tasks would not be displayed on the Add Task screen until they are submitted/completed.