protected void ensureProcessDefinitionInitialized ( ) { if ( ( processDefinition == null ) && ( processDefinitionId != null ) ) { ProcessDefinitionEntity deployedProcessDefinition = Context . getProcessEngineConfiguration ( ) . getDeploymentCache ( ) . findDeployedProcessDefinitionById ( processDefinitionId ) ; setProcessDefinition ( deployedProcessDefinition ) ; } }
for setting the process definition this setter must be used as subclasses can override