ClearCase find checked-out follow by an IF condition

Hi all,

I am evaluating FinalBuilder tool and I want to do the following steps:

1- Find Checked out file with Clearcase

2- If there is a checked-out file Then

          - continue others tasks

   else

        - stop

Can you let me on how I can implement the If ... then ... else condition in Final Builder?

Regards,

Fabrice.

Hi Fabrice,

You need to set an FB Variable to the condition you want to test for (ie. create an FB Variable via Tools | Edit Variables, then in the Clearcase action set the variable to true of there is a checked out file).

Then use the following actions:
If … Then (set the left hand value to your variable, and the right hand value to True)
- indent the other tasks here
Else action
- indent the else actions here


The other way you can do it is to use the boolean variable in the Condition field of the actions (it’s on the Runtime tab, and don’t enclose the variable in %'s). So you could have the following:

Action Group (Description: If Files Checked out, Condition: FilesCheckedOut)
- indent other tasks
Action Group (Description: If Files not Checked out, Condition: not FilesCheckedOut)
- indent else actions here.


hth.
.t8