Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <config xmlns="http://web-harvest.sourceforge.net/schema/1.0/config"
- scriptlang="groovy">
- <var-def name="message">
- <template>msg1</template>
- </var-def>
- <var-def name="step">
- </var-def>
- <script><![CDATA[
- try{
- def message = "${message}".toString()
- step = "Step1"
- Boolean notSubmitted = true
- while(notSubmitted){
- switch (step) {
- case "Step1":
- println "1"
- test = "test" //do stuff
- step = "Step2"
- message = "msg2"
- break
- case "Step2":
- println "2"
- test2 = "test2" //do stuff
- sleep(2000)
- println "pause"
- if(1==1){
- notSubmitted = false
- return
- }
- sleep(2000)
- step = "Step3"
- message = "msg3"
- break
- case "Step3":
- println "3"
- test3 = "test3" //do stuff
- step = "Step4"
- message = "msg4"
- break
- default:
- println "Not implemented task"
- notSubmitted = false
- break
- }
- }
- }catch(e){
- println "error happened"
- }
- println message
- sys.defineVariable('step',step,true)
- sys.defineVariable('message',message,true)
- ]]></script>
- <script><![CDATA[
- String hej = "${message}".toString()
- log.info(hej)
- ]]></script>
- <export include-original-data="true"></export>
- </config>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement