Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-4657

RESTWorkItemHandler does not work with Custom Model

    Details

    • Steps to Reproduce:
      Hide

      1. Assume Rest Service which outputs following response:
      <pv207.finepayment.Client>
      <exists>true</exists>
      <name>Pavel</name>
      </pv207.finepayment.Client>

      The full implementation is attached as rest-resources.zip which is a simple maven project, which can be deployed on top of the JBoss EAP / Wildfly

      2. Assume following Custom Model created via business-central in the kjar project
      http://pastebin.com/QHBWxXwg

      3. Try to invoke the REST Resource mentioned in step 1) via out of the box RestWorkItemHandler and accept pv207.finepayment.Client as a response.

      The server throws following exception:
      http://pastebin.com/AGLHCMzJ

      Actual results:
      RestWorkItemHandler does not work with custom model classes

      Expected results:
      RestWorkItemHandler does work with custom model classes

      Show
      1. Assume Rest Service which outputs following response: <pv207.finepayment.Client> <exists>true</exists> <name>Pavel</name> </pv207.finepayment.Client> The full implementation is attached as rest-resources.zip which is a simple maven project, which can be deployed on top of the JBoss EAP / Wildfly 2. Assume following Custom Model created via business-central in the kjar project http://pastebin.com/QHBWxXwg 3. Try to invoke the REST Resource mentioned in step 1) via out of the box RestWorkItemHandler and accept pv207.finepayment.Client as a response. The server throws following exception: http://pastebin.com/AGLHCMzJ Actual results: RestWorkItemHandler does not work with custom model classes Expected results: RestWorkItemHandler does work with custom model classes
    • Bugzilla Update:
      Perform

      Description

      It is not possible to use out of the box RESTWorkItemHandler with custom model classes created in business-central (probably also outside)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                swiderski.maciej Maciej Swiderski
                Reporter:
                anton.giertli Anton Giertli
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: