PM4Py-WS Log Management Services

PM4Py-WS Log Management Services

(POST JSON) /uploadLog

Permits to upload a XES log to the services.

URI parameters:

session => the ID of the session that the user can use to communicate with the server

POST content (JSON): a JSON with the following properties:

  • filename: string that represents the name of such log
  • base64: base64 encoded string that represents the content of the log

Returns:

If the session is valid and the user has the permission to upload a log in the system, the log is loaded in the system and a JSON is returned:

  • status: the status of the operation (OK)

Otherwise, a JSON containing the following values:

  • status: the status of the operation (FAIL)
(GET) /downloadCsvLog

URI parameters:

session => the ID of the session that the user can use to communicate with the server

process => the name of the process that is downloaded

Returns:

If the session is valid, the user has visibility on such log and has the permission to download the log, then a JSON containing:

content => the content of the log in CSV format

Otherwise a JSON containing:

content => empty

(GET) /downloadXesLog

URI parameters:

session => the ID of the session that the user can use to communicate with the server

process => the name of the process that is downloaded

Returns:

If the session is valid, the user has visibility on such log and has the permission to download the log, then a JSON containing:

content => the content of the log in XES format

Otherwise a JSON containing:

content => empty