The Project contains rules with methods that are deprecated

Last Week
Andread
BIZAGI STUDIO

Summary

In Bizagi version 11 there are sentences in scripting expressions that are deprecated, that were used in projects up to version 10.7.
If those expressions are not changed, they will most likely cause compilation errors and will not work at runtime. We strongly suggest changing those expressions as soon as you upgrade. 

The sentences to change include: 

  • String.Format
  • Me.Task.Id
  • Me.Case.ProcessDefinition.Id


Applies to

Projects upgrading from Bizagi 10.x to Bizagi 11.

What you need to do

1. After upgrading your project from Bizagi 10.x to Bizagi 11, locate the folder C:\Bizagi\Trace and look for the Bizagi_Upgrader_(date).log.

2. Open the file to identify the expressions containing deprecated methods that must be changed in Bizagi Studio.

3. In Bizagi Studio using the Search for expressions, locate each expression and change it, to remove the use of the deprecated method:

  • String.Format: The method you were using was updated by Microsoft .NET Framework. Please review the following URL to identify the method that best suits your needs: https://msdn.microsoft.com/en-us/library/system.string.format(v=vs.110).aspx 
  • Me.Task.Id: this sentence must change the Id to use the name of the Task.
    That is Me.Task.Name  == "TaskName".
  • Me.Case.ProcessDefinition.Id: this sentence must be changed to replace the Id using the name of the process, e.g. Me. Case.ProcessDefinition.Name == "ProcessName".

 

The log of the expressions that must be changed is found in the project's Trace Folder

C:\Bizagi\Projects\[Projectname]\Trace 

The log of the expressions that must be changed is found in the project's Trace Folder

C:\Bizagi\Projects\[Projectname]\Trace 

Rate this Article:

Details

Last Modified:Last Week
Last Modified By: CarolinaM
Type: HOWTO
Level: Advanced
Rated 4 stars based on 2 votes.
Article has been viewed 1.8K times.

Options