Class: MigrateProcesses

MigrateProcesses()

Migrate processes related responses to the latest version.

Constructor

new MigrateProcesses()

Source:

Methods

(static) convertProcessesToLatestSpec(response, version) → {object}

Converts a `GET /process` response to the latest version. Always returns a deep copy of the input object.
Parameters:
Name Type Description
response object The response to convert
version string Version number of the API, which the response conforms to
Source:
Returns:
Type
object

(static) convertProcessToLatestSpec(process, version) → {object}

Converts a single process to the latest version. Always returns a deep copy of the input object.
Parameters:
Name Type Description
process object The process to convert
version string Version number of the API, which the process conforms to
Source:
Returns:
Type
object