[Design of JBoss jBPM] - Re: new simplified menu structure
by tom.baeyens@jboss.com
"falazar" wrote : anonymous wrote :
| | The "End Task" is not terminology that is defined by the web console. The caption of each of the transition buttons is determined by the name of the corresponding transition. In this case, the "websale" example process happens to have transitions named "End Task".
|
| The "End" "Cancel" and "Save" are rather confusing, we changed those to be specfic action names so users would know what they were doing, like "Submit Request" and such.
|
+1. So we should give some thought on how the user can specify button names and link them to transition names. By default, the transition names are chosen, but the user should be able to override these. If no transition name is specified and no button name is given, we can't do anything else except come up with a silly generic name.
"falazar" wrote : And the "Cancel" does not actually cancel the task or the process, so it is very ambigously named, we changed it to "Go back to inbox" and added a Cancel Request transition button.
good point. that button got me fooled too. since there is a task.cancel method, i thougt it was cancelling the task. "Back to Inbox" is indeed better
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003766#4003766
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003766
19 years, 2 months
[Design of JBossCache] - Re: Last minute 2.0 API suggestions
by manik.surtani@jboss.com
"genman" wrote :
| 1. Have Node.removeChild() return true if the node was removed
|
Need to think about how big an impact this will have on the interceptor chain since this calls remove(Fqn).
"genman" wrote :
| 2. Add a Node.size() or Node.dataSize() to count basically getData().size(). The problem (in terms of efficiency) is that getData() makes a copy.
| 3. Node.putIfAbsent() should be consistent with ConcurrentMap, and return Object. Consider adding other methods of ConcurrentMap.
| 4. Change Node.put to Node.putAll to be consistent with Map.putAll().
|
Makes sense. I've added the APIs and basic impl's, which we can revise/refactor over time.
"genman" wrote :
| I'm working on a Node -> Map adaptor, sort of a poor man's PojoCache, and find these basic methods missing.
An interesting idea; I'd like to see a separate thread on this though so we can discuss
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003733#4003733
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003733
19 years, 2 months
[Design of EJB 3.0] - ManyToMany enhancement?
by joe.marques@jboss.com
Given this object model:
| Object_A LinkT Object_B
| Aid --- Aid
| Bid --- Bid
| Stuff
|
I would like to use the following ManyToMany style on classes A & B:
| @Entity
| @Table(name = "Object_A")
| class A {
| @ManyToMany
| @JoinTable(name="LinkT",
| joinColumns={@JoinColumn(name="Aid")},
| inverseJoinColumns={@JoinColumn(name="BiD")})
| List<B> Bs = new ArrayList<B>();
| }
|
| @Entity
| @Table(name = "Object_B")
| class B {
| @ManyToMany(mappedBy="Bs")
| List<A> As = new ArrayList<A>();
| }
|
But I also want to be able to access the linking table directly, because it has extra metadata called "stuff" that I insert directly into it with a different Entity mapped directly on top of it:
| @Entity
| @Table(name = "LinkT")
| class Link {
| // Aid, Bid, and Stuff
| }
|
Thus, I can do one of two things right now:
1) Use the @ManyToMany annotations to construct the relationships. This allows me to navigate via getAs() and getBs() to the other side of the relationship and back again. However, doing it this way prevents me from inserting the additional "stuff" qualifier, which can only be calculated at insertion-time.
2) I can use a slightly more obtuse procedure to insert data into the linking table via the Link entity. Here, I've ensured that the data in all three tables is correct, and that the relational part is identical to what is persisted in the above scenario. This method affords me the additional opportunity to insert this qualifying "stuff" into the linking table. Unfortunately, when I go to access the relationships - getAs() and getBs() - they always return empty sets.
Now, I went into all of this presuming that this was most likely a limitation of the current JBoss ejb3 implementation (inserting data through a direct map on top of the linking table, and selecting from the @ManyToMany context), but it would sure be nice if this was a JBoss extension.
After the data is inserted into the linking table with the additional "stuff" attached to it, then you could choose the complexity of your JPQL according to the needs in your calling context:
A simple condition:
| SELECT someA FROM A someA, IN (someA.Bs) someB
| WHERE someB.property=<value>
|
A complex condition, requiring the use of "stuff":
| SELECT someA FROM A someA, LinkT link
| WHERE someA.Aid = link.Aid
| AND link.stuff=<value>
|
Thoughts on this?
-joseph
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003685#4003685
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003685
19 years, 2 months