Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Changes for version 1.1.0

...

Example of Universal Task for decompressing file with 7zip(custom path) Archiver Tool.

Task Output

Output Only Fields

The output field for this Universal Extension is described in the following table.

FieldTypeDescription
Archived ProcessedTextArchive name and path

Exit Codes

The exit codes for this Universal Extension are described in the following table.

Exit Code

Status Classification Code

Status Classification Description

Status Description

0

SUCCESS

Successful Execution

SUCCESS: Successful Task execution

1

FAIL

Failed Execution

FAIL: < Error Description >11

20

DATA_VALIDATION_ERROR

Bad input fields validation

DATA_VALIDATION_ERROR: Some of the input fields cannot be validated.

See STDERR for more details

21

FAIL

Warning (Non fatal error(s)).

For example, one or more files were locked by some other application, so they were not compressed.

FAIL: Warning

1222

FAIL

Fatal error

FAIL: Fatal error

1727

FAIL

Command line error

FAIL: Command line error

1828

FAIL

Not enough memory for operation

FAIL: Not enough memory for operation

20

DATA_VALIDATION_ERROR

Bad input fields validation

DATA_VALIDATION_ERROR: Some of the input fields cannot be validated.

See STDERR for more details

255

FAIL

User stopped the process

FAIL: User stopped the process

...

Code Block
languagetext
linenumberstrue
{
    "exit_code": 0,

   "status_description": "SUCCESS: Task executed successfully.",

   "changed": true,
    "invocation": {

       "extension": "1.0.0"ue-util-compress",
        "version": "ue-util-compress"1.1.0",

       "fields": {
            "action": "compress",
            "algorithm": "zip",
  
         "zip_compression_level": 51,
  
         "source_file": "/tests/home/ue-dev/lindev71p376v1/data/tmp/7zip/test_file.txtTC1",
 
          "archive": "/tests/test_archive.zip"null,
            "file": null,
  
         "overwrite": false,
 
          "encryption": "AES256None",
 
          "credentials": "********",
  null,
         "delete_original": truefalse,
  
         "archiver_tool": "7zz",
            "archiver_path": null,
 
          "additional_switches": ""
 null
      }

   },
    "result": {

       "archive_processed": {
            "archiver": "7-Zip (z) 21.06 (x64) ",
            "size_expanded": 1073741824,
            "size_compressed": 1260173
        }
"/home/ue-dev/lindev71p376v1/data/tmp/7zip/test_TC1.zip"
   }
}


Document References

This document references the following documents:

...