Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
Update annotations and documentation for attribute written by GetOidF…
Browse files Browse the repository at this point in the history
…orPath (#57) (#58)

Co-authored-by: SethLasky <seth.lasky@deciphernow.com>
  • Loading branch information
SethLasky and SethLasky authored Feb 16, 2021
1 parent ebe3c14 commit 41baf54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion doc/GetOidForPath.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ Dynamic Properties allow the user to specify an arbitrary name and value of a pr

### Writes Attributes:

None specified.
| Name | Description |
| --- | --- |
| gmdata.parentoid | The object id of the parent folder created by the processor. |

### State Management:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package com.deciphernow.greymatter.data.nifi.processors
import java.util.concurrent.Executors

import cats.effect.concurrent.Ref
import cats.effect.{ Blocker, ContextShift, IO }
import cats.effect.{Blocker, ContextShift, IO}
import cats.implicits._
import com.deciphernow.greymatter.data.nifi.processors.utils.GetOidForPathUtils
import org.apache.nifi.annotation.behavior.DynamicProperty
import org.apache.nifi.annotation.behavior.{DynamicProperty, WritesAttribute, WritesAttributes}
import org.apache.nifi.expression.ExpressionLanguageScope
import org.http4s.client.JavaNetClientBuilder

Expand All @@ -24,6 +24,7 @@ import org.apache.nifi.processor._
@SeeAlso(Array())
@DynamicProperty(name = "Header Name", value = "Attribute Expression Language", expressionLanguageScope = ExpressionLanguageScope.FLOWFILE_ATTRIBUTES, description = "Send request header with a key matching the Dynamic Property Key and a value created by evaluating the Attribute Expression Language set in the value of the Dynamic Property.")
@ReadsAttributes(Array(new ReadsAttribute(attribute = "path", description = """The path and filename. Only folders in the path will be created. E.g. a value of "X" would result in no folders being created, but for "X/Y" or "X/Y.pdf", a folder named "X" would be created.""")))
@WritesAttributes(Array(new WritesAttribute(attribute = "gmdata.parentoid", description="The status code returned by GM Data when calling the props endpoint.")))
class GetOidForPath extends AbstractProcessor with GetOidForPathUtils {

import scala.collection.JavaConverters._
Expand Down

0 comments on commit 41baf54

Please sign in to comment.