Search in sources :

Example 1 with CreateTaskCommandImpl

use of io.zeebe.client.task.impl.CreateTaskCommandImpl in project zeebe by zeebe-io.

the class TaskSubscriptionTest method createTaskOnPartition.

protected void createTaskOnPartition(ZeebeClient client, String topic, int partition, String type) {
    final CreateTaskCommandImpl createTaskCommand = (CreateTaskCommandImpl) client.tasks().create(topic, type);
    createTaskCommand.getEvent().setPartitionId(partition);
    createTaskCommand.execute();
}
Also used : CreateTaskCommandImpl(io.zeebe.client.task.impl.CreateTaskCommandImpl)

Example 2 with CreateTaskCommandImpl

use of io.zeebe.client.task.impl.CreateTaskCommandImpl in project zeebe by zeebe-io.

the class TopicSubscriptionTest method createTaskOnPartition.

protected void createTaskOnPartition(String topic, int partition) {
    final CreateTaskCommandImpl createTaskCommand = (CreateTaskCommandImpl) client.tasks().create(topic, "baz");
    createTaskCommand.getEvent().setPartitionId(partition);
    createTaskCommand.execute();
}
Also used : CreateTaskCommandImpl(io.zeebe.client.task.impl.CreateTaskCommandImpl)

Example 3 with CreateTaskCommandImpl

use of io.zeebe.client.task.impl.CreateTaskCommandImpl in project zeebe by zeebe-io.

the class SubscriptionClusteredTest method createTaskOnPartition.

protected void createTaskOnPartition(String topic, int partition) {
    final CreateTaskCommandImpl createTaskCommand = (CreateTaskCommandImpl) client.tasks().create(topic, "baz");
    createTaskCommand.getEvent().setPartitionId(partition);
    createTaskCommand.execute();
}
Also used : CreateTaskCommandImpl(io.zeebe.client.task.impl.CreateTaskCommandImpl)

Aggregations

CreateTaskCommandImpl (io.zeebe.client.task.impl.CreateTaskCommandImpl)3