[jBPM Development] - Re: jpdl syntax for jms activity
by tom.baeyens@jboss.com
i would prefer to use tag names to indicate the message type. e.g. use element text for text messages and element map for map messages
<jms name="send message"
| connectionFactory="ConnectionFactory"
| queue="queue/MyQueue">
| <text>
| This is the body
| </text>
| <transition to="wait" />
| </jms>
|
<jms name="send message"
| connectionFactory="ConnectionFactory"
| queue="queue/MyQueue">
| <map>
| <entry>
| <key><string value="one" /></key>
| <value><int value="3" /></value>
| </entry>
| </map>
| <transition to="wait" />
| </jms>
|
Note that with this map, I used the syntax that is already in jpdl for maps. So you can leverage the map parsing and it will be more consistent.
<jms name="send message"
| connectionFactory="ConnectionFactory"
| queue="queue/MyQueue">
| <object expr="#{someObjectExpression}" />
| <transition to="wait" />
| </jms>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269945#4269945
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269945
14 years, 4 months
[jBPM Development] - Re: jpdl syntax for ejb method invoke activity
by tom.baeyens@jboss.com
I think the invoking an ejb should be called just 'java'
As the java activity actually means invoke a java method. At least, that is the reasoning behind it.
Some more questions we need to think about:
1) there is a <jndi jndi-name="..." /> element in the wiring section of jpdl. What is then the most consistent way of naming the jndi element ? In that case the full element specifies only jndi so i don't really know what is the most consistent here.
2) do we need to distinct between session and entity beans ? or can we use reflection to find out ? or maybe that doesn't matter any more in ejb 3 ? i don't know.
but if we need to make a distinction in the language between session and entities, we might have to consider attributes like session-ejb-jndi-name and entity-ejb-jndi-name.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269938#4269938
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269938
14 years, 4 months