IArtifactStatusAddin

Add-in responsible for inferring the status of a given artifact.

Trigger Event(s): Document submission
Table 1. IArtifactStatusAddin interface methods declaration and description
Method Description

isSubmittable

Determines if a given artifact is ready to be submitted

Parameter

Type

Description

artifactDetails

ArtifactDetails

Context of the artifact (artifact variables and properties) with read-only access

Returns

Type

Description

-

-

-

eSign brings an out-of-the box implementation for this interface that is described below
Table 2. Available implementations for IArtifactStatusAddin
Implementation Default Description

DefaultArtifactStatusAddin

Defines that a document is submittable only when all mandatory fields are filled

Configuration

First the add-in needs to be loaded as an extension,

"_comment" : "List all the extensions to be used",
"extensions" :
[
	...

	{
        "name": "artifact-status",
        "class": "novabase.connect.paperless.esign.core.extensions.impl.DefaultArtifactStatusAddin"
    },

	...
]

Optionally, set as the default add-in by establishing the class path for the type "artifact_status"

"_comment" : "List all the default addins to be used",
"addins" :
[
    ...

    {
        "type": "artifact_status",
        "extension": "artifact-status"
    },

    ...
]