use of org.kie.kogito.tracing.typedvalue.UnitValue in project kogito-runtimes by kiegroup.
the class TraceEventTest method getTraceOutputValue.
private TraceOutputValue getTraceOutputValue(int id) {
String valueType = "type-" + id;
TypedValue value = new UnitValue(valueType);
Map<String, TypedValue> inputs = Collections.singletonMap(valueType, value);
List<Message> messages = IntStream.range(id + 1, id + 3).mapToObj(DecisionMessageTest::getDecisionMessage).collect(Collectors.toList());
return new TraceOutputValue("id-" + id, "name-" + id, "status-" + id, value, inputs, messages);
}
Aggregations