Details
-
Bug Report
-
Status: Closed
-
L3 - Default
-
Resolution: Fixed
-
7.1.0
-
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