snippets/migrate-third-party-to-camunda/src/main/java/org/camunda/bpm/engine/impl/persistence/entity/ProcessDefinitionEntity.java
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;
    
  }
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;
    
  }
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 ; }
Updates all modifiable fields from another process definition entity.
@param updatingProcessDefinition
Updates all modifiable fields from another process definition entity .