SAP Knowledge Base Article - Public

3242903 - Can I use an attribute from Dictionary in Workflow Accelerator for the recipient field in the e-mail task?

Symptom

We use already a dictionary connector in Workflow Accelerator, so the attributes are patched through into our workflows. Now we would like to use the stored e-mail addresses in the e-mail task as a recipient. Is it possible?

Resolution

It is possible, but not out of the box. You can do it with a JavaScript task and 'Assign variables'.

1. You have to create a variable in JavaScript task:

  • 'recipient' - type 'single line text'
  • 'usermail' - type 'email address'

2. In the text field (console) you have to set 'recipient' to 'usermail' by typing: 'usermail = recipient'

3. Drag an activity 'Assign variables' into your workflow and set your dictionary attribute from Process Manager as your 'recipient' variable (which you already created in a JS task)

4. Use your 'usermail' variable in the email task in the recipient field.

Please note: Signavio Support does not take any responsibility for provided scripts. Please test it before you use it in productive workflow.
If the dictionary item is not filled correctly (eg. missing e-mail address, incorrect address) no e-mail will be sent.

Keywords

KBA , BPI-SIG-PM-DIC , Dictionary for SAP Signavio Process Manager , How To

Product

SAP Signavio Process Governance all versions ; Workflow Accelerator by Signavio all versions