[jBPM Users] - Re: End tasks in a Fork
by saraswati.santanu
Hi Alla,
I am not able to reproduce the problem. This is Jpdl I executed:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="" name="parallel.two.sequential.one">
|
| <swimlane name="alla" />
|
| <start-state name="start">
| <transition to="fork1"></transition>
| </start-state>
|
| <fork name="fork1">
| <transition to="task-node1" name="to-task-1"></transition>
| <transition to="task-node2" name="to-task-2"></transition>
| </fork>
|
| <task-node name="task-node1" >
| <task name="Task 1" swimlane="alla">
| </task>
| <transition to="join1" name="to-the-end"></transition>
| </task-node>
|
| <task-node name="task-node2">
| <task name="Task 2" swimlane="alla">
| </task>
| <transition to="join1" name="to-the-end"></transition>
| </task-node>
|
| <join name="join1">
| <transition to="end"></transition>
| </join>
|
| <end-state name="end"></end-state>
| </process-definition>
|
And after execution of task1 when I ask for the current unfinished tasks I get task2 only. Below is the log I am getting:
09:12:55,546 DEBUG GraphElement:170 - event 'task-end' on 'Task(Task 1)' for 'Token(/to-task-1)'
09:12:55,546 DEBUG GraphElement:170 - event 'task-end' on 'Task(Task 1)' for 'Token(/to-task-1)'
09:12:55,546 DEBUG TaskInstance:484 - completion of task 'Task 1' results in taking the default transition
09:12:55,546 DEBUG TaskInstance:484 - completion of task 'Task 1' results in taking the default transition
09:12:55,546 DEBUG GraphElement:170 - event 'before-signal' on 'TaskNode(task-node1)' for 'Token(/to-task-1)'
09:12:55,546 DEBUG GraphElement:170 - event 'before-signal' on 'TaskNode(task-node1)' for 'Token(/to-task-1)'
09:12:55,546 DEBUG GraphElement:170 - event 'node-leave' on 'TaskNode(task-node1)' for 'Token(/to-task-1)'
09:12:55,546 DEBUG GraphElement:170 - event 'node-leave' on 'TaskNode(task-node1)' for 'Token(/to-task-1)'
09:12:55,562 DEBUG GraphElement:170 - event 'transition' on 'Transition(to-the-end)' for 'Token(/to-task-1)'
09:12:55,562 DEBUG GraphElement:170 - event 'transition' on 'Transition(to-the-end)' for 'Token(/to-task-1)'
09:12:55,562 DEBUG GraphElement:170 - event 'node-enter' on 'Join(join1)' for 'Token(/to-task-1)'
09:12:55,562 DEBUG GraphElement:170 - event 'node-enter' on 'Join(join1)' for 'Token(/to-task-1)'
09:12:55,562 DEBUG Join:115 - forcing version increment on parent token Token(/)
09:12:55,562 DEBUG Join:115 - forcing version increment on parent token Token(/)
Hibernate: update JBPM_TOKEN set VERSION_=? where ID_=? and VERSION_=?
09:12:55,578 DEBUG Join:206 - join will not yet reactivate parent: found concurrent token 'Token(/to-task-2)'
09:12:55,578 DEBUG Join:206 - join will not yet reactivate parent: found concurrent token 'Token(/to-task-2)'
09:12:55,578 DEBUG GraphElement:170 - event 'after-signal' on 'TaskNode(task-node1)' for 'Token(/to-task-1)'
09:12:55,578 DEBUG GraphElement:170 - event 'after-signal' on 'TaskNode(task-node1)' for 'Token(/to-task-1)'
I see nothing abnormal there as well.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266683#4266683
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266683
16 years, 5 months
[Spring Integration] - Re: Unabled to return specified bean factory in web applicat
by ivanyuan
Marius,
Thank you so much. With the changes as you suggested, I am moving forward one more step further, but still got the following exception.
[CODE]
2009-11-19 20:15:58,943 INFO [STDOUT] 20:15:58,943 ERROR [ContextLoader] Context initialization failed
org.springframework.beans.factory.access.BootstrapException: Unable to return specified BeanFactory instance: factory key [mainApplicationContext], from group with resource name [classpath*:beanRefContext.xml]; nested exception is org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'mainApplicationContext' must be of type [org.springframework.beans.factory.BeanFactory], but was actually of type [org.jboss.spring.factory.NamedXmlApplicationContext]
at org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:410)
at org.springframework.web.context.ContextLoader.loadParentContext(ContextLoader.java:341)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:195)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
[/CODE]
The bean factory retrieved from JNDI is not the expected type. As I mentioned in the original request, the binded bean in JNDI by spring deployer is
[CODE]
MySpringBean
org.jboss.spring.factory.NamedXmlApplicationContext
[/CODE]
Why the spring deployed put NamedXmlApplicationContext into JNDI instead of Spring Bean factory? Did I do something wrong? Or there is any special configuration needed in my jboss-spring.xml (the spring context file of my spring archive)?
Thanks,
Ivan
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266678#4266678
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266678
16 years, 5 months