[jboss-dev-forums] [Design of JBoss jBPM] - Re: Process/task search based on variables

kukeltje do-not-reply at jboss.com
Wed Oct 1 10:18:40 EDT 2008


"frantisek.kocun at 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 at 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



More information about the jboss-dev-forums mailing list