STUDIO Visual Editor
Field | Value | Description | XML |
---|---|---|---|
Display Name |
Property |
Customize to display a unique name for the transformer in your application. |
|
Operation |
Set Property |
Select to set a new property on the outbound scope of your message (as shown in example above). |
|
Remove Property |
Select to delete an existing property from your message to remove it from the outbound scope. |
|
|
Copy Properties |
Select to copy an existing property from the inbound scope onto the outbound scope of your message. |
|
|
Name |
String or Mule Expression |
Specify the name for the property that you are creating, or identify the name of the property that you are copying or removing. If you are copying or removing properties, this field accepts a wildcard "*" character. |
|
Value |
String or Mule Expression |
This field displays only if you are setting a new property. Specify the value using either a string or a Mule expression, as shown in the example screenshot above. |
|
XML Editor or Standalone
#Set property
<set-property propertyName="Authorization" doc:name="Set Authentication Header" value="#["Basic " + Base64.encodeBase64String("username:password")]"/>
# Remove property
<remove-property propertyName="PropertyForRemoval" doc:name="Delete Property"/>
# Copy property
<copy-properties propertyName="http.*" doc:name="Copy All HTTP Headers"/>
Element | Description |
---|---|
set-property |
Set a new property on the outbound scope of your message (as shown in example below). |
remove-property |
Delete an existing property from your message to remove it from the outbound scope. |
copy-properties |
Copy an existing property from the inbound scope onto the outbound scope of your message |
Element Attribute | Description |
---|---|
doc:name |
Customize to display a unique name for the transformer in your application, as shown in the example below. Note: Attribute not required in Mule Standalone configuration. |
propertyName |
The name of the property that you are setting, copying, or removing. Can be a string or a Mule expression. Note: If you are using the remove-property or copy-properties element, you may use a wildcard "*"character. For example, a copy-properties transformer with a property name "http." will copy all properties whose names begin with "http.", from the inbound scope to the outbound scope. |
value |
The value of the property that you are setting. This attribute is only relevant for the set-property element. Can be a string or a Mule expression. |