Hi All,
As per "ALM11.00_Workflow_Best_Practices" I have written below workflow code in
Script Editor -> Project Scripts -> Common Scripts -> ActionCanExecute
Function ActionCanExecute(ActionName) On Error Resume Next if ActionName= "Defects.DeleteDefect" then if Bug_Fields.Field("BG_STATUS").value ="Closed" then ActionCanExecute = true Else Msgbox "You don’t have enough credentials to perform Delete" ActionCanExecute = false Exit function End if End if '…… End function
The script successfully passed syntax check.!!!!
If I attempt to DELETE any Defect(Bug) which has any other value except BG_STATUS value "Closed" , message box "You don’t have enough credentials to perform Delete" is displayed which is expected and correct.
Basically I copied and pasted this code from best practises guide and now in order to understand the code ( Debug ) , I installed Visual Studio 2010.
Opened the Script Editor and attached it as a process to Visual Studio 2010.
Please find the attached document , I am able to extract the external VB code to MVS but my question is how to navigate through this code step by step?
Please advise.
Regards, Srihari