PANTHEON™ Help

 Категории
 PANTHEON Help - Welcome
[Collapse]PANTHEON
 [Collapse]PANTHEON упатства
  [Collapse]Guide for PANTHEON
   [Expand]Settings
   [Expand]Orders
   [Expand]Goods
   [Expand]Manufacturing
   [Expand]POS
   [Expand]Service
   [Expand]Financials
   [Expand]Personnel
   [Expand]Analytics
   [Expand]Desktop
   [Expand]Помощ
   [Expand]Старите продукти
   [Expand]Messages and Warnings
   [Collapse]Additional programs
     Добавяне на потребители - Добавяне на потребители в базата данни
    [Expand]PANTHEON Web Services (PAWS)
    [Expand]Datalab CHRONOS
    [Expand]Datalab OTOS
    [Expand]Datalab ATENA
    [Expand]Datalab Migrator
     Post-Migration Wizard
    [Expand]mobilni Potni Nalogi
    [Expand]Pantheon LX/LT
     Pantheon SHAKE
    [Collapse]PANTHEON Automation Server (PAAS)
     [Expand]Meaning and operation of PAAS
     [Expand]PAAS installation and testing
     [Expand]Description of REST methods for processing tasks
      PAAS Multi server support
      Alternative to REST API
      Default values and PAAS.exe options
      PAAS upgrade
  [Expand]Ръководство за PANTHEON Търговия
  [Expand]Ръководство за PANTHEON Vet
  [Expand]Ръководство за PANTHEON Фермерство
 [Collapse]PANTHEON потребителски ръководства
  [Expand]Ръководство за потребителя за PANTHEON
  [Expand]Ръководство за потребителя за PANTHEON Retail
  [Expand]Ръководство за потребителя за PANTHEON Vet
  [Expand]Ръководство за потребителя за PANTHEON Farming
[Collapse]PANTHEON Web
 [Collapse]PANTHEON Web Guides
  [Expand]Ръководство за PANTHEON Web Light
  [Expand]Ръководство за PANTHEON Уеб Терминал
  [Expand]Ръководство за PANTHEON Web Legal
  [Expand]Архив на стари продукти
 [Collapse]PANTHEON Web User Manuals
  [Expand]Започване на PANTHEON Web
  [Expand]User Manual for PANTHEON Web Light
   Ръководство за потребителя за PANTHEON Web Terminal
  [Expand]Ръководство за потребителя за PANTHEON Web Legal
  [Expand]Архив на стари продукти
[Collapse]PANTHEON Гранула
 [Collapse]Ръководство за PANTHEON Гранули
  [Expand]Гранула за служители
  [Expand]Пътни заповеди Гранула
  [Expand]Гранула за документи и задачи
  [Expand]Гранула Табло
  [Expand]Гранула за B2B поръчки
  [Expand]Гранула за обслужване на клиенти
  [Expand]Инвентаризация на дълготрайни активи
  [Expand]Гранула за складови наличности
 [Collapse]PANTHEON Granules
   Започване
   Using PANTHEON Granules at Tecta, a fictional company
  [Expand]PANTHEON Granules and activation
  [Expand]PANTHEON Granule Work records
  [Expand]PANTHEON Granule Travel orders
  [Expand]PANTHEON Granule Documents and Tasks
  [Expand]PANTHEON Granule B2B orders
  [Expand]PANTHEON Granule Dashboard
  [Expand]Полеви сервизен гранул
   PANTHEON Granules - FAQ
  [Expand]Инвентаризация на дълготрайни активи
  [Expand]Инвентаризация на склада Гранула
   Архив
[Expand]Потребителски сайт

Load Time: 374,9728 ms
"
  1000001317 | 220991 | 407826 | Localized
Label

Description of REST methods for processing tasks

89213.gif010380.gif010379.gif010381.gif010411.gif010382.gif010383.gif

 

PAAS also works as a web service. You can access methods for getting reports, for work with the document system and for managing workflows.

In this chapter, you can find the following REST methods for processing tasks and their descriptions:

1. Creating a new processing task
2. Get existing task status
3. Download a single resulting file

 

1. Creating a new processing task

POST /api/v1/:database/process/:command

Parameters:

  • database: SQL Server database where task should be run;
  • command: command to execute on PAAS;
  • body: should contain JSON parameters for new task.

Returns: JSON object with two fields;

  • task: numeric task ID
  • runner: string task token

Examples of creating a new processing task:

This method schedules a task for execution and returns immediately. The parameters :command and :body are stored in ‘tPA_PAASProcessing’ table as sent.



The actual execution is performed by ‘PANTHEON.exe’. PAAS will start PANTHEON if it is not already running, or notify from an already running PANTHEON program that there is an available task to run.

2. Get existing task status

GET /api/v1/:database/status/:task?guid=:runner

Parameters: 

Database: SQL Server database where task is task: task ID is created into file; guid 'runner' is received when task was created.

Returns status from ‘tPA_PAASProcessing’ table for the given task:

{ "id": numeric task ID (anQId) "status": num status (anStatus): 0: pending, 102: processing, 200: done OK, 400: Err "lane": string name of priority lane where task is executing (unused for now) "command": string requested task command (Printing, Workflow, ...) (acCommand) "result": JSON with results. returned from Pantheon (acResult) when task is done

{ "guid": guid of task processor (unused for now) when status is OK "files": array of strings ["full\\path1\\to_file1.ext", full\\path1\\to_file1.ext"] "error": error string description if there was an error } }


Example of Get existing task status

 

3. Download a single resulting file

GET /api/v1/:database/download/:task/:file?guid=:guid

Parameters:

  • Database: SQL Server database where task was run and finished with OK.
  • Task: task ID of created file.
  • File: numeric order of file from files array in status > result > files.
  • Guid: ‘runner’ received when task was created.

Returns: File contents.


Example of downloading a single resulting file

 

Related topics:

 

 

Оценете темата
Темата беше ли ви полезна?
Коментар
Вашият коментар ще бъде видим и във форума!