Home Reference Source Repository
import WorkflowJob from 'rodan-client/js/Models/WorkflowJob.js'
public class | source

WorkflowJob

Extends:

backbone~Backbone.ModelBaseModel → WorkflowJob

WorkflowJob.

Method Summary

Public Methods
public

Returns defaults.

public

Returns human-readable descriptive text.

public

Returns UUID of associated Job.

public

initialize(options: object)

Initialize.

public

parse(response: object): object

Override of Backbone.Model.parse.

Inherited Summary

From class BaseModel
public

destroy(options: object)

Override of destroy to allow for generic handling.

public

fetch(options: object)

Override of fetch to allow for generic handling.

public

Returns descriptive string for model.

public

Parses ID out of resource type URL.

public

save(attributes: object, options: object): *

Override of save to allow for generic handling.

public

url(): string

URL override to add trailing slash.

Public Methods

public defaults(): object source

Returns defaults.

Return:

object

object holding default values

public getDescription(): string source

Returns human-readable descriptive text.

Override:

BaseModel#getDescription

Return:

string

'name' and 'job_description' (from associated Job)

public getJobUuid(): string source

Returns UUID of associated Job.

Return:

string

UUID of associated Job

public initialize(options: object) source

Initialize.

Params:

NameTypeAttributeDescription
options object

Backbone.Model options object; 'options.input_ports' (InputPortCollection or associated Backbone.Collection raw-object representation) and 'options.output_ports' (OutputPortCollection or associated Backbone.Collection raw-object representation) must also be provided

public parse(response: object): object source

Override of Backbone.Model.parse. This will populate 'input_ports' and 'output_ports' with associated models.

Params:

NameTypeAttributeDescription
response object

JSON response from server

Return:

object

response object