I am trying to inactivate the ootb dcm case for the opportunity object, as we have created 2 dcm cases of our own. But anything that I have tried was unsuccessful. When transferring the package from testing environment to pre production environment, even though I can find our custom dcm cases, the ootb dcm is set for all records.
I need to build a scenario where the user can perform a task by directly clicking on the "Complete" button of a User task on the DCM, without having to choose an Activity result in the subsequent pop-up.
In other words, the "Complete" button should directly perform the desired action.
Could anyone please guide me on how such a functionality could be achieved.
I tried to proceed with your suggestion. However, I can see that the ActivityDashboardItemViewModel schema is not replaceable.
I have following questions in this regard:
1) Could you guide me on how to proceed with overriding the above method, and will doing so require replacing the ActivityDashboardItemViewModel schema or I will have to create a new schema altogether?
2) Also, just to have a guidance on one of the alternative approach that I had tried, I tried assigning the activity as "Completed" by going into the advanced mode of the activity setup, in the DCM, however that did not seem to work. So, was I also doing something similar to what you had suggested above but in a different way, or are these entirely different solutions?
Following is the screenshot for your reference of the above mentioned alternative:
The ActivityDashboardItemViewModel is a view model and Ryan Farley created a perfect article that explains how to correctly replace modules (see his comment here https://community.creatio.com/questions/replacing-client-module). You need to replace the ActivityDashboardItemViewModel in the same way.
The second approach you tried should set the result to "Completed" by default so it's not a solution in the case when a user should click a "Completed" button and this action should set the "Completed" status for the activity.