Bug 1026355 - Add support for own types in JaxbSerializationProvider
Summary: Add support for own types in JaxbSerializationProvider
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: ER5
: 6.0.0
Assignee: Marco Rietveld
QA Contact: Ivo Bek
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-04 13:47 UTC by Ivo Bek
Modified: 2016-09-20 05:05 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:11:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ivo Bek 2013-11-04 13:47:36 UTC
Description of problem:

When we use own type in the parameters of StartProcessCommand, the context has to know about it. The class then cannot be used just because there is no possibility how to add the own classes into the context.

Comment 1 Ivo Bek 2013-11-04 14:08:46 UTC
I propose something like:

public static String convertJaxbObjectToString(Object object, Class... classes)
            throws JAXBException {

Marshaller marshaller = JAXBContext.newInstance(ArrayUtils.addAll(jaxbClasses, classes)).createMarshaller();

Comment 3 Ivo Bek 2013-12-09 14:59:41 UTC
Verified in BPMS 6.0.0.ER5


Note You need to log in before you can comment on or make changes to this bug.