cancel
Showing results for 
Search instead for 
Did you mean: 

avmRemote.getNodeProperty() returns null in workflow preview

mcmagi
Champ in-the-making
Champ in-the-making
I am using the "description" property of folders to store meta information about folder hierarchies.  This information is used by the web application as descriptive names for categorized content.  I have the following code:


        PropertyValue prop = avmRemote.getNodeProperty(-1, avmPath,
                ContentModel.PROP_DESCRIPTION);
        String value = "";
        if (prop != null)
        {
            MLText mltext = (MLText) prop.getSerializableValue();
            value = mltext.getDefaultValue();
        }
        System.out.println("avmPath: " + avmPath + ", desc: " + value);
        return value;

This code works as intended to retrieve the desciption property within the site preview function of user sandboxes.  However, when attempting to preview the same content in a workflow task, the "prop" object is null.

- Michael C. Maggio
   NCS Technologies, Inc
2 REPLIES 2

mcmagi
Champ in-the-making
Champ in-the-making
Filed support case WCM-625

mcmagi
Champ in-the-making
Champ in-the-making
This has been fixed with an upgrade to 2.1 RC2 (dev).