WorkflowDefinition serialization to JSON differs in "get all" and "get by ID"

Steps to reproduce

WorkflowRestService#getWorkflowDefinitionAsJson(..) uses JAXB serialization while WorkflowRestService#getWorkflowDefinitions(..) does manual serialization. This approach is generally not desirable since changes in the WorkflowDefinition and WorkflowOperationDefinition have to be reflected; a code break will likely happen.

Currently there are also differences in field naming, on example is in WorkflowOperationDefinition, exception-handler-workflow (JAXB) vs. exception_handler_workflow (manual in WorkflowRestService#getWorkflowDefinitionAsJson)

A JAXB wrapper class should be used to serialize the list.

Assignee

RĂ¼diger Rolf

Reporter

Christoph Driessen

Severity

Incorrectly Functioning With Workaround

Tags (folksonomy)

Components

Fix versions

Affects versions

Priority

Major
Configure