Skip to content

Commit

Permalink
BZ-1024358 - kie-services-remote REST api serialization issues
Browse files Browse the repository at this point in the history
(cherry picked from commit 5289cee)
  • Loading branch information
Marco Rietveld committed Oct 29, 2013
1 parent e5749ba commit afc3c93
Show file tree
Hide file tree
Showing 6 changed files with 174 additions and 86 deletions.
7 changes: 7 additions & 0 deletions kie-remote/kie-services-client/pom.xml
Expand Up @@ -117,6 +117,13 @@
<artifactId>jbpm-persistence-jpa</artifactId>
<scope>test</scope>
</dependency>

<!-- reflection -->
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>0.9.9-RC1</version>
</dependency>
</dependencies>

</project>
Expand Down
Expand Up @@ -57,9 +57,11 @@ public class JaxbCommandsResponse {
@XmlElement(name = "long-list", type = JaxbLongListResponse.class),
@XmlElement(name = "primitive", type = JaxbPrimitiveResponse.class),
@XmlElement(name = "process-instance", type = JaxbProcessInstanceResponse.class),
@XmlElement(name = "task", type = JaxbTaskResponse.class),
@XmlElement(name = "process-instance-list", type = JaxbProcessInstanceListResponse.class),
@XmlElement(name = "task-response", type = JaxbTaskResponse.class),
@XmlElement(name = "task-summary-list", type = JaxbTaskSummaryListResponse.class),
@XmlElement(name = "work-item", type = JaxbWorkItem.class),
@XmlElement(name = "variables", type = JaxbVariablesResponse.class),
@XmlElement(name = "other", type = JaxbOtherResponse.class),
})
private List<JaxbCommandResponse<?>> responses;
Expand Down
Expand Up @@ -15,7 +15,7 @@
import org.kie.api.runtime.process.ProcessInstance;
import org.kie.services.client.serialization.jaxb.impl.AbstractJaxbCommandResponse;

@XmlRootElement(name="task-summary-list")
@XmlRootElement(name="process-instance-list")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlSeeAlso(value={JaxbProcessInstanceResponse.class})
public class JaxbProcessInstanceListResponse extends AbstractJaxbCommandResponse<List<ProcessInstance>> {
Expand Down
Expand Up @@ -12,7 +12,7 @@
import org.kie.api.task.model.Task;
import org.kie.services.client.serialization.jaxb.impl.JaxbCommandResponse;

@XmlRootElement(name = "task")
@XmlRootElement(name = "task-response")
@XmlAccessorType(XmlAccessType.FIELD)
public class JaxbTaskResponse extends JaxbTask implements Task, JaxbCommandResponse<Task> {

Expand Down

0 comments on commit afc3c93

Please sign in to comment.