Name: cockpit/testsets/Main Loop.xml
| 1: | <?xml version="1.0"?> |
| 2: | <!-- |
| 3: | Apache License, Version 2.0 |
| 4: | |
| 5: | Copyright (c) 2013 Juergen Mangler |
| 6: | |
| 7: | Licensed under the Apache License, Version 2.0 (the "License"); |
| 8: | you may not use this file except in compliance with the License. |
| 9: | You may obtain a copy of the License at |
| 10: | |
| 11: | http://www.apache.org/licenses/LICENSE-2.0 |
| 12: | |
| 13: | Unless required by applicable law or agreed to in writing, software |
| 14: | distributed under the License is distributed on an "AS IS" BASIS, |
| 15: | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16: | See the License for the specific language governing permissions and |
| 17: | limitations under the License. |
| 18: | --> |
| 19: | |
| 20: | <testset> |
| 21: | <positions/> |
| 22: | <handlerwrapper>DefaultHandlerWrapper</handlerwrapper> |
| 23: | <dataelements><!--{{{--> |
| 24: | <last>-1</last> |
| 25: | </dataelements><!--}}}--> |
| 26: | <handlers><!--{{{--> |
| 27: | <handlers> |
| 28: | <handler url="xmpp://[email protected]"> |
| 29: | <events topic='properties/state'>change</events> |
| 30: | <events topic='properties/datalements'>change</events> |
| 31: | <events topic='properties/position'>change</events> |
| 32: | <events topic='running'>activity_calling,activity_failed,activity_manipulating,activity_done</events> |
| 33: | </handler> |
| 34: | <handler url="xmpp://[email protected]"> |
| 35: | <events topic='properties/state'>change</events> |
| 36: | <events topic='properties/position'>change</events> |
| 37: | <events topic='running'>activity_calling,activity_failed,activity_manipulating,activity_done</events> |
| 38: | </handler> |
| 39: | <handler url="xmpp://[email protected]"> |
| 40: | <events topic='simulating'>step</events> |
| 41: | </handler> |
| 42: | </handlers><!--}}}--> |
| 43: | <endpoints><!--{{{--> |
| 44: | <correlation>http://cpee.org:9299/wait</correlation> |
| 45: | <instantiation>http://cpee.org:9299/instantiate</instantiation> |
| 46: | </endpoints> <!--}}}--> |
| 47: | <description> |
| 48: | <description xmlns="http://cpee.org/ns/description/1.0"><!--{{{--> |
| 49: | <loop pre_test='true'> |
| 50: | <call id="wait" endpoint="correlation"> |
| 51: | <parameters><!--{{{--> |
| 52: | <label>Wait for Order</label> |
| 53: | <method>post</method> |
| 54: | <parameters> |
| 55: | <what>"Order Message"</what> |
| 56: | </parameters> |
| 57: | </parameters><!--}}}--> |
| 58: | <manipulate output="result"> |
| 59: | p result.first.value.read if result.length > 0 |
| 60: | </manipulate> |
| 61: | </call> |
| 62: | <call id="instantiate" endpoint="instantiation"> |
| 63: | <parameters><!--{{{--> |
| 64: | <label>Instantiate Process ADVENTURE Order</label> |
| 65: | <method>post</method> |
| 66: | <parameters> |
| 67: | <name>'ADVENTURE Order'</name> |
| 68: | <mode>'automatic'</mode> |
| 69: | </parameters> |
| 70: | </parameters><!--}}}--> |
| 71: | <manipulate output="result"> data.last = result.first.value</manipulate> |
| 72: | </call> |
| 73: | </loop> |
| 74: | </description><!--}}}--> |
| 75: | </description> |
| 76: | <transformation> |
| 77: | <description type='copy'/> |
| 78: | <dataelements type='rest'/> |
| 79: | <endpoints type='rest'/> |
| 80: | </transformation> |
| 81: | </testset> |
