AnsweredAssumed Answered

Starting a process by key ignores start form required fields

Question asked by richardmward on Mar 12, 2015
Latest reply on Mar 17, 2015 by jbarrez
Hi,

This may be the expected functionality, but I was wondering if someone could explain why if it is.

If I have a startEvent with some required formProperties in it - when I start a process by using
FormService.submitStartFormData(String processDefinitionId, Map<String, String> properties)
and do not provide all of the required fields, I get an exception saying a property is required (as expected).

However if I start the process using
RuntimeService.startProcessInstanceByKey(String processDefinitionKey, Map<String, Object> variables)
, then it does not complain - essentially skipping the start form.

Is there a reason why this would be the case? Is it expected? It seems unusual to me that you can pass a step on the flow in an invalid state.

Many thanks in advance,
Richard

Outcomes