Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-3459

Double value in the form is shown with a group separator and attempt to save the value fails when the form is rendered by kie server (property org.jbpm.wb.forms.renderer.ext is set to true)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.10.0.GA
    • 7.8.0.GA
    • Form Modeler
      • Red Hat Process Automation Manager (RHPAM) 7.8.0.GA
      • Kie server configured to render the form by setting the following property "org.jbpm.wb.forms.renderer.ext" to true;

       

    • False
    • False
    • Undefined
    • Hide

      Every double value that is represented with a group separator have to be changed and comma separator has to be removed in order to save the value properly. 

      Show
      Every double value that is represented with a group separator have to be changed and comma separator has to be removed in order to save the value properly. 
    • Hide
      • Set "org.jbpm.wb.forms.renderer.ext" property to true in the config file and start the server;
      • Create a Data Object with a "Double" field and some other fields.
      • Create a simple business process with a user task bound to the above data object. (The user task should have appropriate assignment groups and In/Out params)
      • Generate task and process forms - This should create the task form with a nested form bound to the data object.
      • Save and deploy the process.
      • Kickoff an instance of the process and supply values. Make sure to supply bigger numeric value (Eg: 125000) and find a task waiting in the task inbox.
      • Claim, Start the task.
      • Note that the numeric value has a group separator (Eg: 125,000). Now save the task and observe the error.

      Attached simple project that can be used to reproduce the error. 

      Show
      Set "org.jbpm.wb.forms.renderer.ext" property to true in the config file and start the server; Create a Data Object with a "Double" field and some other fields. Create a simple business process with a user task bound to the above data object. (The user task should have appropriate assignment groups and In/Out params) Generate task and process forms - This should create the task form with a nested form bound to the data object. Save and deploy the process. Kickoff an instance of the process and supply values. Make sure to supply bigger numeric value (Eg: 125000) and find a task waiting in the task inbox. Claim, Start the task. Note that the numeric value has a group separator (Eg: 125,000). Now save the task and observe the error. Attached simple project that can be used to reproduce the error. 
    • ---
    • ---

      A task form having a DecimalBox displays a big numeric value with a group separator (For eg: A number 123000 gets displayed as 123,000). However, on saving the task form by clicking on "Save" button, without making any changes, an error "Something went wrong Internal Server Error ( Internal Server Error)". The error shown in the UI is:

      *****************************************************
      Context Path: /business-central
      Servlet Path: /jbpm/forms
      Path Info: /containers/DoubleTestProject_1.0.0/tasks/17/contents/output
      Query String: templateid=default-kieserver
       
      Stack Trace:
      org.kie.server.api.exception.KieServicesHttpException: Unexpected HTTP response code when requesting URI 'http://localhost:8080/kie-server/services/rest/server/containers/DoubleTestProject_1.0.0/tasks/17/contents/output'! Error code: 500, message: "Unexpected error during processing: Error unmarshalling input

      ...

      *****************************************************

              rh-ee-pefernan Pere Fernandez Perez
              rhn-support-bkramer1 Biljana Kramer
              Prashanth TS Prashanth TS (Inactive)
              Prashanth TS Prashanth TS (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: