Get workflow items no longer works after upgrade - SmartPlant Foundation - IM Update 48 - Help - Hexagon

SmartPlant Foundation Help

Language
English
Product
SmartPlant Foundation
Search by Category
Help
SmartPlant Foundation / SDx Version
10
SmartPlant Markup Plus Version
10.0 (2019)
Smart Review Version
2020 (15.0)

Problem

When you have upgraded from SmartPlant Foundation 2016 (6.0) to the latest version SmartPlant Foundation 2019 (10.0) or earlier, and use the GetWorkflowStepsForUserAtStatus method definition to return workflow items for a user, the following error appears:

NotImplementedException

Any previous customization done in SmartPlant Foundation 2016 (6.0) using the GetWorkflowStepsForUserAtStatus method definition is broken after upgrade as the method no longer exists in later versions.

Solution

The GetWorkflowStepsForUserAtStatus method definition is deprecated from SmartPlant Foundation 2016 (6.1) and was replaced with the GetToDoList method definition implemented to take full advantage of the new DAL that was developed to improve performance.

If you were using the GetWorkflowStepsForUserAtStatus method definition before the upgrade, you will have to modify any custom code to use the GetToDoList method definition.

The only difference is that the GetToDoList method definition returns all workflow steps that are in a Ready to start status, whereas the GetWorkflowStepsForUserAtStatus method definition returned workflow steps in any status.