Hi all,

I have a resource exists selector like this:

<map:select type="resource-exists">
<!-- does a form model exist? ie is woody involved -->
<map:when test="form/{1}.wd">
<!-- Start a flow with continuations -->
<map:call function="flowSwitchForm">
<map:parameter name="model" value="{1}"/>
<map:parameter name="flow" value="{2}"/>
</map:call>
</map:when>
<map:otherwise>
<!-- Start a flow with no continuations -->
<map:call function="flowSwitch">
<map:parameter name="model" value="{1}"/>
<map:parameter name="flow" value="{2}"/>
</map:call>
</map:otherwise>
</map:select>

The ResourceExistsSelector is asked to match the file "form/someFormDefn.wo" - the "form" directory is at the same level as the sitemap - just to be clear :)

The document is it testing for DOES exists - but it never returns true. I've taken the {1} substitution out as a desperate attempt to make sure it was looking for the right doc - it still returns false.

On top of that, if I nest ResourceExistSelector's then the matcher is never matched - again no indication in logs, except that another matcher is now used. Take the nested ResourceExistsSelector out - the correct matcher is matched again. I'm at a loss over this one - no idea.

Had anyone experienced this? I've looked at the ResourceExistSelector and it provides no debugging message (because it's so simple - I guess) but it simply isn't matching the document I think it should be.

Has anyone experienced this?

Thanks for your time,

Phil

Reply via email to