<%@page contentType="text/html;charset=UTF-8" pageEncoding="ISO-8859-1" session="true"
%><%@page errorPage="Exception.jsp"
%><%@page import="com.fujitsu.iflow.model.bpm.BPMSession"
%><%@page import="com.fujitsu.iflow.model.util.URLEncoder"
%><%@page import="com.fujitsu.iflow.model.workflow.Plan"
%><%@page import="com.fujitsu.iflow.model.workflow.ProcessInstance"
%><%@page import="com.fujitsu.iflow.model.workflow.ProcessInstantiator"
%><%
    request.setCharacterEncoding("UTF-8");request.getParameterNames(); //Need dummy call for WL9.1
    BPMSession bps = (BPMSession) session.getAttribute("BPMSession");
    if (bps == null) {
        %><jsp:include page="PasswordPanel.jsp" flush="true"/><%
        return;
    }

    String message = (String)session.getAttribute("message");
    String allTemplates = response.encodeURL("TemplateList.jsp");
%>
<html>
<head>
<title>Interstage Business Process Manager | Process Instance Started</title>
<jsp:include page="StyleSheet.jsp" flush="true"/>
<script language="javascript" src="styles/clockscripts.js"></script>
<script>
    function templateList(templateList)
    {
        location.href=templateList;
    }
</script>
</head>

<body class="bodyClass" onLoad="goforit();">
<jsp:include page="ProcessHeader.jsp" flush="true"/>
<br/><br/>
<table width="650" border="0" align="center" cellpadding="1" cellspacing="0" bgcolor="#CCCCCC">
  <tr>
    <td><table width="650" border="0" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF">
        <tr>
          <td><form method="post" action="<%= response.encodeURL("ProcessSuccess.jsp") %>">
              <center><br/>
                <img src="images/icons/info_excep.gif" border="0"><br/>
                <%= message %><br>
                  <br>
                  <input name="CreateStart" value="Reuse Same Process Definition" type="button" onClick="window.history.go(-1)" class="submitClass">
                  &nbsp;
                  <input name="Template List" value="Process Definition List" type="button" onClick="templateList(&quot;<%= allTemplates %>&quot;)" class="submitClass">

              </center>
            </form></td>
        </tr>
      </table></td>
  </tr>
</table>

</body>
</html>

