Hi Belur,
Have you considered building a script based on the boolean expressions that you want to create for the flexible policy and saving the script to file?
Later, you can read the script and depending on the policy, it can re-create the boolean expressions.
A simple way to implement this is by having various pre-defined expressions places into a Case Statement. The script calls the appropriate cases that create the complete expression.
You can store the attributes of the objects and when the vi is running, it can first open the initialization file, read the attributes and set them.
For instance, you can read from and write to Property (and Invoke Nodes) to which you can the attributes.
Unfortunately, I don't have an example of this that I c
an share with you. There may be some if you do a search.
Hope this helps..
JLV