Package io.zeebe.test.util.record
Class WorkflowInstanceRecordStream
- java.lang.Object
-
- io.zeebe.test.util.stream.StreamWrapper<Record<T>,S>
-
- io.zeebe.test.util.record.ExporterRecordStream<WorkflowInstanceRecordValue,WorkflowInstanceRecordStream>
-
- io.zeebe.test.util.record.WorkflowInstanceRecordStream
-
- All Implemented Interfaces:
AutoCloseable,BaseStream<Record<WorkflowInstanceRecordValue>,Stream<Record<WorkflowInstanceRecordValue>>>,Stream<Record<WorkflowInstanceRecordValue>>
public class WorkflowInstanceRecordStream extends ExporterRecordStream<WorkflowInstanceRecordValue,WorkflowInstanceRecordStream>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.stream.Stream
Stream.Builder<T extends Object>
-
-
Constructor Summary
Constructors Constructor Description WorkflowInstanceRecordStream(Stream<Record<WorkflowInstanceRecordValue>> stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowInstanceRecordStreamfilterRootScope()WorkflowInstanceRecordStreamlimitToWorkflowInstanceCompleted()WorkflowInstanceRecordStreamlimitToWorkflowInstanceTerminated()protected WorkflowInstanceRecordStreamsupply(Stream<Record<WorkflowInstanceRecordValue>> stream)WorkflowInstanceRecordStreamwithBpmnProcessId(String bpmnProcessId)WorkflowInstanceRecordStreamwithElementId(String elementId)WorkflowInstanceRecordStreamwithElementType(BpmnElementType elementType)WorkflowInstanceRecordStreamwithFlowScopeKey(long flowScopeKey)WorkflowInstanceRecordStreamwithVersion(int version)WorkflowInstanceRecordStreamwithWorkflowInstanceKey(long workflowInstanceKey)WorkflowInstanceRecordStreamwithWorkflowKey(long workflowKey)-
Methods inherited from class io.zeebe.test.util.record.ExporterRecordStream
onlyCommandRejections, onlyCommands, onlyEvents, valueFilter, withIntent, withPartitionId, withPosition, withRecordKey, withRecordType, withRejectionReason, withRejectionType, withSourceRecordPosition, withTimestamp, withValueType
-
Methods inherited from class io.zeebe.test.util.stream.StreamWrapper
allMatch, anyMatch, asList, await, close, collect, collect, count, distinct, exists, filter, findAny, findFirst, flatMap, flatMapToDouble, flatMapToInt, flatMapToLong, forEach, forEachOrdered, getFirst, getLast, isParallel, iterator, limit, limit, map, mapToDouble, mapToInt, mapToLong, max, min, noneMatch, onClose, parallel, peek, reduce, reduce, reduce, sequential, skip, skipUntil, sorted, sorted, spliterator, toArray, toArray, unordered
-
-
-
-
Constructor Detail
-
WorkflowInstanceRecordStream
public WorkflowInstanceRecordStream(Stream<Record<WorkflowInstanceRecordValue>> stream)
-
-
Method Detail
-
supply
protected WorkflowInstanceRecordStream supply(Stream<Record<WorkflowInstanceRecordValue>> stream)
- Specified by:
supplyin classStreamWrapper<Record<WorkflowInstanceRecordValue>,WorkflowInstanceRecordStream>
-
withBpmnProcessId
public WorkflowInstanceRecordStream withBpmnProcessId(String bpmnProcessId)
-
withVersion
public WorkflowInstanceRecordStream withVersion(int version)
-
withWorkflowKey
public WorkflowInstanceRecordStream withWorkflowKey(long workflowKey)
-
withWorkflowInstanceKey
public WorkflowInstanceRecordStream withWorkflowInstanceKey(long workflowInstanceKey)
-
withElementId
public WorkflowInstanceRecordStream withElementId(String elementId)
-
withFlowScopeKey
public WorkflowInstanceRecordStream withFlowScopeKey(long flowScopeKey)
-
limitToWorkflowInstanceCompleted
public WorkflowInstanceRecordStream limitToWorkflowInstanceCompleted()
-
limitToWorkflowInstanceTerminated
public WorkflowInstanceRecordStream limitToWorkflowInstanceTerminated()
-
withElementType
public WorkflowInstanceRecordStream withElementType(BpmnElementType elementType)
-
filterRootScope
public WorkflowInstanceRecordStream filterRootScope()
- Returns:
- stream with only records for the workflow instance (i.e. root scope of the instance)
-
-