The information in this article applies to:
Product: Metastorm BPM
Version: 9
Issue
If the name of an action in a process is changed, the name of any existing event code is not changed.
For example, create a process named Process1. Add an item from the toolbox for the action named FirstAction at When action completed. Click on the white background of the Visual Script pane (not on the item added from the toolbox), and you will see that the name is Process1\_FirstAction\_WhenActionCompleted.
Now change the name of FirstAction to FirstActionChanged. Note that the name Process1\_FirstAction\_WhenActionCompleted has not changed. If a new action named FirstAction is now added, any event code added to When action completed will be named Process1\_FirstAction\_WhenActionCompleted, a name that already exists for FirstActionChanged.
When the project is deployed, it will fail with errors similar to the following:
Error 1/22/2010 12:42:31 PM The type 'Metastorm.Runtime.Models.Project1.Process1.Declarations.Process1\_FirstAction\_WhenActionCompleted' already contains a definition for 'Declarations'
Error 1/22/2010 12:42:31 PM The type 'Metastorm.Runtime.Models.Project1.Process1.Declarations' already contains a definition for 'Process1\_FirstAction\_WhenActionCompleted'
Resolution
- This is a known issue.
- The workaround is to manually change the name of the event code. In the example above, the appropriate instance of Process1\_FirstAction\_WhenActionCompleted could be changed to Process1\_FirstActionChanged\_WhenActionCompleted.