Skip to content

Class: Process

Process

new Process()

Create a new instance of Process

Properties:

Name Type Description
author User Contains the author's information.
title String the title of the process
published Date = new Date(); - the published date
cotributor User = new User(); - the contributor
updated Date the updated date
generator String the generator
process Object the process
summary Object the summary of the process (value and type)

Source: Process/Process.js, line 37

See:


Methods

create()

Create a new Process.

Parameters:

Name Type Description
options.onSuccess Resource~onSuccess a callback function called in case of a success
options.onFailure Resource~onFailure a callback function called in case of a failure
options.baseUrl String base URL. If not set the current base URL will be used
options.process String the process xml

Source: Process/Process.js, line 110

See:


generate_xml(options)

generate xml to create/update

Parameters:

Name Type Description
options object options to be used during the call
update Boolean Is this an xml for update
baseUrl String base URL. If not set the current base URL will be used

Source: Process/Process.js, line 248

See:


generateUrl()

Overrides Resource's generateUrl method to return the request url

Source: Process/Process.js, line 66

See:


loadPreset()

Overrides Resource's loadPreset method.

Source: Process/Process.js, line 60

See:


loadSet(rObject)

Overrides Resource's loadSet method to set local variables after request.

Parameters:

Name Type Description
rObject json JSON representation of the loaded data.

Source: Process/Process.js, line 76

See:


update()

Save an existing Process.

Parameters:

Name Type Description
options.onSuccess Resource~onSuccess a callback function called in case of a success
options.onFailure Resource~onFailure a callback function called in case of a failure
options.baseUrl String base URL. If not set the current base URL will be used

Source: Process/Process.js, line 195

See: