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
Reporter: Christophe Uberri
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