Class Alfresco.action.WorkflowActions
Workflow WorkflowActions util
Defined in: workflow-actions.js
| Method Attributes | Method Name and Description |
|---|---|
|
createAction(label, css, action, oRecord, oRecord)
|
|
|
createFilterURLParameters(filter, filterParameters)
Takes a filter and looks for its url parameter representation
|
|
|
substituteParameters(template, obj)
Takes a template and performs substituion against "Obj" and according to date instructions as described below.
|
Method Detail
createAction(label, css, action, oRecord, oRecord)
- Parameters:
- label
- css
- action
- oRecord
- oRecord
createFilterURLParameters(filter, filterParameters)
Takes a filter and looks for its url parameter representation
- Parameters:
- {object} filter
- The filter to create url parameters for
- {Array} filterParameters
- List of configured filter parameters that shall create url parameters
- Returns:
- URL parameters created from the instructions in filterParameters based on data from the filter OR null no instructions were found
substituteParameters(template, obj)
Takes a template and performs substituion against "Obj" and according to date instructions as described below.
Assumes the template data may contain date instructions where the instructions are placed inside curly brackets:
"param={attr}" - the name of an attribute in "obj"
"param={0dt}" - the current date time in iso8601 format
"param={1d}" - the current date (time set to end of day) and rolled l days forward
"param={-2d}" - the current date (time set to end of day) and rolled 2 days backward
Assumes the template data may contain date instructions where the instructions are placed inside curly brackets:
"param={attr}" - the name of an attribute in "obj"
"param={0dt}" - the current date time in iso8601 format
"param={1d}" - the current date (time set to end of day) and rolled l days forward
"param={-2d}" - the current date (time set to end of day) and rolled 2 days backward
- Parameters:
- template
- The template containing attributes from obj and dates to resolve
- obj
- Contains runtime values