File: bpel_ui_import2.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 (113 lines) | stat: -rw-r--r-- 4,562 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
<?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="import_process" type="simple" xmlns:v="http://www.openlinksw.com/vspx/" title="Import process">
  <tr>
    <td>&nbsp; </td>
    <td nowrap="1">
     <font color="Red">*</font> All bpel and  wsdl files referenced by the file at this URL will be loaded and will be ready to compile.
    </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="r2Auth" 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_user2">User</label></td>
                <td>
                  <v:text name="usern2" value="--connection_get('HTTP_CLI_UID')" null-value="''" xhtml_maxlength="30" xhtml_size="20" xhtml_id="login_user2"/>
                </td>
              </tr>
              <tr>
                <td align="right"><label for="login_pwd">Password</label></td>
                <td>
                  <v:text name="pass2" value="--connection_get('HTTP_CLI_PWD')" null-value="''" xhtml_size="20" xhtml_maxlength="30" type="password" xhtml_id="login_pwd2"/>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td align="left">&nbsp;</td>
    <td>
      <table width="100%"  border="2" id="subcontent" cellpadding="0" cellspacing="0">
        <tr>
          <td align="left" width="15%" nowrap="1"><b><v:url name="r2DESCR" xhtml_class="m_e" value="Load Deployment Descriptor from:" url="--sprintf('help.vspx?id=process_upload&name=pu_fields_descr')" xhtml_target="_blank"/></b></td>
          <td>
            <font style="color: red"><v:error-summary match="imp_url2" /></font>
            <table width="45%"  border="1" id="subcontent" cellpadding="0" cellspacing="0">
               <tr>
                 <td align="right">URL</td>
                 <td nowrap="1">
                   <v:text name="imp_url2" value="''" xhtml_size="60%"/>
                 </td>
               </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td/>
          <td>
            <v:button action="simple" value="Import Process" xhtml_class="m_e" name="importB2">
              <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 (not length (self.imp_url2.ufl_value))
                {
                  self.imp_url2.vc_error_message := 'Please, enter correct URL for Deployment Descriptor.';
                  self.vc_is_valid := 0;
                  return 0;
                };
                self.impu:=trim(self.imp_url2.ufl_value,' ');

                BPEL.BPEL.set_uri_connection(self.usern2.ufl_value, self.pass2.ufl_value);
                self.vc_data_bind(e);

                BPEL.BPEL.import_script(self.impu,self.bpel_name.ufl_value,self.id);
                self.do_redirect (sprintf ('upload_new.vspx?id=%d', self.id));
              </v:on-post>
            </v:button>
            <font style="color: red"><v:error-summary match="importB2" /></font>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</v:template>