10 Replies Latest reply on Sep 6, 2007 6:27 AM by pmuir

    expression or execute

    pmuir

      Hi

      If you are using Seam with JBPM you end up with different syntax for executing actions uising EL:

      Seam's pages.xml

      <page>
       <action execute="#{foo.bar}" />
      </page>


      Seam's components.xml
      <event>
       <action execute="#{foo.bar}" />
      </event>


      (actually currently its

      components.xml
      <event>
       <action expression="#{foo.bar}" />
      </event>


      but we are planning to deprecate this)

      .jpdl.xml
      <action expression="#{foo.bar}"/>


      We (Seam dev) feel that execute is a better word as expression is what it is, whilst execute is what it does. In particular you can use expressions inside other attributes (e.g. condition="#{foo.isBar}" or actor-id="#{foo.actor}").

      But I also think consistency is very important, so we am hoping that we can get execute as an alias to expression available in JPDL (best would be to deprecate expression I think). What do you guys think? A possibility?

      http://jira.jboss.com/jira/browse/JBSEAM-1775