Reference: Studio Helper Objects
Studio provides a number of helper objects that enable you to access an integration's
runtime properties using MVEL. You can use the helper objects to make simple changes
to runtime values, or to extract them and pass them to components in the
assembly.
Helper Object | Purpose |
|---|---|
context
| Provides access to the MediationContext object - that
is, to the dynamic state of the integration at runtime. The
MediationContext object links to the current message,
mediation properties, mediation variables, and current error
information.Example: This expression retrieves the value of the
property myProperty from the
MediationContext :
Example:
This expression retrieves the property someProperty
from the MediationContext if the property value is set
to
someValue :
|
da
| The Document Accessor helper object. Provides access to the list of
documents that were attached to the integration event before this
integration ran. Effectively combines a Get Event Documents web service call
with the retrieval of the documents referenced in the web service response.
The da helper object has some
limitations:
The doc-iterator router strategy handles
unexpected numbers of attachments automatically and it can access both
MIME type and character encoding. It's often more appropriate for an
integration to use that strategy to retrieve input documents, rather
than this helper object.Example: This expression retrieves a document from an integration event
with filename eib_transform_output.txt and adds a
variable named var1 :
Example: This expression retrieves a document with the given
label:
|
ftp
| Provides access to the list of files returned when issuing the LIST
request to an ftp, ftps, or sftp server. Example: This expression
retrieves a list of files for a URL:
|
intsys
| Provides convenient and high-performance access to the integration
system configuration as returned by the Get Integration Systems web service
call. Example: This expression retrieves an integration attribute
named username :
Example: This expression displays as true if an integration service with
the given name
exists:
If you use
intsys to access an attribute, you must first
define a service on the workday-in transport for the
integration system. |
lp
| Provides access to launch parameters and other information in the
integration launch event. Example: This expression retrieves the value of
a launch parameter with the given
name:
Example: This expression displays as true if a parameter with the given
label
exists:
Before using the lp variable, you need to assign the
launch parameters XML to the variable
wd.launchparameters . |
message
| Provides access to the current message and its header information. Use
this object to assign new content to the message. Example: This expression
retrieves the root part of a message as text from the
MediationMessage
interface:
Example: This expression retrieves MediationContext
variables:
|
mtable
| Provides access to the MTableAdapter interface, which
defines the operations on an mtable instance.Example:
This expression sets data in an
mtable :
|
parts
| Provides access to the individual parts of the current message. Most
messages in Workday integrations have a single part, the root part. Use
parts[0] to access the root part.Example: This
expression retrieves the header someHeader from the
root
part:
Example: This expression implements the xpathB method to
evaluate an XPath Boolean
expression:
|
props
| Provides access to MediationContext
properties.Example: This expression retrieves the value of the
property myProperty from the
MediationContext :
Example: This expression retrieves the value of the property
bean.property from the
MediationContext :
|
spring
| Provides access to the creation and retrieval beans defined in an
assembly's Spring configuration. Example: This expression retrieves the
name attribute of the bean called
Fred in the Spring
context:
Example: This expression accesses the Spring application
context:
|
util
| A set of utility functions for performing common operations such as
escaping values for insertion into XML or creating an HTTPS URL. Example:
This expression checks whether the current message in the
MediationContext is the last message that the
splitter component will
generate:
Some util functions have crucial limitations. Example:
the xpathToCommaDelimString function produces a
comma-separated list from the string values of the node sequence
returned by an XPath expression operating on a given XML string. You can
then split and manipulate the comma-separated list using Java string
manipulation functions in MVEL. However, the function has these
limitations:
Workday strongly recommends the use of explicit, versioned, web
service requests for stability and backward compatibility. Using
MVELUtilHelper.getLatestWWSVersion() in
integrations isn’t best practice, and can lead to integrations with
unexpected failures or results. |
vars
| Provides access to MediationContext
variables.Example: This expression retrieves the length of the
variable
myVariable :
Example:
This expression retrieves the length of the variable
myVariable :
|
xmldiff
| Provides programmatic access to the results of document comparison with
the xmldiff component.Example: This expression
checks whether there are differences between 2
documents:
Example:
This expression retrieves a list of differences between 2
documents:
|