FormService returns null instead of exception if no form is defined

Description

Currently this results in an exception if the start event doen't have a start-form defined:
formService.getStartFormData(processDefinition.getId());

Hence you cannot check if a process has a start form without causing an exception which is logged even if it is caught (see below).

I want to change the behavior to return NULL instead. Any objections?

18:51:02,083 Schwerwiegend [org.activiti.engine.impl.interceptor.CommandContext] (http--127.0.0.1-8080-3) Error while closing command context: org.activiti.engine.ActivitiException: No startFormHandler defined in process 'xxx'
at org.activiti.engine.impl.cmd.GetStartFormCmd.execute(GetStartFormCmd.java:50) [fox-engine-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at org.activiti.engine.impl.cmd.GetStartFormCmd.execute(GetStartFormCmd.java:30) [fox-engine-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24) [fox-engine-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42) [fox-engine-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at org.activiti.engine.impl.interceptor.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:59) [fox-engine-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33) [fox-engine-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at org.activiti.engine.impl.FormServiceImpl.getStartFormData(FormServiceImpl.java:52) [fox-engine-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]
at sun.reflect.GeneratedMethodAccessor191.invoke(Unknown Source) [:1.7.0_04]

Assignee

Bernd Ruecker (camunda)

Reporter

Bernd Ruecker (camunda)

Labels

None

Fix versions

Priority

Major
Configure