[Design of JBoss jBPM] - Re: web console problem
by tom.baeyens@jboss.com
"david.lloyd(a)jboss.com" wrote : I agree this is a problem. The current logic of the transition button is that if the attribute is not there, or if its value is "default", then the default transition will be taken. A value of "" will translate into a lookup for a transition named ""... this is not really optimal.
|
| Koen, is it possible to modify the GPD so that if there is only one transition, that the "to" attribute is not emitted?
|
i don't quite get the point you're trying to make. 'to' is a required attribute on the transition. only the name is optional. it should be unique in case there are multiple leaving transitions.
afaik, the designer already left out the name in case there is only 1. but in case the designer should put in name="", that should work as well.
mayeb the problem is in the forms.xml generation...
if you want to reproduce this, just build the suite from head and create a simple new process with a start state and 1 task node. add a task to the start state. generate a minimal form for it, deploy the process, start it and end the start task.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007955#4007955
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007955
17 years, 4 months
[Design of JBoss jBPM] - Re: web console problem
by tom.baeyens@jboss.com
"david.lloyd(a)jboss.com" wrote : "tom.baeyens(a)jboss.com" wrote : also it appears that the console has become very slow. do you see the same ? do you think the cause is the navigation layout and increased page contents ?
|
| My laptop is pretty fast so I didn't notice anything too slow. But I think I'm going to run the console with a profiler just to see if there are any bits that can be optimized.
then this will probably be something else on my system. i'll try again tomorrow. before the navigation rework, it took approx .5 second for a page to show. now it was approx 7-10 seconds. if you don't have this problem, it will be something local. i'll figure it out first.
profiling should not be necessary at this point.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007954#4007954
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007954
17 years, 4 months
[Design of EJB 3.0] - Re: Issues with passivation of nested SFSBs
by bstansberry@jboss.com
"bill.burke(a)jboss.com" wrote :
| Nested SFSBs have to share the same lifecycle as their parents. They also have to share the same Extended Persistence Contexts the reference!
OK, good; that's a clear rule that makes deciding how to handle everything else simpler. :)
This is broken if the nested SFSB declares @Remote. This test fails:
| ParentStatefulRemote stateful = (ParentStatefulRemote) ctx.lookup("testParentStateful/remote");
|
| assertEquals("Counter: ", 1, stateful.increment());
|
| NestedStateful nested = stateful.getNested();
|
| stateful.remove();
|
| // Confirm nested no longer works following parent remove
| try
| {
| nested.increment();
| fail("Nested bean still exists following destruction of parent");
| }
| catch (Exception good)
| {
| // this is what we want -- nested has no independent lifecycle
| }
|
I'll open a JIRA for this. Hopefully one of you guys can figure it out. I've been digging around trying to understand what's going on. For some reason, if the nested bean declares @Remote, when a StatefulCache calls Pool.get(), it gets back a standard StatefulBeanContext rather ProxiedStatefulBeanContext. This has to be a function of how calls are nested (i.e. the nested bean gets created *before* the parent, thus the parent hasn't been pushed onto the ThreadLocalStack when the nested bean is created.)
As for the initial issue of the ProxiedStatefulBeanContext not being removed from the cache when it's parent is, I think I found that -- it was a bug in StatefulTreeCache.
anonymous wrote : Another thought I had was to actually store the Nested Bean's instance inide of its proxy and propagate it to the Nested Bean's EJB container via the invocation object. If the invocation object had the actual bean instance already set, then the EJB container would not look in the cache.
|
| I don't remember why I didn't do this....Maybe I didn't think of it at first?
Was this thought sparked by my last post re: replicating the proxy? That is, if we store the bean instance in the proxy and replicate it, that solves the issue?
If so, I think the reason you didn't do it that way was because you wanted the nested beans to always be serialized as a unit with the parent. Otherwise after deserialization you no longer have shared refs to things like ExtendedPersistenceContext.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007942#4007942
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007942
17 years, 4 months