[Design of JBoss jBPM] - Re: Process/task search based on variables
by frantisek.kocun@gmail.com
"kukeltje" wrote : "frantisek.kocun(a)gmail.com" wrote :
| | But I have found this use case:
| | You start business process on page where business object BO1 is present, business object creates another business object BO2 some tasks are present on the page where you edit BO1, some on the page where you edit BO2. Does it mean that I should store some kind of ssn and save the same in both objects? I thought that to search for tasks will make from this the same issue as if searching for business object.
| | I do not follow the last 2 sentences, sorry...
I don't understand 2nd sentence neither:) My mistake. I thought if the solution for this case would be to have an String attribute in both of objects with the same value representing business key. Another solution is to reference taskinstance from object directly (what i don't like).
"kukeltje" wrote :
| Actor-id's can be any strings, so also a combination of businessobject and userid. Then it is very easy if you know the user-id and the businessobject to only retrieve the correct tasks, but yes, kind of businesskey like functionality on task is going to be included in jBPM 4 afaik
That's great! I think it will solve all my problems. When it is going out?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179841#4179841
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179841
14 years, 5 months
[Design the new POJO MicroContainer] - Re: Federated resource visitor
by alesj
"adrian(a)jboss.org" wrote : My question was, why do you need to do any complex visiting/caching when
| the plain old classloading api does the job required.
| i.e. You know the resource path(s) up front so a lookup is more efficient
|
IIRC they have some mechanism to override things
depending on the file/classname.
e.g. FooBar.class --> FooBar.component.xml
Similar to what Hibernate did/does with .hbm.xml.
And since I'm already so 'close' to FooBar class (doing @Name inspection),
why don't I also read overriden xml part (if it exists)?
Instead of remembering which are Seam components,
and then doing CL:findResource lookup for possible override.
Eventually implementing some custom ResourceContext (RC) to generically
read that found resource.
Where I could simply use existing RC with all fancy hooks - getBytes, getInputStream, ...
And afaik they also have a need for other suffix / regexp matching resources,
e.g. -page.xml (or something similar).
This would allow to place resources anywhere in classpath,
making it possible for users to group some stuff.
But in general, thinking about the federated stuff,
I'm surprised it didn't pop-up before.
e.g. doing @annotation read + some other class inspection on the same Module,
while still keeping things separated by what they do, not what they match
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179833#4179833
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179833
14 years, 5 months
[Design of JBoss jBPM] - Re: Process/task search based on variables
by kukeltje
"frantisek.kocun(a)gmail.com" wrote :
| But I have found this use case:
| You start business process on page where business object BO1 is present, business object creates another business object BO2 some tasks are present on the page where you edit BO1, some on the page where you edit BO2. Does it mean that I should store some kind of ssn and save the same in both objects? I thought that to search for tasks will make from this the same issue as if searching for business object.
| I do not follow the last 2 sentences, sorry...
"frantisek.kocun(a)gmail.com" wrote :
| And this one (only fictive not form business) case where business key is not enough:
| Imagine "friend link" example. On the page of first user sees all requests he requested and he can cancel some of them -> key should be friend. User2 sees all the requests he can accept/reject -> key should be friend2 They can't have the same key. So solution for this is to have business key in TaskInstance not in ProcessInstance. And this will be the solution for first case as well and I can left out ssn form business object:) I think that it is better to refence object form process and not vice versa. Now we use this solution and I call it business object as "task owner" and the id of business task is stored in task variable. It is not the same as assigning task to user because authorization is there as well so it is assigning task to combination of showed business object and logged user. What do you think about this?
Actor-id's can be any strings, so also a combination of businessobject and userid. Then it is very easy if you know the user-id and the businessobject to only retrieve the correct tasks, but yes, kind of businesskey like functionality on task is going to be included in jBPM 4 afaik
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179809#4179809
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179809
14 years, 5 months