Re: conditional send

Jason,

 > does anyone know how to do a conditional send in an xforms-ready
 > event handler?

XForms 1.1 adds support for conditional and repeated actions. Your
example then becomes:

   <xf:send if="instance('formdefinition')/workflow/jbpm/@taskinstanceid 
!= ''"
            submission="loadtransitionlist"/>

If your XForms engine already supports that 1.1 feature, then you are
all set.

 > While I'm here I discovered what I would consider some inconsistencies
 > in the xforms spec today.
 > with xf:load you can bind to an instance node in order to load a new
 > page. but the same bind/ref attributes cant be used in the same way for
 > a submission element. I really wanted a way to dynamically choose the
 > url and params that a submision element would submit to (I wanted to
 > submit the xml to that location) but couldnt find a way to do it. If the
 > attributes were a bit more consistent in how they are used in the
 > various elements then I think xforms would be a whole bunch easier to 
use.

Another good point, and luckily the XForms Working Group has already
worked it out for XForms 1.1, albeit not by harmonizing the attributes
between <xforms:send> and <xforms:load>, and I think this is due to
the fact that <xforms:submission> is quite a different beast from
<xforms:load>. Anyway, XForms 1.1 adds support for dynamically
controlling the submission URI with a new <xforms:resource> child
element of <xforms:submission>. In addition, some implementations
support Attribute Value Templates (AVTs) on the @action attribute of
<xforms:submission>.

-Erik

-- 
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/

Received on Thursday, 2 November 2006 09:55:10 UTC