Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 17 Next »

If you have a problem understanding how the action works, check: ActionConditional executionComponents parameters

Basic information

Category: eSignature

Action location: Button, Table button

Available from version: 1.0.0

Description

The action places an electronic signature on documents using a certificate using the Szafir module containing cryptographic tools. The resulting signature files are cumulative signatures, i.e. they contain signed data that is attached to the signature file and encoded using Base64. The action, when signing more than one document, does not stop its operation when it encounters an error with a specific document on the side of the Szafir application - after completing the signing operation, the displayed summary window shows information on the number of correctly signed documents and those that could not be signed. Signed documents are saved in the system archive.

Prerequisites

For the action to work properly, download and install:

Action call-up

Leaving an empty conditional field is equal to setting it to "true".

Action location

From version

Conditional execution parameter action

Action call-up condition

Button

1.0.0

Activates action

Pressing the button

Table button1.0.0Activates actionPressing the button
Configuration parameters
Parameter nameFrom versionDescriptionParemeter typeDefault valueField typeComments and restrictions
Files download source*1.0.0

Specifies the source from which the files to be signed are to be downloaded. There are 3 options:

  1. Process - documents attached to the process are downloaded.
  2. Archive - documents are downloaded from the archive, from a specified class of documents.
  3. File identifiers from the archive - specified files by identifier are downloaded from the archive.
Text Uneditable drop-down list
Displayed valuePassed value
ProcessPROCESS
ArchiveARCHIVE
File identifiers from the archiveFILEIDS

If you select "Process" or "Archive", the latest version of the document will be downloaded.

Document classes [Process]1.0.0The names of the classes of documents from which the documents are retrieved.Text values array Uneditable drop-down listIn case of an empty document class names table (parameter not completed), all documents attached to the process will be downloaded.
Document class [Archive]*1.0.0Name of the document class from which the documents are retrieved.Text Uneditable drop-down list 
Index name [Read]1.0.0

Optional filtering by indexes of the selected document class. This parameter specifies the name of the index.

Text values array Uneditable drop-down list / editable fieldList of indexes to choose from after selecting a specific class of documents. If a variable or function is used in the Document class [Archive] parameter, the field of this parameter becomes an editable field.
Index value [Read]1.0.0Optional filtering by indexes of the selected document class. This parameter specifies the index value.Text values array Editable field 
File identifiers1.0.0IDs of files to be downloaded from the archive.Integer values array Editable field 
Mode of operation*1.0.0Defines how the Szafir application works. The "Szafir window" mode enables the creation of a signature using the native graphical user interface. On the other hand, the "Window with PIN code and optional certificate selection" mode performs the signing with the use of a dialog in which the PIN for the cryptographic device and optionally the certificate file are entered.Text Uneditable drop-down list
Displayed valuePassed value
Szafir windowSZAFIR_WINDOW
Window with PIN code and optional certificate selectionPIN_AND_CERTIFICATE_WINDOW

Selecting the "Szafir window" value results in the appearance of the Certificate parameter, and selecting "Window with PIN code and optional certificate selection" - the Certificate parameter and the User selects certificate.

Certificate*1.0.0

File name containing the certificate configuration, which comes from the Plugin Configuration Manager (PCM) panel. The parameter presents a list of all created files with the certificate configuration.

Text Uneditable drop-down list 
User selects certificate1.0.0Specifies whether the user on the form can select the certificate file from the Plugin Configuration Manager (PCM) panel. The selection is possible from the level of the dialog box that appears while the Szafir application is running and includes the certificates specified in the Available certificates parameter.BooleanNieEditable fieldSetting the parameter to "Yes" causes the appearance of the Available certificates parameter and hides the Certificate parameter, while setting the parameter to "No" leaves the Certificate visible.
Available certificates1.0.0It defines the files with the certificate that can be selected by the user on the form from the level of the dialog box. The parameter presents a list of all created files with the certificate configuration.Text values array Uneditable drop-down list 
Signature version*1.0.0

Specifies a signature version.

 

More information...

Text Uneditable drop-down list
Displayed valuePassed value
BESBES
TT
LTV/ALTV_A
Signature format*1.0.0

Specifies the signature format. The parameter presents the list of available formats depending on the selected signature version.

 

More information...

Text Uneditable drop-down list
  • BES
Displayed valuePassed value
ASIC-S-CAdES-BESASIC_S_CADES_BES
ASIC-S-XAdES-BESASIC_S_XADES_BES
CAdES-BESCADES_BES
EPO-XAdES-BESEPO_XADES_BES
PAdES-BESPADES_BES
PKCS#7PKCS7
XAdES-BESXADES_BES
  • T
Displayed valuePassed value
ASIC-S-CAdES-TASIC_S_CADES_T
ASIC-S-XAdES-TASIC_S_XADES_T
CAdES-TCADES_T
EPO-XAdES-TEPO_XADES_T
PAdES-TPADES_T
PKCS#7 with TimePKCS7_WITH_TIME
PKCS#7-TPKCS7_T
XAdES-TXADES_T
  • LTV/A
Displayed valuePassed value
EPO-XAdES-AEPO_XADES_A
EPO-XAdES-A-REFRESHEPO_XADES_A_REFRESH
PAdES-LTVPADES_LTV
PAdES-LTV-REFRESHPADES_LTV_REFRESH
XAdES-AXADES_A
XAdES-A-REFRESHXADES_A_REFRESH
Debug mode1.0.0Opens the console window of the SzafirHost application while the action is running.BooleanNoEditable field 
Incorrectly processed fileIds1.0.0Returns the table of identifiers of files with an error while inserting the signature.Variable Editable field 
Incorrectly processed file names1.0.1Returns the table of namesof files with an error while inserting the signature.Variable Editable field 
Error descriptions1.0.0Returns an array of error descriptions for incorrectly processed files from the Incorrectly processed fileIds and Incorrectly processed file names parameter.Variable Editable field 
Save as new version*1.0.0If set to "Yes", the signature file will be saved as a new version of the input document. If set to "No", the signature file will be saved in the specified document class and indices as a new document.BooleanYesEditable field 
Document class [Save]1.0.0The name of the document class where the file with the signature will be saved.Text Uneditable drop-down list 
Index name [Save]1.0.0The name of the index from the selected document class.Text values array Uneditable drop-down list / editable fieldList of indexes to choose from after selecting a specific class of documents. If a variable or function is used in the Document class [Save] parameter, the field of this parameter becomes an editable field.
Index value [Save]1.0.0Index value from the selected document class.Text values array Editable field 
Add document to process1.0.0Attaches a signature file to the process.BooleanNoEditable field 
Execute actions in the document class1.0.0It calls actions which have the source of action set to "Add new document in archive".BooleanNoEditable field 

Parametr*- mandatory field

Configuration example

Example of operation
 Mode of operation "Window with PIN code and optional certificate selection"

An example of operation based on the action configuration below.

 

One document with the given index values is signed and its content with the signature will be saved as a new version of the document. After clicking on the button on the form under which the action is defined, a dialog box for entering the PIN code and selecting the certificate will open. In the "Certificate" field, you can choose from two certificate configuration items based on the "Available certificates" parameter configured in this action.

 

After approval, the document is signed. In this mode, the native Szafir application window does not open. The signature operation is entirely based on the contents of the certificate configuration file. After the action is completed, the signature operation summary window appears. During the action, the console of the SzafirHost application is launched.

Change log

1.0.0

  • Adding a component
Package with a sample form using the action

  • No labels