use of io.zeebe.broker.task.data.TaskEvent in project zeebe by zeebe-io.
the class IncidentStreamProcessorTest method taskFailed.
private TaskEvent taskFailed(int retries) {
final TaskEvent event = new TaskEvent();
event.setState(TaskState.FAILED);
event.setRetries(retries);
event.setType(BufferUtil.wrapString("foo"));
return event;
}
use of io.zeebe.broker.task.data.TaskEvent in project zeebe by zeebe-io.
the class TaskInstanceStreamProcessorTest method expireLock.
private TaskEvent expireLock() {
final TaskEvent event = new TaskEvent();
event.setState(TaskState.EXPIRE_LOCK);
event.setType(BufferUtil.wrapString("foo"));
event.setLockOwner(BufferUtil.wrapString("bar"));
return event;
}
use of io.zeebe.broker.task.data.TaskEvent in project zeebe by zeebe-io.
the class TaskInstanceStreamProcessorTest method lock.
private TaskEvent lock(Instant lockTime) {
final TaskEvent event = new TaskEvent();
event.setState(TaskState.LOCK);
event.setType(BufferUtil.wrapString("foo"));
event.setLockOwner(BufferUtil.wrapString("bar"));
event.setLockTime(lockTime.toEpochMilli());
return event;
}
use of io.zeebe.broker.task.data.TaskEvent in project zeebe by zeebe-io.
the class TaskInstanceStreamProcessorTest method complete.
private TaskEvent complete() {
final TaskEvent event = new TaskEvent();
event.setState(TaskState.COMPLETE);
event.setType(BufferUtil.wrapString("foo"));
event.setLockOwner(BufferUtil.wrapString("bar"));
return event;
}
use of io.zeebe.broker.task.data.TaskEvent in project zeebe by zeebe-io.
the class TaskInstanceStreamProcessorTest method create.
private TaskEvent create() {
final TaskEvent event = new TaskEvent();
event.setState(TaskState.CREATE);
event.setType(BufferUtil.wrapString("foo"));
return event;
}
Aggregations