String diagramResourceName = StringUtil.getString(resourcePng.getName());
process.setDiagramResourceName(diagramResourceName);
}
CommandContext commandContext = Context.getCommandContext();
ProcessDefinitionManager processDefinitionManager = commandContext.getProcessDefinitionManager();
DbSqlSession dbSqlSession = commandContext.getDbSqlSession();
int processDefinitionVersion;
ProcessDefinitionBehavior latestProcessDefinition = processDefinitionManager.findLatestProcessDefinitionByKey(process.getProcessDefinitionKey());
if (latestProcessDefinition != null) {