Substitution tokens can be used when specifying attribute values for a workflow or task. It a mechanism by which the value of an attribute is specified in terms of an expression that will be evaluated during runtime or gathered during the creation of a content rule for which the workflow is the action that will be performed.
There are two syntax for linking attribute values - prompt value name and event value name. Prompt value name uses the following syntax:
• $[Prompt_value_name]
– Defines simple rule instance forms to query user at the time the content rule is created.
– Mono lingual apps can just use strings.
– Prompt values can be either Strings or keywords if you choose to supply translation files.
-
- All languages must be supplied when you create the rule.
- Creator points to directory containg all translation files when the rule is created. They are copied into the jar.
Language file format:
The language file is name labels_<locale>.xml (ie. labels_en.xml). This file is
package with the workflow when you do the export to content rule.
<?xml version=”1.0” encoding=”UTF-8”?>
<ds:labels xmlns=”http//www.w3.org/1999/xhtml”
xmlns:ds=”http://www.xero.com/2006/dsbu/docushare”>
<ds:label key=”key”>Label to display</ds:label>
...
</ds:labels>
• ${event_value_name}
– Links values from the runtime event to the attributes in the task.
Event Value |
Description |
${username} |
Emitting user’s username |
${firstname} |
Emitting user’s firstname |
${lastname} |
Emitting user’s lastname |
${email} |
Emitting user’s email |
${owner} |
Content rule’s owner handle |
${owneremail} |
Content rule’s owner email |
${container} |
The first parent’s title in the event parent list. |
${containerurl} |
The first parent’s url. |
${description} |
The targeted object’s description. |
${title} |
The targeted object’s title. |
${summary} |
The targeted object’s summary. |
${url} |
The targeted object’s url. |
${handle} |
The targeted object’s handle. |
Note: This information can be found in the DocuShare Enterprise Workflow Programmers Guide at https://docushare.xerox.com/dsdn/dsweb/Get/Document-8934/ds_workflow_guide.pdf
Solution Published: October 27th, 2011
Solution ID: 953