new Process()
Create a new instance of Process
- Source:
- Process/Process.js, line 37
- See:
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) |
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:
- 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
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:
- 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 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:
- Process/Process.js, line 195
- See: