[ 
https://jira.nuxeo.org/browse/NXP-5073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stéfane Fermigier updated NXP-5073:
-----------------------------------

    Component/s: Workflow
       Assignee: Alexandre Russel

> ClassCastException when getting available transitions in JbpmService
> --------------------------------------------------------------------
>
>                 Key: NXP-5073
>                 URL: https://jira.nuxeo.org/browse/NXP-5073
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>          Components: Workflow
>            Reporter: Christophe Uberri
>            Assignee: Alexandre Russel
>
> The JbpmService declares a method getAvailableTransitions() which returns a 
> generic List of String.
> The service code uses under the hood the getAvailableTransitions() method of 
> the TaskInstance jBPM class, which returns a non generic List containing 
> objects of type Transition.
> Unfortunately, the code casts the result of that operation as a Serializable, 
> and further as a generic List of String.
> The problem occurs at runtime, the execution falls into a ClassCastException 
> when I try to iterate through the List of objects assumed as String, which 
> actually contains objects of type Transition...

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

       
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to