Skip to main content
Administrator Guide
Last Updated: 2023-06-23
Reference: JavaScript Step Properties

Reference: JavaScript Step Properties

Common Tab

Property
XML Attribute Name
Description
Step ID
id
The unique ID of the
javascript
step within the assembly.
Input
input
Specifies where the
javascript
step obtains data as input. There are 5 possible values:
  • message
    : the entire message, including
    rootpart
    and attachments.
  • soapbody
    : the content of the SOAP body from the
    rootpart
    of the message. Only applicable when the input contains a SOAP message.
  • attachment
    : a MIME attachment within the message. Specify the attachment index.
  • rootpart
    : the content of the
    rootpart
    of a MIME message. If the message isn't MIME, Workday selects the entire message.
  • variable
    : use a named variable from the
    MediationContext
    .
Output
output
Specifies where the
javascript
mediation step directs the output. There are 5 possible values:
  • message
    : the entire message, including
    rootpart
    and attachments. This value creates a new message, effectively removing any attachments.
  • soapbody
    : the content of the SOAP body from the
    rootpart
    of the message.
  • attachment
    : a MIME attachment to the message. You must specify the attachment index.
  • rootpart
    : the content of the root part of a MIME message, or if the message isn't MIME, the message itself. This value preserves any attachments on the original message.
  • variable
    : save the output as a named variable in the
    MediationContext
    .
Function
function
A filename containing a JavaScript function, which must be located in the ws/WSAR-INF directory of your project.
Specify a value for either the
Function
or
Script
property, but not both. You can’t deploy a
javascript
step with both values configured.
Script
script
A filename containing a JavaScript script, which must be located in the ws/WSAR-INF directory of your project.
Specify a value for either the
Function
or
Script
property, but not both. You can’t deploy a
javascript
step with both values configured.

Advanced Tab

Property
XML Attribute Name
Description
Description
description
A description of the
javascript
step that displays in the consolidated log. You can use this feature to describe the step's function and the data on which it is operating.
Execute When
execute-when
A condition that determines whether the
javascript
step executes.