@Test public void initResourcePatterns() { final String[] patterns = CamundaBpmProperties.initDeploymentResourcePattern(); assertThat(patterns).hasSize(7); assertThat(patterns).containsOnly("classpath*:***.bpmn20.xml", "classpath*:***.dmn11.xml", "classpath*:***.cmmn10.xml", "classpath*:**/*.cmmn11.xml"); }
static String[] initDeploymentResourcePattern() { final Set<String> suffixes = new HashSet<>(); suffixes.addAll(Arrays.asList(DEFAULT_DMN_RESOURCE_SUFFIXES)); suffixes.addAll(Arrays.asList(DEFAULT_BPMN_RESOURCE_SUFFIXES)); suffixes.addAll(Arrays.asList(DEFAULT_CMMN_RESOURCE_SUFFIXES)); final Set<String> patterns = new HashSet<>(); for (String suffix : suffixes) { patterns.add(String.format("%s**/*.%s", CLASSPATH_ALL_URL_PREFIX, suffix)); } return patterns.toArray(new String[patterns.size()]); }
CamundaBpmProperties { static String[] initDeploymentResourcePattern() { final Set<String> suffixes = new HashSet<>(); suffixes.addAll(Arrays.asList(DEFAULT_DMN_RESOURCE_SUFFIXES)); suffixes.addAll(Arrays.asList(DEFAULT_BPMN_RESOURCE_SUFFIXES)); suffixes.addAll(Arrays.asList(DEFAULT_CMMN_RESOURCE_SUFFIXES)); final Set<String> patterns = new HashSet<>(); for (String suffix : suffixes) { patterns.add(String.format("%s**/*.%s", CLASSPATH_ALL_URL_PREFIX, suffix)); } return patterns.toArray(new String[patterns.size()]); } }
CamundaBpmProperties { static String[] initDeploymentResourcePattern() { final Set<String> suffixes = new HashSet<>(); suffixes.addAll(Arrays.asList(DEFAULT_DMN_RESOURCE_SUFFIXES)); suffixes.addAll(Arrays.asList(DEFAULT_BPMN_RESOURCE_SUFFIXES)); suffixes.addAll(Arrays.asList(DEFAULT_CMMN_RESOURCE_SUFFIXES)); final Set<String> patterns = new HashSet<>(); for (String suffix : suffixes) { patterns.add(String.format("%s**/*.%s", CLASSPATH_ALL_URL_PREFIX, suffix)); } return patterns.toArray(new String[patterns.size()]); }  }
CamundaBpmProperties { static String[] initDeploymentResourcePattern() { final Set<String> suffixes = new HashSet<>(); suffixes.addAll(Arrays.asList(DEFAULT_DMN_RESOURCE_SUFFIXES)); suffixes.addAll(Arrays.asList(DEFAULT_BPMN_RESOURCE_SUFFIXES)); suffixes.addAll(Arrays.asList(DEFAULT_CMMN_RESOURCE_SUFFIXES)); final Set<String> patterns = new HashSet<>(); for (String suffix : suffixes) { patterns.add(String.format("%s**/*.%s", CLASSPATH_ALL_URL_PREFIX, suffix)); } return patterns.toArray(new String[patterns.size()]); }  static String getUniqueName(String name); String getProcessEngineName(); void setProcessEngineName(String processEngineName); String getHistoryLevel(); void setHistoryLevel(String historyLevel); String getHistoryLevelDefault(); void setHistoryLevelDefault(String historyLevelDefault); boolean isAutoDeploymentEnabled(); void setAutoDeploymentEnabled(boolean autoDeploymentEnabled); String[] getDeploymentResourcePattern(); void setDeploymentResourcePattern(String[] deploymentResourcePattern); String getDefaultSerializationFormat(); void setDefaultSerializationFormat(String defaultSerializationFormat); URL getLicenseFile(); void setLicenseFile(URL licenseFile); MetricsProperty getMetrics(); void setMetrics(MetricsProperty metrics); DatabaseProperty getDatabase(); void setDatabase(DatabaseProperty database); EventingProperty getEventing(); void setEventing(EventingProperty eventing); JpaProperty getJpa(); void setJpa(JpaProperty jpa); JobExecutionProperty getJobExecution(); void setJobExecution(JobExecutionProperty jobExecution); WebappProperty getWebapp(); void setWebapp(WebappProperty webapp); AuthorizationProperty getAuthorization(); void setAuthorization(AuthorizationProperty authorization); GenericProperties getGenericProperties(); void setGenericProperties(GenericProperties genericProperties); AdminUserProperty getAdminUser(); void setAdminUser(AdminUserProperty adminUser); FilterProperty getFilter(); void setFilter(FilterProperty filter); String getIdGenerator(); void setIdGenerator(String idGenerator); Boolean getJobExecutorAcquireByPriority(); void setJobExecutorAcquireByPriority(Boolean jobExecutorAcquireByPriority); Integer getDefaultNumberOfRetries(); void setDefaultNumberOfRetries(Integer defaultNumberOfRetries); boolean isEnabled(); void setEnabled(boolean enabled); Boolean getGenerateUniqueProcessEngineName(); void setGenerateUniqueProcessEngineName(Boolean generateUniqueProcessEngineName); Boolean getGenerateUniqueProcessApplicationName(); void setGenerateUniqueProcessApplicationName(Boolean generateUniqueProcessApplicationName); @Override String toString(); }
CamundaBpmProperties { static String[] initDeploymentResourcePattern() { final Set<String> suffixes = new HashSet<>(); suffixes.addAll(Arrays.asList(DEFAULT_DMN_RESOURCE_SUFFIXES)); suffixes.addAll(Arrays.asList(DEFAULT_BPMN_RESOURCE_SUFFIXES)); suffixes.addAll(Arrays.asList(DEFAULT_CMMN_RESOURCE_SUFFIXES)); final Set<String> patterns = new HashSet<>(); for (String suffix : suffixes) { patterns.add(String.format("%s**/*.%s", CLASSPATH_ALL_URL_PREFIX, suffix)); } return patterns.toArray(new String[patterns.size()]); }  static String getUniqueName(String name); String getProcessEngineName(); void setProcessEngineName(String processEngineName); String getHistoryLevel(); void setHistoryLevel(String historyLevel); String getHistoryLevelDefault(); void setHistoryLevelDefault(String historyLevelDefault); boolean isAutoDeploymentEnabled(); void setAutoDeploymentEnabled(boolean autoDeploymentEnabled); String[] getDeploymentResourcePattern(); void setDeploymentResourcePattern(String[] deploymentResourcePattern); String getDefaultSerializationFormat(); void setDefaultSerializationFormat(String defaultSerializationFormat); URL getLicenseFile(); void setLicenseFile(URL licenseFile); MetricsProperty getMetrics(); void setMetrics(MetricsProperty metrics); DatabaseProperty getDatabase(); void setDatabase(DatabaseProperty database); EventingProperty getEventing(); void setEventing(EventingProperty eventing); JpaProperty getJpa(); void setJpa(JpaProperty jpa); JobExecutionProperty getJobExecution(); void setJobExecution(JobExecutionProperty jobExecution); WebappProperty getWebapp(); void setWebapp(WebappProperty webapp); AuthorizationProperty getAuthorization(); void setAuthorization(AuthorizationProperty authorization); GenericProperties getGenericProperties(); void setGenericProperties(GenericProperties genericProperties); AdminUserProperty getAdminUser(); void setAdminUser(AdminUserProperty adminUser); FilterProperty getFilter(); void setFilter(FilterProperty filter); String getIdGenerator(); void setIdGenerator(String idGenerator); Boolean getJobExecutorAcquireByPriority(); void setJobExecutorAcquireByPriority(Boolean jobExecutorAcquireByPriority); Integer getDefaultNumberOfRetries(); void setDefaultNumberOfRetries(Integer defaultNumberOfRetries); boolean isEnabled(); void setEnabled(boolean enabled); Boolean getGenerateUniqueProcessEngineName(); void setGenerateUniqueProcessEngineName(Boolean generateUniqueProcessEngineName); Boolean getGenerateUniqueProcessApplicationName(); void setGenerateUniqueProcessApplicationName(Boolean generateUniqueProcessApplicationName); @Override String toString(); static final String PREFIX; static final String UNIQUE_ENGINE_NAME_PREFIX; static final String UNIQUE_APPLICATION_NAME_PREFIX; static final String[] DEFAULT_BPMN_RESOURCE_SUFFIXES; static final String[] DEFAULT_CMMN_RESOURCE_SUFFIXES; static final String[] DEFAULT_DMN_RESOURCE_SUFFIXES; }