Skip to content

Add Signature Processor

Ron Shay edited this page Jul 31, 2022 · 2 revisions

Add Signature [addSignature]

This processor adds a hash signature field representing the document.

  • signatureMode - possible values: [FIELDS_NAMES, FIELDS_VALUES, HYBRID]
  • signatureFieldName - name of signature field to add.
  • includeValueFields - list of fields names, these fields values will be added to the signature when SignatureMode is FIELDS_VALUES or HYBRID.

Examples

FIELDS_NAMES

{
    "steps": [
        {
          "addSignature": {
                "config": {
			"signatureFieldName": "doc_signature",
			"signatureMode": "FIELDS_NAMES"
                }
            }
        }
    ]
}

FIELDS_VALUES

{
    "steps": [
        {
            "addSignature": {
                "config": {
			"signatureFieldName": "doc_signature",
			"signatureMode": "FIELDS_VALUES",
			"includeValueFields": ["type", "logger"]
                }
            }
        }
    ]
}

HYBRID

{
    "steps": [
        {
            "addSignature": {
                "config": {
			"signatureFieldName": "doc_signature",
			"signatureMode": "HYBRID",
			"includeValueFields": ["type", "logger"]
                }
            }
        }
    ]
}
Clone this wiki locally