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();
}
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();
}
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();
}
Aggregations