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:
See:

Methods

create()

Create a new Process.
Parameters:
Name Type Argument Description
options.onSuccess Resource~onSuccess a callback function called in case of a success
options.onFailure Resource~onFailure <optional>
a callback function called in case of a failure
options.baseUrl String <optional>
base URL. If not set the current base URL will be used
options.process String <optional>
the process xml
Source:
See:

generate_xml(options)

generate xml to create/update
Parameters:
Name Type Description
options object options to be used during the call
Properties
Name Type Argument Description
update Boolean Is this an xml for update
baseUrl String <optional>
base URL. If not set the current base URL will be used
Source:
See:

generateUrl()

Overrides Resource's generateUrl method to return the request url
Source:
See:

loadPreset()

Overrides Resource's loadPreset method.
Source:
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:
See:

update()

Save an existing Process.
Parameters:
Name Type Argument Description
options.onSuccess Resource~onSuccess a callback function called in case of a success
options.onFailure Resource~onFailure <optional>
a callback function called in case of a failure
options.baseUrl String <optional>
base URL. If not set the current base URL will be used
Source:
See: