code: public void updateModifiedFieldsFromEntity(ProcessDefinitionEntity updatingProcessDefinition) {
      if (!this.key.equals(updatingProcessDefinition.key) || !this.deploymentId.equals(updatingProcessDefinition.deploymentId)) {
        throw new ProcessEngineException("Cannot update entity from an unrelated process definition");
      }
      
      // TODO: add a guard once the mismatch between revisions in deployment cache and database has been resolved
      this.revision = updatingProcessDefinition.revision;
      this.suspensionState = updatingProcessDefinition.suspensionState;
      
    }
docs: Updates all modifiable fields from another process definition entity.
  @param updatingProcessDefinition