What I expect
- If there is only one transition, it is allowed to have no name. Completed can be returned as the *only* possible outcome then.
- If there are more transitions, all with names, completed is not there (why should it? To give the user the explicit option to choose the 'default' transition which he probably does not know which one it is?)
- Ending a task with 'null' or nothing makes it take the default transition
- If there is more then one transition, none are allowed to have no name (throw an error when parsing)
Even better (but that was in the previous discussion) I think a name on a transition should be required. So this ' completed' is not needed then and passing (null) or () makes it take the default transition. Much more clear to me.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241243#4241243
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241243
"richard.opalka(a)jboss.com" wrote : Could somebody confirm my feelings?
What do feelings have to do with it?
Instead of using your feelings why don't you try looking at the log
(including turning up the relevant categories to TRACE level)
so you can see what it is actually doing?
I think you'll find that a much happier approach. :-)
Anyway, compare the name= in the exception message
| 15:59:53,815 ERROR [AbstractKernelController] Error installing to Instantiated:
| name=WSDeploymentAspectsDeployer state=Described
|
to that in the xml
| <bean name="WSContainerMetaDataDeployer"
| class="org.jboss.wsf.container.jboss50.deployer.WSDeploymentAspectDeployer">
|
Assuming that doesn't improve your feelings,
post some more relevant information in the user forum.
This is not the place to ask for help.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241238#4241238
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241238
anonymous wrote : 15:59:53,815 ERROR [AbstractKernelController] Error installing to Instantiated: name=WSDeploymentAspectsDeployer state=Described
|
Hehe, it's complaining about some other deployer and not the one which you posted (WSContainerMetaDataDeployer):
<bean name="WSContainerMetaDataDeployer" class="org.jboss.wsf.container.jboss50.deployer.WSDeploymentAspectDeployer">
| <constructor>
| <parameter class="org.jboss.wsf.spi.deployment.DeploymentAspect">
| <inject bean="WSContainerMetaDataDeploymentAspect"/>
| </parameter>
| </constructor>
| </bean>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241237#4241237
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241237
I don't really see anything obviously wrong with your configuration. And the deployers are not special MC POJOs. They have the same characteristics as the normal MC beans. The only distinguishing factor, is that they get added to the DeployersImpl through a callback.
Are you sure, that the MC is picking up this exact file? Or is it picking up some other -jboss-beans.xml which does not configure the "constructor" in the xml.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241236#4241236
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241236
"completed" is always a valid outcome
In TaskImpl:
public void complete() {
| complete(Task.STATE_COMPLETED);
| }
|
this also fits with the logic that the task outcome doesn't have to match with the transition name if there is only one.
if there are more transitions, then still "completed" is a valid outcome. in that case the default outgoing transition will be taken from the activity if task is completed with outcome 'completed'.
so in other words, i don't yet see the unlogicality. can you elaborate more concretely what you expected different ?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241230#4241230
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241230