DML functions: Business Document instance

setDocumentAttribute

setJMSDocumentAttribute

setDocumentAttributeToOutput

To process an integration, the server processes messages flows. One part of the information contained in the message flow is pairs of attributes and values. The DML Business Document instance functions described in this topic enables you to set the values of these attribute/value pairs in the output Business Document of a DML Block.

setDocumentAttribute

setDocumentAttribute Comment

Description

setDocumentAttribute sets the value of an attribute field of a Business Document.

This function is used only in Maps. It creates an attribute that is applied to an output Business Document of the Map.

Syntax

setDocumentAttribute(attribute_name, field_name, value)

Return

setDocumentAttribute does not return a value.

Parameter

attribute_name

Enter a String that represents the attribute name of the output Business Document of the Map.

field_name

Enter a String that represents the attribute field name of the output Business Document of the Map.

value

Enter the Date, Integer, Real or String value to set.

Examples

setDocumentAttribute
("OverrideEmailRuntimeSendMethod", "Subject", "Main information"

Sets in the OverrideEmailRuntimeSendMethod attribute, the severity field of the output Business Document to "Main information".

setDocumentAttribute
("OverrideEmailRuntimeSendMethod", "Use_Subject", 1)

Sets in the OverrideEmailRuntimeSendMethod attribute, the Use_Subject field of the output Business Document to 1.

setJMSDocumentAttribute

See DML functions: JMS property access.

setDocumentAttributeToOutput

setDocumentAttributeToOutput Comment

Description

setDocumentAttributeToOutput sets the value of an attribute field of a Business Document for a specified output of a DML Block.

This function is used in a decision path. It resembles the setDocumentAttribute function described above, but additionally specifies the name of the output on which the attribute is to be exclusively applied. This enables you to use attributes in conjunction with the Route output to or And route to instructions in a decision rule which identifies an output.

To use this function you must create the output (via the Route output or And route to instruction) before you call the function in the decision path.

 

Example:

Route input to queue1

Route input to queue2

Route input to queue3

Step Step: setOutputDocumentAttribute(“queue1”, “attribute”, “value1”);

-setOutputDocumentAttribute(“queue2”, “attribute”, “value2”);

-setOutputDocumentAttribute(“queue3”, “attribute”, “value3”)

Syntax

setDocumentAttributeToOutput(output_name, attribute_name, field_name, value)

Return

setDocumentAttributeToOutput does not return a value.

Parameter

output_name

Enter the name of the DML Block output as it is defined in the DML Block decision path.

attribute_name

Enter a String that represents the attribute name of the output Business Document.

field_name

Enter a String that represents the attribute field name of the output Business Document.

value

Enter the Date, Integer, Real or String value to set.

Example

Example following Route input to:

-Route input to queue1

-Route input to queue2

-Route input to queue3

-Step Step: setOutputDocumentAttribute(“queue1”, “attribute”, “value1”);

--setOutputDocumentAttribute(“queue2”, “attribute”, “value2”);

--setOutputDocumentAttribute(“queue3”, “attribute”, “value3”)

 

Example nested in an If step:

If (expression)

- Route input to queue1

- Step Step: setOutputDocumentAttribute(“queue1”, “attribute”, “value1”)

Related Links