Search in sources :

Example 1 with TaskEvent

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;
}
Also used : TaskEvent(io.zeebe.broker.task.data.TaskEvent)

Example 2 with TaskEvent

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;
}
Also used : TaskEvent(io.zeebe.broker.task.data.TaskEvent)

Example 3 with TaskEvent

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;
}
Also used : TaskEvent(io.zeebe.broker.task.data.TaskEvent)

Example 4 with TaskEvent

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;
}
Also used : TaskEvent(io.zeebe.broker.task.data.TaskEvent)

Example 5 with TaskEvent

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;
}
Also used : TaskEvent(io.zeebe.broker.task.data.TaskEvent)

Aggregations

TaskEvent (io.zeebe.broker.task.data.TaskEvent)12 TopicSubscriberEvent (io.zeebe.broker.event.processor.TopicSubscriberEvent)1 TopicSubscriptionEvent (io.zeebe.broker.event.processor.TopicSubscriptionEvent)1 TypedEvent (io.zeebe.broker.logstreams.processor.TypedEvent)1 TopicEvent (io.zeebe.broker.system.log.TopicEvent)1 DeploymentEvent (io.zeebe.broker.workflow.data.DeploymentEvent)1 WorkflowInstanceEvent (io.zeebe.broker.workflow.data.WorkflowInstanceEvent)1 Test (org.junit.Test)1