182183184185186187188
IdGenerator idGenerator = processDefinition.getIdGenerator(); if (idGenerator!=null) { this.id = idGenerator.createId(processDefinition, null, this); } HistoryEvent.fire(new ProcessInstanceCreate(), this); }
185186187188189190191
this.key = key; save(); composeIds(); HistoryEvent.fire(new ProcessInstanceCreate(), this); }