PANTHEON™ Help

 Toc
 PANTHEON Ajutor - Bun venit
[Collapse]PANTHEON
 [Collapse]Ghiduri pentru PANTHEON
  [Expand]Ghid pentru PANTHEON
  [Expand]Ghid pentru PANTHEON Retail
  [Expand]Ghid pentru PANTHEON Vet
  [Expand]Ghid pentru PANTHEON Fermă
 [Collapse]Manuale de utilizare pentru PANTHEON
  [Expand]Manual de utilizare pentru PANTHEON
  [Expand]Manual de utilizare pentru PANTHEON Retail
  [Expand]Manual de utilizare pentru PANTHEON Vet
  [Expand]Manual de utilizare pentru PANTHEON Farming
[Collapse]PANTHEON Web
 [Collapse]Ghiduri pentru PANTHEON Web
  [Expand]Ghid pentru PANTHEON Web Light
  [Expand]Ghid pentru Terminalul Web PANTHEON
  [Expand]Ghid pentru PANTHEON Web Legal
 [Collapse]Manuale de utilizare pentru PANTHEON Web
  [Expand]Începerea PANTHEON Web
  [Expand]Manual de utilizare pentru PANTHEON Web Light
  [Expand]Manual de utilizare pentru terminalul web PANTHEON
  [Expand]Manual de utilizare pentru PANTHEON Web Legal
[Collapse]PANTHEON Granule
 [Collapse]Ghiduri pentru Granulele PANTHEON
  [Expand]Granul de personal
  [Expand]Granulă Ordine de Călătorie
  [Expand]Documente și Sarcini Granulă
  [Expand]Tabloul de bord Granule
  [Expand]Comenzi B2B Granule
  [Expand]Granul de Serviciu pe Teren
  [Expand]Granul Inventar Active Fixe
  [Expand]Granul de Inventar al Depozitului
 [Collapse]Manuale de utilizare pentru granulele PANTHEON
  [Expand]Începerea
  [Expand]Granul Personal
  [Expand]Comenzi de Călătorie Granule
  [Expand]Documente și Sarcini Granulă
  [Expand]Comenzi B2B Granule
  [Expand]Tabloul de bord Granule
  [Expand]Serviciul de teren Granule
  [Expand]Granul Inventar Active Fixe
  [Expand]Inventar de Magazin Granule
[Expand]Site utilizator

Load Time: 875,013 ms
"
  6613 | 1 | |
Label


Opis REST metode za procesiranje zadatka

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

 

PAAS također radi kao web usluga. Možete pristupiti metodama za dobivanje izvješća, za rad sa sustavom dokumenata i za upravljanje poslovnim procesima (WF).

U ovom poglavlju možete pronaći sljedeće REST metode i njihove opise:

1. Izrada novog zadatka 
2. Dohvatite statusa postojećeg zadatka
3. Preuzmanje datoteke sa rezultatom

 

1. Izrada novog zadatka

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

Primjer kreiranja novog zadatka:

 

000001.gif Ova metoda planira izvršenje zadatka i odmah se vraća. Parameteri :command and :body su napravljeni u  ‘tPA_PAASProcessing’ tablici kao poslani.


Stvarno izvršenje izvodi "PANTHEON.exe". PAAS će pokrenuti PANTHEON ako već nije pokrenut ili obavijestiti iz već pokrenutog programa PANTHEON da postoji dostupan zadatak koji treba pokrenuti.

 

2. Dohvat statusa posojećeg zadatka

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 } }


Primjer dohvata statusa postojećeg zadatka

 

3. Preuzimanje datoteke sa rezultatom

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

Parameters:

  • Database: SQL Server database gdje je zadatak pokrenut i završen sa OK.
  • Task: task ID krereirane datoteke.
  • File: numeric order of file from files array in status > result > files.
  • Guid: ‘runner’ received when task was created.

Returns: File contents.


Primjero preuzimanja datoteke sa rezultatom

 

Povezane teme:

 

  

     


Rate this topic
Was this topic usefull?
Comments
Comment will also bo visible in forum!