[jboss-dev-forums] [Design of JBoss jBPM] - expression or execute

pete.muir@jboss.org do-not-reply at jboss.com
Tue Sep 4 08:23:20 EDT 2007


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080849#4080849

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080849



More information about the jboss-dev-forums mailing list