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

Cannot submit complex Java Objects with formService.submitStartForm

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Fixed
    • L3 - Default
    • 7.2.0, 7.2.0-alpha6
    • 7.1.0
    • engine
    • 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

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce