org.kie.kogito.app.ApplicationProcesses Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of process-usertasks-with-security-springboot
Show all versions of process-usertasks-with-security-springboot
Kogito usertasks orchestration with security enabled on REST api - Spring Boot
package org.kie.kogito.app;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import org.kie.kogito.Model;
import org.kie.kogito.process.Process;
import org.kie.kogito.process.Processes;
@org.springframework.stereotype.Component()
public class ApplicationProcesses implements Processes {
@org.springframework.beans.factory.annotation.Autowired()
java.util.Collection> processes;
private Map> mappedProcesses = new HashMap<>();
@javax.annotation.PostConstruct
public void setup() {
for (Process extends Model> process : processes) {
mappedProcesses.put(process.id(), process);
}
}
public Process extends Model> processById(String processId) {
return mappedProcesses.get(processId);
}
public Collection processIds() {
return mappedProcesses.keySet();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy