Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


Figure 1: JSONConverter CPS with Expert Properties enabled

General configuration

Pre Processing XSL Configuration

Pre Processing XSL configuration can be used to transform request message before processing it. Click the small button on the property to configure the properties.

Tip

Refer to the Pre/Post Processing XSL Configuration section under Common Configurations topic for details regarding XSL configuration. The properties comprising this XSL configuration are:

  • Provide XSL
  • XSLT Engine
  • Transformation source data
  • Set transformation result as

Post Processing XSL Configuration 

Post Processing XSL configuration can be used to transform response message before sending it to the output port.

Tip

As mentioned in the above section, refer to the Pre/Post Processing XSL Configuration section under the Common Configurations topic for details regarding XSL configuration.

Process Message Based on Property

The property helps components to skip certain messages from processing.

Tip

Refer the Process Message Based On a Property section under the Common Configurations topic.

Error Handling Configuration

Click the Ellipsis  button to configure actions to be taken when an exception occurs; the attributes present in the dialog box are:

...

  • If Yes, it converts Input JSON to XML.
  • If No, it converts Input XML to JSON.

...

Converting JSON To XML

...

If the value of the Convert JSON to XML property is set to 'yes'

...

This property is used to convert , the component converts JSON to XML.


Figure 2: Component configuration - To convert JSON to XML

...

Note
  • To ignore the property, leave it blank.
  • This is an Expert Property.

...

Converting XML to JSON

If the property value of the Convert JSON to XML property is set to 'no' it is nothing but to convert , the component converts XML to JSON.


Figure 4: Component configuration - To convert XML to JSON

...

Info
titleExample

Consider the XML string below:

Code Block
<a><x>1</x><y>2</y></a>

If the property is set to

  • "yes", the string is translated as:

    Code Block
    {"x": "1", "y": "2"}
  • "no", the string is translated as:

    Code Block
    { "a":  { "x": "1", "y": "2" }}

Expert Properties

Pre Processing XSL Configuration

Pre Processing XSL configuration can be used to transform request message before processing it. Click the small button on the property to configure the properties.

Tip

Refer to the Pre/Post Processing XSL Configuration section under Common Configurations topic for details regarding XSL configuration. The properties comprising this XSL configuration are:

  • Provide XSL
  • XSLT Engine
  • Transformation source data
  • Set transformation result as

Post Processing XSL Configuration

Post Processing XSL configuration can be used to transform response message before sending it to the output port.

Tip

As mentioned in the above section, refer to the Pre/Post Processing XSL Configuration section under the Common Configurations topic for details regarding XSL configuration.

Process Message Based on Property

The property helps components to skip certain messages from processing.

Tip

Refer the Process Message Based On a Property section under the Common Configurations topic.

Enable Thread Pool

This property is used when there is a need to process messages in parallel within the component, still maintaining the sequence from the external perspective. 

...

Adaptavist ThemeBuilder EngineAtlassian Confluence