hub.eb?material_id=584&track_id=586

Introduction to Workflow System Tasks


A Workflow System Task represents a script that is executed automatically. It is represented in a Workflow Process by an System Task Node 

A System Task Node must be linked to a System Activity. System Activities execute their associated script in the context of the Workflow Job. A System Activity has access to Process Attributes, Tables, and Resources as well as access to the JavaScript Workflow API. To create a System Activity, select File > New > Workflow > System Activity

A System Task Node must have both an in and out link. Double clicking the node opens the System Task Node Configuration, from the General tab you can:

  • Rename the node (names must be unique within a process)
  • Add a description to the node
  • Link to a System Activity

Steps


1

Continuing from Workflow Interactive Task Mappings

Add a System Task Node called sendEmailNode and update the links so the process flows as follows: Start Node > supplyEmailNode > sendEmailNode > End Node

2

Create a System Activity called sendEmailActivity and add the following code:

log("Email address to send to: " + fields.email.value)
3

Confiure sendEmailNode to use sendEmailActivity.

4

Run the Test Harness  and step through the process and note the logged email address.

Current Module

Related