Hopefully someone can help with this, Im pretty new to Workflow customization, so please bear with me.
Im using ALM 11 and trying to configure the workflow customization to return to popup message upon logout when a user has any Test entity checked out. (version control is activated).
This entity can be a Resource, Business component or Test case.
I've added the following code to 'CanLogout'.
The problem is, it is inconsistently triggered. ie. it doesnt always appear even though I know for sure that something is checked out.
Do i need to loop through all the Entities for this to work correctly?
We are already having performance issues so I am reluctant to add to this further by adding unnecessary loops.
Any advice welcome. Thanks.
On Error Resume Next
If Component_Fields("CO_VC_STATUS").Value = "Checked_Out" or Test_Fields("TS_VC_STATUS").Value = "Checked_Out" or Resource_Fields("RSC_VC_STATUS").Value = "Checked_Out" Then
Re: ALM 11 - Workflow script for checked out entities
There are a couple of issue here.
First, using Component_Fields, Test_Fields, etc will reference the only the single currently selected entity of that type. It will not look at all the records of that type.
Second, it will look at only the entity that is valid in the module you are currently in. So, if you are in the Test Plan module and have a Test Case selected and click Logout, then this code will check the TS_VC_STATUS value for just that one test case. And it won't look at any of the other entities because when you are in the Test Plan there is no selected Component or Resource.
If you want to check all Tests, all Components, and all Resources for the entire project to see if any of them are checked out by the user, you are going to have to write more extensive and complex workflow code.