AnsweredAssumed Answered

Help with Groovy

Question asked by stephenp on Mar 6, 2017
Latest reply on Mar 6, 2017 by ManuThommes7331

i would like to create some generic exception handling where my error handling process.   I would like to be able to pass 4 or 5 different xmls to a groovy script and append an error message from the second to last like:

 

eg: 

 

<job>

<jobid></jobid>

</job>

 

and append an error tag containing an error message

 

<job>

<jobid></jobid>

<error></error>

</job>

 

i assume i need to so something like

 

get document

count number of lines

line -1

insert text

update document

 

i'm fairly new to javascript and have done no groovy at all.  Could any advice on a good resource for groovy or suggest a better approach?

Outcomes