Webflow Style Conventions
Cantor, Scott
cantor.2 at osu.edu
Mon Apr 1 17:58:28 EDT 2013
I got it working on a mock action and it looks like this:
<action-state id="StaticResolver">
<evaluate expression="WebFlowAdaptor.execute(flowRequestContext,
StaticResolver)" />
<transition on="proceed" to="end" />
</action-state>
Same as what I surmised, but no need for the @ sign. WebFlowAdaptor and
StaticResolver are the bean IDs, though I kind of think they should be
lower cased, but that's up to us.
The bean file looks like you'd expect:
<bean id="WebFlowAdaptor"
class="net.shibboleth.idp.profile.impl.WebFlowAdaptor" />
<bean id="StaticResolver"
class="net.shibboleth.idp.attribute.cli.StaticResolver" />
Both singletons currently.
I was able to complete a flow from the command line app with that one
step, and it returns a flow outcome of "end", or I can switch it to error
by doing this inside the example action:
profileRequestContext.getSubcontext(EventContext.class, true).setEvent(
"InvalidFlowResult");
The StaticResolver dummy action is currently unaware of Spring or Webflow
and could be inside OpenSAML.
WebFlowAdaptor of course is an actual Web Flow action, though at the
moment it doesn't implement the Spring Action interface due to the extra
bean parameter on the execute method.
I could see any number of ways to tweak things but the general result is
what I was hoping for here (not to say it's what others can tolerate).
Once I have something a bit more substantial I'll check in.
-- Scott
More information about the dev
mailing list