All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.camunda.community.migration.processInstance.service.ProcessDefinitionMigrationHintService Maven / Gradle / Ivy

There is a newer version: 0.10.3
Show newest version
package org.camunda.community.migration.processInstance.service;

import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import org.camunda.community.migration.processInstance.dto.Camunda8ProcessDefinitionData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProcessDefinitionMigrationHintService {
  private final Set rules;

  @Autowired
  public ProcessDefinitionMigrationHintService(Set rules) {
    this.rules = rules;
  }

  public List getMigrationHints(Camunda8ProcessDefinitionData data) {
    return rules.stream()
        .map(rule -> rule.createHint(data))
        .filter(Optional::isPresent)
        .map(Optional::get)
        .collect(Collectors.toList());
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy