Additional Info
Requires Mule Enterprise License |
Yes |
Requires Entitlement |
No |
Mule Version |
3.5.0 or higher |
Configs
Custom File Storage
<partner-manager:config-file-storage-custom>
Configuration
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
name |
The name of this configuration. With this name can be later referenced. |
x |
||
flowName |
Name of flow persisting the file. |
x |
||
fileUrl |
File URL saved to Anypoint Partner Manager. If a MEL expression is set, then the expression is applied to the Mule event returned by the called flow. |
|
||
apiKey |
Your secret API key granting you access to Anypoint Partner Manager. |
x |
||
tpmServiceAddress |
Trading Partner Management Service URL for retrieving settings. |
|
||
trackerAddress |
Tracker URL for recording transmissions. |
|
||
environmentId |
Anypoint Platform environment to operate in. |
x |
||
asynchronousMode |
Whether tracking is synchronous or asynchronous. |
false |
|
|
queueManager |
QueueManager |
Queue Manager to use for asynchronous tracking |
|
|
maxTotalConnections |
Maximum allowed number of open connections to each Partner Manager service |
16 |
|
Basic Configuration
<partner-manager:config>
Configuration
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
name |
The name of this configuration. With this name can be later referenced. |
x |
||
apiKey |
Your secret API key granting you access to Anypoint Partner Manager. |
x |
||
tpmServiceAddress |
Trading Partner Management Service URL for retrieving settings. |
|
||
trackerAddress |
Tracker URL for recording transmissions. |
|
||
environmentId |
Anypoint Platform environment to operate in. |
x |
||
asynchronousMode |
Whether tracking is synchronous or asynchronous. |
false |
|
|
queueManager |
QueueManager |
Queue Manager to use for asynchronous tracking |
|
|
maxTotalConnections |
Maximum allowed number of open connections to each Partner Manager service |
16 |
|
Amazon S3 File Storage
<partner-manager:config-file-storage-amazon-s3>
Configuration
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
name |
The name of this configuration. With this name can be later referenced. |
x |
||
accessKeyId |
x |
|||
secretKey |
x |
|||
bucketName |
x |
|||
region |
x |
|||
apiKey |
Your secret API key granting you access to Anypoint Partner Manager. |
x |
||
tpmServiceAddress |
Trading Partner Management Service URL for retrieving settings. |
|
||
trackerAddress |
Tracker URL for recording transmissions. |
|
||
environmentId |
Anypoint Platform environment to operate in. |
x |
||
asynchronousMode |
Whether tracking is synchronous or asynchronous. |
false |
|
|
queueManager |
QueueManager |
Queue Manager to use for asynchronous tracking |
|
|
maxTotalConnections |
Maximum allowed number of open connections to each Partner Manager service |
16 |
|
Processors
Track transmission
<partner-manager:track-transmission>
Track transmission.
XML Sample
<partner-manager:track-transmission config-ref="config" direction="INBOUND" fromPartyIdentifier="PARTNER" toPartyIdentifier="HOME"/>
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
config-ref |
Specify which config to use |
x |
||
partnerIdentifier |
Identifier of receiving/sending partner. |
x |
||
direction |
Direction |
Whether the transmission is incoming or outgoing. |
x |
|
filename |
Filename for file-based content. |
|
||
metadata |
Data about the content. |
|
||
transport |
Transport carrying the transmission. |
x |
||
file |
File to pass to file storage provider. The file is required to be one of the following Java types: InputStream, Serializable, or ByteArrayOutputStream. A Partner Manager Connector file storage provider config (e.g., config-file-storage-amazon-s3) must be configured in order to save the file. |
|
||
transmissionSession |
Transaction session to use. By default, the connector tries to read the transaction session from the flow variable b2bTransmissionSession. If not found, a new transaction session is created. |
#[flowVars.b2bTransmissionSession] |
|
Returns
Return Java Type | Description |
---|---|
MuleEvent |
Transaction session. |
Propagate endpoint properties
<partner-manager:propagate-endpoint-properties>
Copy endpoint properties found in the transmission session to outbound properties.
XML Sample
<partner-manager:propagate-endpoint-properties config-ref="config"
endpointName="Bar" />
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
config-ref |
Specify which config to use |
x |
||
endpointName |
Name identifying the send endpoint where the property definitions are defined. |
x |
||
transmissionSession |
Transaction session to use. By default, the connector tries to read the transaction session from the flow variable b2bTransmissionSession. If not found, a new transaction session is created. |
#[flowVars.b2bTransmissionSession] |
|
Returns
Return Java Type | Description |
---|---|
MuleEvent |
Transaction session. |
Harvest endpoint properties
<partner-manager:harvest-endpoint-properties>
Harvest endpoint properties.
XML Sample
<partner-manager:harvest-endpoint-properties config-ref="config"
endpointName="Foo" />
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
config-ref |
Specify which config to use |
x |
||
endpointName |
Name identifying the receive endpoint where the property definitions are defined. |
x |
||
transmissionSession |
Transaction session to use. By default, the connector tries to read the transaction session from the flow variable b2bTransmissionSession. If not found, a new transaction session is created. |
#[flowVars.b2bTransmissionSession] |
|
Returns
Return Java Type | Description |
---|---|
MuleEvent |
Transaction session. |
Harvest document properties
<partner-manager:harvest-document-properties>
Harvest document properties.
XML Sample
<partner-manager:harvest-document-properties config-ref="config" direction="INBOUND"
partnerIdentifier="Big-Retailer" document-ref="#[payload]" standard="OTHER"/>
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
config-ref |
Specify which config to use |
x |
||
partnerIdentifier |
Identifier of receiving/sending partner. |
|
||
direction |
Direction |
Whether the document is incoming or outgoing. |
x |
|
standard |
Standard |
Document's standard. |
OTHER |
|
version |
Document's version. |
|
||
messageType |
Document's message type. |
|
||
document |
Processable document. |
|
||
transmissionSession |
Transaction session to use. By default, the connector tries to read the transaction session from flow variable b2bTransmissionSession. If not found, a new transaction session is created. |
#[flowVars.b2bTransmissionSession] |
|
Returns
Return Java Type | Description |
---|---|
MuleEvent |
Transaction session. |
Track document
<partner-manager:track-document>
Track document.
XML Sample
<partner-manager:track-document config-ref="config" direction="INBOUND"
partnerIdentifier="Big-Retailer" document-ref="#[payload]" standard="OTHER"/>
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
config-ref |
Specify which config to use |
x |
||
partnerIdentifier |
Identifier of receiving/sending partner. |
|
||
direction |
Direction |
Whether the document is incoming or outgoing. |
x |
|
filename |
Filename for file-based content. |
|
||
metadata |
|
|||
standard |
Standard |
Document's standard. |
OTHER |
|
version |
Document's version. |
|
||
messageType |
Document's message type. |
|
||
file |
File to pass to file storage provider. The file is required to be one of the following Java types: InputStream, Serializable, or ByteArrayOutputStream. A Partner Manager Connector file storage provider config (e.g., config-file-storage-amazon-s3) must be configured in order to save the file. |
|
||
document |
Processable document. |
|
||
transmissionSession |
Transaction session to use. By default, the connector tries to read the transaction session from flow variable b2bTransmissionSession. If not found, a new transaction session is created. |
#[flowVars.b2bTransmissionSession] |
|
Returns
Return Java Type | Description |
---|---|
MuleEvent |
Transaction session. |
Track error
<partner-manager:track-error>
Track error.
XML Sample
<partner-manager:track-error config-ref="config" partnerIdentifier="Big-Retailer" direction="INBOUND"
sourceId="#[flowVars.b2bTransmissionSession.transactionId]"
message="Something bad happened" />
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
config-ref |
Specify which config to use |
x |
||
partnerIdentifier |
Identifier of receiving/sending partner. |
x |
||
direction |
Direction |
Whether the error occurred while sending or receiving. |
x |
|
source |
Source |
Error's origin. |
x |
|
sourceId |
Source ID. |
x |
||
code |
Error code. |
|
||
message |
Message describing the error. |
|
||
transmissionSession |
Transaction session to use. By default, the connector tries to read the transaction session from flow variable b2bTransmissionSession. If not found, a new transaction session is created. |
#[flowVars.b2bTransmissionSession] |
|
Returns
Return Java Type | Description |
---|---|
MuleEvent |
Transaction session. |
Search
<partner-manager:search>
Search resource.
XML Sample
<partner-manager:search config-ref="config" query="endpointType=='RECEIVE'" resource="ENfaultDPOINT"/>
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
config-ref |
Specify which config to use |
x |
||
resource |
Resource |
Resource type to search for. |
x |
|
query |
Query criteria expressed in PMQL. |
x |
||
count |
Maximum number of objects allowed in the result. No more than 500 objects can be returned at any given time. |
200 |
|
|
offset |
Return results from a given offset. Default is 0. |
0 |
|
|
orderBy |
Sort results by a given field name. |
|
||
descending |
Sort results by descending or ascending order. Default is descending. |
true |
|
Lookup
<partner-manager:lookup>
Lookup entries.
XML Sample
<partner-manager:lookup config-ref="config"
lookupTable="Country Code">
<partner-manager:fields>
<partner-manager:field key="country">United States</partner-manager:field>
</partner-manager:fields>
</partner-manager:lookup>
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
config-ref |
Specify which config to use |
x |
||
lookupTable |
Name identifying the lookup table where the search for entries is performed. |
x |
||
key |
Name identifying the lookup key which may be specified in order to enforce field validation and ensure only a single entry is returned. |
|
||
fields |
Field name-value pairs specifying the entries to search for in the lookup table. |
x |
Start transactions replay
<partner-manager:start-transactions-replay>
Fetch replayable transactions and set them as replaying.
XML Sample
<partner-manager:start-transactions-replay replayingTimeout="5" config-ref="config"/>
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
config-ref |
Specify which config to use |
x |
||
replayingTimeout |
Include replaying transactions in the result exceeding the replaying timeout in seconds. |
|
End transactions replay
<partner-manager:end-transactions-replay>
Set given transactions as replayed.
XML Sample
<partner-manager:end-transactions-replay config-ref="config">
<partner-manager:transaction-ids>
<partner-manager:transaction-id>6c155ed8-cc51-4c6b-b2b7-8355e40fa53a</partner-manager:transaction-id>
<partner-manager:transaction-id>d8c8cdcb-c91b-4b2b-a16a-7a2a67908db8</partner-manager:transaction-id>
<partner-manager:transaction-id>f655b3f4-4e13-41b5-a1c6-d267c6b6d373</partner-manager:transaction-id>
</partner-manager:transaction-ids>
</partner-manager:end-transactions-replay>
Resolve routes
<partner-manager:resolve-routes>
Resolve routes.
XML Sample
<partner-manager:resolve-routes config-ref="config" fromPartyIdentifier="MuleSoft"
toPartyIdentifier="ModusBox"
partyIdentifierType="PARTNER" standard="EDIFACT"/>
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
config-ref |
Specify which config to use |
x |
||
fromPartyIdentifier |
Identifier of sending party. |
x |
||
toPartyIdentifier |
Identifier of receiving party. |
|
||
partyIdentifierType |
PartyIdentifierType |
Type of identifier. |
|
|
standard |
Standard |
Document's standard. |
x |
|
version |
Document's version. |
|
||
messageType |
Document's message type. |
|
||
transmissionSession |
#[flowVars.b2bTransmissionSession] |
|
Update transaction status
<partner-manager:update-transaction-status>
Updates the status of a transaction.
XML Sample
<partner-manager:update-transaction-status config-ref="config" status="COMPLETE"/>
Attributes
Name | Java Type | Description | Default Value | Required |
---|---|---|---|---|
config-ref |
Specify which config to use |
x |
||
transactionId |
ID identifying the transaction to be updated. transactionId overrides the transaction ID read from b2bTransmissionSession. |
|
||
status |
Status |
Transaction status to update to. |
x |
|
transmissionSession |
Transaction session to read transaction ID from. By default, the connector tries to read the transaction session from the flow variable b2bTransmissionSession. |
#[flowVars.b2bTransmissionSession] |
|