<%@page contentType="text/html;charset=UTF-8" pageEncoding="ISO-8859-1" session="true"
%><%@page errorPage="AdminException.jsp"
%><%@page import="com.fujitsu.iflow.model.workflow.WFSession"
%><%@page import="com.fujitsu.iflow.model.workflow.WFObjectFactory"
%><%@page import="com.fujitsu.iflow.model.workflow.Plan"
%><%@page import="com.fujitsu.iflow.model.workflow.ProcessInstantiator"
%><%@page import="com.fujitsu.iflow.model.workflow.WorkItem"
%><%@page import="com.fujitsu.iflow.model.wfcore.WFAdminSessionImpl"
%><%@page import="java.util.Enumeration"
%><%@page import="com.fujitsu.iflow.model.util.URLEncoder"
%><%@page import="com.fujitsu.iflow.model.bpm.BPMAdmin"
%><%@page import="com.fujitsu.iflow.model.bpm.BPMSession"
%><%@page import="com.fujitsu.iflow.model.bpmcore.BPMAdminImpl"
%><%
    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;
    }

    BPMAdmin bpas = bps.getAdmin();
    WFAdminSessionImpl wfSession = ((BPMAdminImpl)bpas)._wfas;

    String processId = request.getParameter("processId");
    String userId = request.getParameter("userId");

%>
<html>
<head><title>Interstage Business Process Manager | User Management</title></head>
<jsp:include page="StyleSheet.jsp" flush="true"/>
<script language="javascript" src="styles/clockscripts.js"></script>
</head>
<body class="adminBodyClass">

<script>

function reassign(id, userId, newAssignee)
{
    location.href="ProcessOwnerAction.jsp?processId=" + id + "&userId=" + userId + "&owner=" + newAssignee + "&selected=8";
}

</script>

<jsp:include page="AdminHeader.jsp" flush="true"/>
<br/><br/>
<form name="multipleReassign" method="get" action="WorkitemReassign.jsp">
<center>
<TABLE border="0" cellpadding="4" cellspacing="1" bgcolor="#CCCCCC" class="tableClass" width="450">
    <tr>
        <td class="headrow">Modify owner for process Instance id's <%= processId %></td>
    </tr>
    <tr>
            <td bgcolor="#FFFFFF" align="center"><br/> New Owner(s):
            <input type=text value ="" name=assignee size=30></td>
    </tr>
    <tr>
    <td align= "center">
    <input type="button" onClick="reassign('<%= processId %>', '<%= userId %>', this.form.assignee.value)" value="Modify Owner(s)" name="check" class="core-button">
    </td>
</table>
</form>
</center>
</body>
</html>


<%!
    public WFAdminSessionImpl getiFlowSession(Object modelObject)
    {
            return (WFAdminSessionImpl)(modelObject);
    }



%>
