String actionID = owned.getActionID();
XmlWorkflowItem item = null;
try {
item = XmlWorkflowItem.find(context, workflowItemID);
Workflow wf = WorkflowFactory.getWorkflow(item.getCollection());
Step step = wf.getStep(stepID);
WorkflowActionConfig action = step.getActionConfig(actionID);
String url = contextPath+"/handle/"+item.getCollection().getHandle()+"/xmlworkflow?workflowID="+workflowItemID+"&stepID="+stepID+"&actionID="+actionID;
Metadatum[] titles = item.getItem().getDC("title", null, Item.ANY);
String collectionName = item.getCollection().getMetadata("name");
EPerson submitter = item.getSubmitter();
String submitterName = submitter.getFullName();
String submitterEmail = submitter.getEmail();
// Message state = getWorkflowStateMessage(owned);
boolean taskHasPool = step.getUserSelectionMethod().getProcessingAction().usesTaskPool();
if(taskHasPool){
//We have a workflow item that uses a pool, ensure we see the return to pool button
showReturnToPoolButton = true;
}
Row row = table.addRow();
Cell firstCell = row.addCell();
if(taskHasPool){
CheckBox remove = firstCell.addCheckBox("workflowandstepID");
remove.setLabel("selected");
remove.addOption(workflowItemID + ":" + step.getId());
}
// The task description
row.addCell().addXref(url,message("xmlui.XMLWorkflow." + wf.getID() + "." + stepID + "." + actionID));