When I try to start a new process instance, and then go to next state, the process instance its created
as I can see it in the DataBase, but the ID of the process instance is null, I need some help, why is this happenning??
The code:
ProcessInstance processInstance = getExecutionService()
.startProcessInstanceByKey(processDefinitionId);
String processInstanceId = processInstance.getId();
logger.debug("processInstanceId: " + processInstanceId);
// and ... processInstanceId is null as I can see in the DB, thanks in advance