summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/edit/apps/nearme
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-02-12 18:29:37 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-02-12 18:29:37 +0000
commit2df07ad811f0929103ef03c4ac84fdbfde00412f (patch)
treee6ee1cf1e302ef715b928e51745d85af35dd5780 /sca-cpp/trunk/modules/edit/apps/nearme
parent085c66b5066a1b47d3980496069762361aa98bba (diff)
Add a few sample composites and a few fixes to the existing ones.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1070123 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/edit/apps/nearme')
-rw-r--r--sca-cpp/trunk/modules/edit/apps/nearme/app.composite122
1 files changed, 122 insertions, 0 deletions
diff --git a/sca-cpp/trunk/modules/edit/apps/nearme/app.composite b/sca-cpp/trunk/modules/edit/apps/nearme/app.composite
new file mode 100644
index 0000000000..61942294ba
--- /dev/null
+++ b/sca-cpp/trunk/modules/edit/apps/nearme/app.composite
@@ -0,0 +1,122 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" xmlns:t="http://tuscany.apache.org/xmlns/sca/1.1" targetNamespace="http://nearme" name="nearme">
+ <component t:x="234" t:y="25" name="fbfriend" t:color="yellow1">
+ <t:implementation.python script="item.py"/>
+ <service name="item"/>
+ <property name="property"/>
+ </component>
+ <component t:x="233" t:y="97" name="fbfriends" t:title="facebook friends" t:color="blue1">
+ <t:implementation.python script="fbfriends.py"/>
+ <service name="fbfriends"/>
+ <reference target="find" name="id"/>
+ </component>
+ <component t:x="352" t:y="96" name="find" t:title="find by name" t:color="yellow1">
+ <t:implementation.python script="find.py"/>
+ <service name="find"/>
+ <reference target="name" name="name"/>
+ <reference target="params" name="assoc"/>
+ </component>
+ <component t:x="453" t:y="97" name="name" t:title="name" t:color="orange1">
+ <t:implementation.python script="name.py"/>
+ <service name="name"/>
+ <property>fbid</property>
+ </component>
+ <component t:x="453" t:y="138" name="params" t:title="?params" t:color="green1">
+ <t:implementation.python script="params.py"/>
+ <service name="params"/>
+ <property>fbid=1234567</property>
+ </component>
+ <component t:x="274" t:y="97" name="mile" t:title="number" t:color="orange1">
+ <t:implementation.python script="number.py"/>
+ <service name="number"/>
+ <property>1</property>
+ </component>
+ <component t:x="484" t:y="68" name="name2" t:title="name" t:color="orange1">
+ <t:implementation.python script="name.py"/>
+ <service name="name"/>
+ <property>id</property>
+ </component>
+ <component t:x="226" t:y="29" name="lesser" t:title="lt" t:color="magenta1">
+ <t:implementation.python script="lesser.py"/>
+ <service name="lesser"/>
+ <reference target="distance" name="value1"/>
+ <reference target="mile" name="value2"/>
+ </component>
+ <component t:x="378" t:y="25" name="text2" t:title="text" t:color="orange1">
+ <t:implementation.python script="text.py"/>
+ <service name="text"/>
+ <property>jane</property>
+ </component>
+ <component t:x="227" t:y="240" name="nothing" t:title="nothing" t:color="orange1">
+ <t:implementation.python script="text.py"/>
+ <service name="nothing"/>
+ </component>
+ <component t:x="132" t:y="31" name="if" t:title="if" t:color="magenta1">
+ <t:implementation.python script="if_.py"/>
+ <service name="if"/>
+ <reference target="lesser" name="condition"/>
+ <reference target="assoc" name="then"/>
+ <reference target="nothing" name="else"/>
+ </component>
+ <component t:x="600" t:y="113" name="text" t:title="text" t:color="orange1">
+ <t:implementation.python script="text.py"/>
+ <service name="text"/>
+ <property>joe</property>
+ </component>
+ <service name="opened" promote="opened"/>
+ <component t:x="0" t:y="22" name="opened" t:title="when page opened" t:color="green1">
+ <t:implementation.python script="opened.py"/>
+ <service name="opened" t:visible="false"/>
+ <reference target="if" name="content"/>
+ </component>
+ <component t:x="175" t:y="198" name="assoc" t:title="assoc" t:color="orange1">
+ <t:implementation.python script="assoc.py"/>
+ <service name="assoc"/>
+ <reference target="name3" name="name"/>
+ <reference target="text3" name="value"/>
+ </component>
+ <component t:x="331" t:y="383" name="text3" t:title="text" t:color="orange1">
+ <t:implementation.python script="text.py"/>
+ <service name="text"/>
+ <property>jane</property>
+ </component>
+ <component t:x="218" t:y="195" name="name3" t:title="name" t:color="orange1">
+ <t:implementation.python script="name.py"/>
+ <service name="name"/>
+ <property>near</property>
+ </component>
+ <component t:x="216" t:y="23" name="distance" t:title="distance" t:color="red1">
+ <t:implementation.python script="distance.py"/>
+ <service name="distance"/>
+ <reference target="location" name="location1"/>
+ <reference target="location2" name="location2"/>
+ </component>
+ <component t:x="430" t:y="178" name="location" t:title="location" t:color="red1">
+ <t:implementation.python script="location.py"/>
+ <service name="location"/>
+ <reference target="text2" name="user"/>
+ </component>
+ <component t:x="429" t:y="234" name="location2" t:title="location" t:color="red1">
+ <t:implementation.python script="location.py"/>
+ <service name="location"/>
+ <reference target="text" name="user"/>
+ </component>
+</composite>