Skip to main content Skip to complementary content

Configuring the components

Procedure

  1. Double-click the cTimer component to display its Basic settings view in the Component tab.
  2. In the Repeat field, enter 1 to trigger a message. Keep the default settings of the other options.
  3. Double-click the cSetBody component to display its Basic settings view in the Component tab.
  4. Select Constant in the Language list and enter the JSON string "{\"firstName\": \"Mike\", \"lastName\": \"Jonson\", \"age\": 74, \"job\": \"artist\" }" in the Expression field.
  5. Double-click the cJsonParser component to display its Basic settings view in the Component tab.
  6. Select Gson in the JSON Library list and enter java.util.Map.class in the Mapping Class field to parse the JSON string into a Java map.
  7. Double-click a cLog component to display its Basic settings view in the Component tab.
  8. Configure the properties as follows:
    1. Select the Format the log output option.
    2. In the Arguments table, click [+] to add a row. Enter "multiline" in the Name field and true in the value field.
    3. Keep the default settings of the other options.
  9. Repeat this step to configure the other cLog component in the same way.
  10. Double-click the cJsonWriter component to display its Basic settings view in the Component tab.
  11. In the JSON Library list, select Jackson to write the Java map into JSON using the Jackson library.
  12. Press Ctrl+S to save your Route.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!