blob: 8d2f513ab60a77eebc203521a74af8aa624c7cc8 [file]
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
from nifiapi.flowfiletransform import FlowFileTransform, FlowFileTransformResult
class FailureWithAttributes(FlowFileTransform):
def __init__(self, **kwargs):
pass
def transform(self, context, flowFile):
return FlowFileTransformResult("failure", attributes={"error.message": "Error"})