AnsweredAssumed Answered

avmRemote.getNodeProperty() returns null in workflow preview

Question asked by mcmagi on Jul 7, 2007
Latest reply on Jul 11, 2007 by mcmagi
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

Outcomes