[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2268) check if actor has group actor ids before getting pooledTaskInstanceList

Pete Muir (JIRA) jira-events at lists.jboss.org
Sat Nov 24 17:57:18 EST 2007


    [ http://jira.jboss.com/jira/browse/JBSEAM-2268?page=comments#action_12389004 ] 
            
Pete Muir commented on JBSEAM-2268:
-----------------------------------

+1 

> check if actor has group actor ids before getting pooledTaskInstanceList
> ------------------------------------------------------------------------
>
>                 Key: JBSEAM-2268
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2268
>             Project: JBoss Seam
>          Issue Type: Bug
>    Affects Versions: 2.0.0.GA
>            Reporter: Dan Allen
>         Assigned To: Dan Allen
>            Priority: Minor
>             Fix For: 2.0.1.GA
>
>   Original Estimate: 5 minutes
>  Remaining Estimate: 5 minutes
>
> If the current actor does not have any group actor ids, then the pooledTaskInstanceList should be smart and return an empty list rather than allow a jBPM exception to be thrown due to a failed Hibernate query.
> Current result:
> couldn't get pooled task instances list for actors '[]'
> Easy fix:
>       if ( Actor.instance().getGroupActorIds().size() == 0 )
>       {
>          return Collections.<TaskInstance>emptyList();
>       }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list