Loading
Salesforce から送信されるメールは、承認済ドメインからのみとなります続きを読む

How to Get Payload Size in Mule 4

公開日: Sep 25, 2024
解決策

GOAL

You are using Mule 4 and need an accurate count of the payload sizes that are coming into your app.


PROCEDURE

If you intend to write this to a logger in order to monitor the sizes of the payload requests, here is an example:
<logger level=“INFO” doc:name=“Logger” doc:id=“d70a28ab-0a88-4982-89f1-e41bc5f1e0fc” message=‘#[%dw 2.0
output application/java
---
sizeOf(payload.^raw)]’/>
This will return either a number of objects within an array, or the number of characters within a string. 
INFO  2022-12-19 12:48:08,669 [[MuleRuntime].uber.04: [1].1Flow.CPU_LITE @5b2ff27f] [processor: 1Flow/processors/0; event: 63819ad0-7f9b-11ed-9c6b-acde48001122] org.mule.runtime.core.internal.processor.LoggerMessageProcessor: 605
  For more information on this function, please check the documentation like here.
ナレッジ記事番号

001120944

 
読み込み中
Salesforce Help | Article