første xml update
[virt-orchestrator.git] / vFLOWER / content / Workflows / Library / Tagging / Untag workflow.workflow.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <workflow xmlns="http://vmware.com/vco/workflow" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://vmware.com/vco/workflow http://vmware.com/vco/workflow/Workflow-v4.xsd" root-name="item1" object-name="workflow:name=generic" id="5a067901-2ced-47ef-8973-ea49ceb60d5d" version="0.0.2" api-version="3.1.0" allowed-operations="fve" restartMode="1" resumeFromFailedMode="0">
3     <display-name>Untag workflow</display-name>
4
5     <description>Removes a tag from a workflow. You must specify the workflow you want to untag and the tag you want to remove from the specified workflow.</description>
6
7     <position x="100.0" y="50.0"/>
8
9     <input>
10         <param name="taggedObject" type="Workflow">
11             <description>Workflow to untag</description>
12         </param>
13         <param name="tagName" type="string">
14             <description>Tag name</description>
15         </param>
16         <param name="isGlobal" type="boolean">
17             <description>Is global tag</description>
18         </param>
19     </input>
20
21     <workflow-item name="item0" type="end" end-mode="0">
22         <position x="384.5" y="45.40909090909091"/>
23     </workflow-item>
24
25     <workflow-item name="item1" out-name="item0" type="task">
26         <display-name>Untag object</display-name>
27
28         <script encoded="false">
29 try { 
30     var tags = new Array(tagName);
31         if ( isGlobal ) {
32           Server.untagGlobally(taggedObject,  tags);
33         } else {
34           Server.untag(taggedObject, tags);
35         }
36 } catch (e) {
37   System.error(e);
38 }
39         </script>
40
41         <in-binding>
42             <bind name="taggedObject" type="Workflow" export-name="taggedObject"/>
43             <bind name="isGlobal" type="boolean" export-name="isGlobal"/>
44             <bind name="tagName" type="string" export-name="tagName"/>
45         </in-binding>
46
47         <out-binding/>
48
49         <position x="204.5" y="55.40909090909091"/>
50     </workflow-item>
51
52     <presentation>
53         <p-param name="taggedObject">
54             <desc>Workflow to untag</desc>
55         </p-param>
56         <p-param name="tagName">
57             <desc>Tag to remove</desc>
58         </p-param>
59         <p-param name="isGlobal">
60             <desc>Global tag</desc>
61         </p-param>
62     </presentation>
63 </workflow>