Skip to content

Commit

Permalink
adding uniqueId and type for node definition
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagodolphine committed Nov 14, 2023
1 parent f744015 commit c6eda2f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@
public interface KogitoNode extends Node {

NodeContainer getParentContainer();

String getUniqueId();
}
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ private List<NodeDefinition> getNodesDefinitions(Process<?> p) {
.map(node -> NodeDefinition.builder()
.setId(String.valueOf(node.getId()))
.setName(node.getName())
.setType(node.getNodeType().name())
.setUniqueId(node.getNodeUniqueId())
.setType(node.getClass().getSimpleName())
.setUniqueId(node.getUniqueId())
.setMetadata(node.getMetaData())
.build())
.collect(Collectors.toList());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import java.util.Collection;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.kie.kogito.event.DataEvent;
import org.kie.kogito.event.EventPublisher;
import org.slf4j.Logger;
Expand All @@ -31,6 +30,8 @@
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Component;

import com.fasterxml.jackson.databind.ObjectMapper;

@Component
public class KafkaEventPublisher implements EventPublisher {

Expand Down

0 comments on commit c6eda2f

Please sign in to comment.