Skip to main content

CPI Groovy scripts mostly used

  1. Convert xml to json
    This is mostly not required as we have standard step to convert the xml to json. In some cases, we might need to go for groovy script to handle this issue. 
  2. Remove nodes with condition
    This is to get the input and apply condition to remove the nodes from the input file.

    <root>
    <emp>Test</emp>
    </root>
  3. Merge two xmls 
    One example here would be let us say you fetch the data from two endpoint and finally, you want to merge these two, hence groovy script is used. 

Comments

Popular posts from this blog