in kogito-springboot-examples/flexible-process-springboot/src/main/java/org/kie/kogito/flexible/example/model/SupportCase.java [40:52]
public SupportCase(SupportCase supportCase) {
this.customer = supportCase.customer;
this.product = new Product(supportCase.product);
this.engineer = supportCase.engineer;
this.state = supportCase.state;
this.description = supportCase.description;
if (supportCase.comments != null) {
this.comments = supportCase.comments.stream().map(Comment::new).collect(Collectors.toList());
}
if (supportCase.questionnaire != null) {
this.questionnaire = new Questionnaire(supportCase.questionnaire);
}
}