Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-2846

Cannot submit complex Java Objects with formService.submitStartForm

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: 7.1.0
    • Fix Version/s: 7.2.0, 7.2.0-alpha6
    • Component/s: engine
    • Labels:
      None

      Description

      Hello, normally next two blocks are the same, but second one (with started via formService) throws exception:

      List<ConfirmerInfo> confirmers = new LinkedList<ConfirmerInfo>();
      Map<String,Object> data = new HashMap<String,Object>();
      data.put("confirmers",confirmers);
      ProcessDefinition pd = repositoryService.createProcessDefinitionQuery().processDefinitionKey("ConfirmProcess").latestVersion().singleResult();
      ProcessInstance pi = runtimeService.startProcessInstanceById(pd.getId(), data);

      List<ConfirmerInfo> confirmers = new LinkedList<ConfirmerInfo>();
      Map<String,Object> data = new HashMap<String,Object>();
      data.put("confirmers",confirmers);
      ProcessDefinition pd = repositoryService.createProcessDefinitionQuery().processDefinitionKey("ConfirmProcess").latestVersion().singleResult();
      ProcessInstance pi = formService.submitStartForm(pd.getId(), data);

      Exception is - Caused by: org.postgresql.util.PSQLException: Can't infer the SQL type to use for an instance of java.util.LinkedList. Use setObject() with an explicit Types value to specify the type to use.

      Database: PostgreSQL

        Attachments

          Activity

            People

            Assignee:
            thorben.lindhauer Thorben Lindhauer
            Reporter:
            maratkalibek Marat Kalibekov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: