<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %> <%@ page import="org.wso2.carbon.humantask.stub.ui.task.client.api.types.TTaskAbstract" %> <%@ page import="org.wso2.carbon.humantask.stub.ui.task.client.api.types.TTaskAuthorisationParams" %> <%@ page import="org.wso2.carbon.humantask.ui.constants.HumanTaskUIConstants" %> <%@ page import="org.wso2.carbon.humantask.ui.util.HumanTaskUIUtil" %> <% TTaskAbstract task = (TTaskAbstract) request.getAttribute("LoadedTask"); TTaskAuthorisationParams authParams = (TTaskAuthorisationParams) request.getAttribute("TaskAuthorisationParams"); String client = (String) request.getAttribute("taskClient"); String jspContextPath = "/humantaskui/" + task.getTenantId() + "/" + task.getPackageName() + "/" + task.getName().getLocalPart() + "-input.jsp"; String outputJspContextPath = "/humantaskui/" + task.getTenantId() + "/" + task.getPackageName() + "/" + task.getName().getLocalPart() + "-output.jsp"; String responseJspContextPath = "/humantaskui/" + task.getTenantId() + "/" + task.getPackageName() + "/" + task.getName().getLocalPart() + "-response.jsp"; %>
<% String presentationName = HumanTaskUIUtil.getTaskPresentationHeader(task.getPresentationSubject(), task.getPresentationName()); %>

<%=presentationName%>

<% if (task != null) { %> <% if (authParams.getAuthorisedToComplete()) { %> <% } %>
<%=task.getPresentationName()%>
<% if (authParams.getAuthorisedToClaim()) { %> <% } %> <% if (authParams.getAuthorisedToRelease()) { %> <% } %> <% if (authParams.getAuthorisedToStart()) { %> <% } %> <% if (authParams.getAuthorisedToStop()) { %> <% } %>
<%=task.getPresentationSubject()%>
<%=task.getTaskType()%>
<%=task.getStatus()%>
<%=task.getPriority()%>
<% if (task.getActualOwner() != null) { out.print(task.getActualOwner().getTUser()); } else { %> <% } %>
<%=task.getCreatedTime().getTime().toString()%>
<% if ("COMPLETED".equals(task.getStatus().toString())) { %> <% } else if (authParams.getAuthorisedToComplete()) { %> <% } %>
<% } else { %> <% } %>