File: bpel_ui_bpelwsdl_register.vspx

package info (click to toggle)
virtuoso-opensource 6.1.6%2Bdfsg2-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 260,992 kB
  • ctags: 125,220
  • sloc: ansic: 652,748; sql: 458,419; xml: 282,834; java: 61,031; sh: 40,031; cpp: 36,890; cs: 25,240; php: 12,692; yacc: 9,523; lex: 7,018; makefile: 6,157; jsp: 4,484; awk: 1,643; perl: 1,013; ruby: 1,003; python: 326
file content (200 lines) | stat: -rw-r--r-- 9,120 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<?xml version="1.0"?>
<!--
 -
 -  $Id$
 -  
 -  This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
 -  project.
 -  
 -  Copyright (C) 1998-2012 OpenLink Software
 -  
 -  This project is free software; you can redistribute it and/or modify it
 -  under the terms of the GNU General Public License as published by the
 -  Free Software Foundation; only version 2 of the License, dated June 1991.
 -  
 -  This program is distributed in the hope that it will be useful, but
 -  WITHOUT ANY WARRANTY; without even the implied warranty of
 -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 -  General Public License for more details.
 -  
 -  You should have received a copy of the GNU General Public License along
 -  with this program; if not, write to the Free Software Foundation, Inc.,
 -  51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 -  
 -  
-->
<v:template name="upload_process" type="simple" xmlns:v="http://www.openlinksw.com/vspx/" title="Upload process">
  <tr>
    <td>&nbsp; </td>
    <td><font style="color: red">*</font> This page allows you to individually upload or provide external URI's for the bpel and wsdl files defining the process. When these are all provided the process is ready to be compiled.</td>
  </tr>
  <tr>
    <td>&nbsp; </td>
    <td>
      <table width="45%"  border="1" id="subcontent" cellpadding="0" cellspacing="0">
        <tr>
          <td align="right"><v:url name="rAuth" xhtml_class="m_e" value="Authentication" url="--sprintf('help.vspx?id=process_upload&name=pu_fields_authen')" xhtml_target="_blank"/></td>
          <td>
            <table width="45%"  border="1" id="subcontent" cellpadding="0" cellspacing="0">
              <tr>
                <td nowrap="1" align="right"><label for="login_userR">User</label></td>
                <td>
                  <v:text name="usernR" value="--connection_get('HTTP_CLI_UID')" null-value="''" xhtml_maxlength="30" xhtml_size="20" xhtml_id="login_userR"/>
                </td>
              </tr>
              <tr>
                <td align="right"><label for="login_pwdR">Password</label></td>
                <td>
                  <v:text name="passR" value="--connection_get('HTTP_CLI_PWD')" null-value="''" xhtml_size="20" xhtml_maxlength="30" type="password" xhtml_id="login_pwdR"/>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td align="right">&nbsp;</td>
    <td>
      <table width="100%" border="2" id="subcontent" cellpadding="0" cellspacing="0">
        <tr>
          <td align="left" width="8%" valign="middle"><b><v:url name="rBPEL" xhtml_class="m_e" value="BPEL" url="--sprintf('help.vspx?id=process_upload&name=pu_fields_bpel')" xhtml_target="_blank"/></b></td>
          <td>
            <table width="45%"  border="1" id="subcontent" cellpadding="0" cellspacing="0">
               <tr>
                 <td valign="top" align="right"><BR/>URL</td>
                 <td valign="top" >
                   <BR/><v:radio-button initial-checked="1" value="13" name="bpel_first" group-name="bpel"/>
                 </td>
                 <td><font style="color: red"><v:error-summary match="bpel_url" /></font><BR/>
                   <table width="45%"  border="1" id="subcontent" cellpadding="0" cellspacing="0">
                     <tr>
                       <td colspan="2">
                         <v:text name="bpel_url" value="''" xhtml_size="60%" xhtml_onchange="javascript:setUrl();"/>
                       </td>
                     </tr>
                   </table>
                 </td>
               </tr>
               <tr>
                 <td valign="top" align="right"><BR/>File</td>
                 <td valign="top" >
                   <BR/><v:radio-button initial-checked="0" value="126" name="bpel_second" group-name="bpel"/>
                 </td>
                 <td><font style="color: red"><v:error-summary match="bpel_file" /></font><BR/>
                   <v:text name="bpel_file" type="file" xhtml_class="m_e" xhtml_size="65%"/><br/>
                   <table id="subcontent"><tr><td/><td/><td/><td><font color="Red">Note: </font>No relative references inside file will be accepted.</td></tr></table>
                 </td>
               </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td align="left" width="8%" valign="middle"><b><v:url name="rWSDL" xhtml_class="m_e" value="WSDL" url="--sprintf('help.vspx?id=process_upload&name=pu_fields_wsdl')" xhtml_target="_blank"/></b></td>
          <td>
            <font style="color: red"><v:error-summary match="wsdl_url" /></font>
            <table width="45%"  border="1" id="subcontent" cellpadding="0" cellspacing="0">
               <tr>
                 <td valign="top" align="right">URL</td>
                 <td valign="top">
                   <BR/><v:radio-button initial-checked="1" value="14" name="wsdl_first" group-name="wsdl"/>
                 </td>
                 <td><font style="color: red"><v:error-summary match="bpel_url" /></font><BR/>
                   <table width="45%"  border="1" id="subcontent" cellpadding="0" cellspacing="0">
                     <tr>
                       <td colspan="2">
                         <v:text name="wsdl_url" value="''" xhtml_size="60%"/>
                       </td>
                     </tr>
                   </table>
                 </td>
               </tr>
               <tr>
                 <td valign="top" align="right">File</td>
                 <td valign="top">
                   <BR/><v:radio-button initial-checked="0" value="127" name="wsdl_second" group-name="wsdl"/>
                 </td>
                 <td>
                   <font style="color: red"><v:error-summary match="wsdl_file" /></font><BR/>
                   <v:text name="wsdl_file" type="file" xhtml_class="m_e" xhtml_size="65%"/><br/>
                   <table id="subcontent"><tr><td/><td/><td/><td><font color="Red">Note: </font>No relative inside file references will be accepted.</td></tr></table>
                 </td>
               </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td/>
          <td>
            <v:button action="simple" value="Upload Process" xhtml_class="m_e" name="upload123">
              <v:on-post>
                if (not self.vc_is_valid)
                  return;

                if ( trim(self.bpel_name.ufl_value, ' ') = '')
                {
                  self.bpel_name.vc_error_message := 'Please, enter valid process name.';
                  self.vc_is_valid := 0;
                  return 0;
                };

                if (self.bpel_first.ufl_selected = 1)
                {
                  if (not length (self.bpel_url.ufl_value))
                  {
                    self.bpel_url.vc_error_message := 'Please, enter correct URL for BPEL file.';
                    self.vc_is_valid := 0;
                    return 0;
                  };
                  self.bpelu:=trim(self.bpel_url.ufl_value,' ');
                  self.bpelc:='';
                }
                else if (self.bpel_second.ufl_selected = 1)
                {
                  if (not length (self.bpel_file.ufl_value))
                    {
                      self.bpel_file.vc_error_message := 'Please, choose a valid BPEL file.';
                      self.vc_is_valid := 0;
                      return 0;
                    };
                  self.bpelu:='';
                  self.bpelc:=self.bpel_file.ufl_value;
                };

                if (self.wsdl_first.ufl_selected = 1)
                {
                  if (not length (self.wsdl_url.ufl_value))
                  {
                    self.wsdl_url.vc_error_message := 'Please, enter correct URL for WSDL file.';
                    self.vc_is_valid := 0;
                    return 0;
                  };
                  self.wsdlu:=trim(self.wsdl_url.ufl_value,' ');
                  self.wsdlc:='';
                }
                else if (self.wsdl_second.ufl_selected = 1)
                {
                  if (not length (self.wsdl_file.ufl_value))
                   {
                      self.wsdl_file.vc_error_message := 'Please, choose a valid WSDL file.';
                      self.vc_is_valid := 0;
                      return 0;
                    };
                   self.wsdlu:='';
                   self.wsdlc:=self.wsdl_file.ufl_value;
                };

                BPEL.BPEL.set_uri_connection(self.usernR.ufl_value, self.passR.ufl_value);
                self.vc_data_bind(e);
                self.id := BPEL.BPEL.register_script(self.bpel_name.ufl_value,self.bpelu,self.wsdlu,self.bpelc,self.wsdlc);
                self.do_redirect (sprintf ('upload_new.vspx?id=%d', self.id));
              </v:on-post>
            </v:button>
            <font style="color: red"><v:error-summary match="upload123"/></font>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</v:template>