-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.jsp
35 lines (32 loc) · 1.11 KB
/
index.jsp
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
<%@ page import="bpel.*"%>
<%
{
String action = request.getParameter( "action" );
String bpel_file = request.getParameter( "bpel_file" );
String id = request.getParameter( "id" );
String args = request.getParameter( "args" );
String variables = request.getParameter( "action" );
String parents = request.getParameter( "parents" );
String current = request.getParameter( "current" );
String params = "";
boolean runBpel = true;
// Build up the string
if( id != null && action != null ) params = "id=" + id + "&action=" + action;
else if ( id == null && action != null ) params = "action=" + action;
else if ( bpel_file != null )
{
params = "bpel_file=" + bpel_file;
if( variables != null ) params += "&variables=" + variables + "&parents=" + parents + "¤t=" + current;
else if( args != null ) params += "&args=" + args;
} else {
out.print("Error: Invalid arguments given");
runBpel = false;
}
if( runBpel )
{
BpelEngine bpelEngine = new BpelEngine();
bpelEngine.begin(params);
out.print(bpelEngine.getResponse());
}
}
%>