io.camunda.exporter.handlers.FormHandler Maven / Gradle / Ivy
/*
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under
* one or more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Licensed under the Camunda License 1.0. You may not use this file
* except in compliance with the Camunda License 1.0.
*/
package io.camunda.exporter.handlers;
import io.camunda.exporter.cache.ExporterEntityCache;
import io.camunda.exporter.cache.form.CachedFormEntity;
import io.camunda.exporter.store.BatchRequest;
import io.camunda.webapps.schema.entities.tasklist.FormEntity;
import io.camunda.zeebe.protocol.record.Record;
import io.camunda.zeebe.protocol.record.ValueType;
import io.camunda.zeebe.protocol.record.intent.FormIntent;
import io.camunda.zeebe.protocol.record.value.deployment.Form;
import java.nio.charset.StandardCharsets;
import java.util.List;
public class FormHandler implements ExportHandler {
private final String indexName;
private final ExporterEntityCache formCache;
public FormHandler(
final String indexName, final ExporterEntityCache formCache) {
this.indexName = indexName;
this.formCache = formCache;
}
@Override
public ValueType getHandledValueType() {
return ValueType.FORM;
}
@Override
public Class getEntityType() {
return FormEntity.class;
}
@Override
public boolean handlesRecord(final Record
© 2015 - 2025 Weber Informatics LLC | Privacy Policy