uk.ac.soton.itinnovation.taverna.enactor.entities
Class ProcessorTask

java.lang.Object
  extended by uk.ac.soton.itinnovation.freefluo.core.task.AbstractTask
      extended by uk.ac.soton.itinnovation.taverna.enactor.entities.ProcessorTask
All Implemented Interfaces:
IProcessorTask, uk.ac.soton.itinnovation.freefluo.core.event.RunEventSource, uk.ac.soton.itinnovation.freefluo.core.event.TaskStateListener, uk.ac.soton.itinnovation.freefluo.core.task.Task

public class ProcessorTask
extends uk.ac.soton.itinnovation.freefluo.core.task.AbstractTask
implements IProcessorTask

The superclass of all actual task implementations


Field Summary
static org.jdom.Namespace provNS
           
static java.lang.String REPORT_NAMESPACE
           
 WorkflowInstance workflowInstance
           
 
Constructor Summary
ProcessorTask(java.lang.String id, uk.ac.soton.itinnovation.freefluo.core.flow.Flow flow, Processor p, uk.ac.soton.itinnovation.freefluo.task.LogLevel l, java.lang.String userID, java.lang.String userCtx)
           
 
Method Summary
 ProcessEvent[] getEventList()
          Get the list of events thus far
 org.jdom.Element getFaultElement()
          If the processor invocation throws an exception causing it to fail, this class will populate an XML element with as much information as possible about the exception that was thrown.
 Processor getProcessor()
          Retrieves the XScufl Processor object for this task
 org.jdom.Element getProvenance()
          Retrieve provenance information for this task, concrete tasks should overide this method and provide this information as an XML JDOM element
 java.util.List<java.lang.String> getProvenanceList()
           
 WorkflowInstance getWorkflowInstance()
           
 void handleRun(uk.ac.soton.itinnovation.freefluo.core.event.RunEvent runEvents)
          Run the task
 
Methods inherited from class uk.ac.soton.itinnovation.freefluo.core.task.AbstractTask
addBreakpoint, addChild, addParent, addTaskEventListener, addTaskStateListener, cancel, destroy, getChild, getChildren, getDescription, getEndTime, getErrorMessage, getExecutionTimeSoFar, getFlow, getName, getParent, getParents, getRunEvents, getStartTime, getState, getStateString, getTaskId, isBreakpoint, isCancelable, isCompleted, isCritical, isDataNonVolatile, isFailFlowOnTaskFailure, isPause, isPauseable, isStateFinal, linkTo, pause, removeBreakpoint, removeTaskEventListener, removeTaskStateListener, resume, run, setCompleted, setCritical, setErrorMessage, setFailFlowOnTaskFailure, taskStateChanged, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.embl.ebi.escience.scufl.IProcessorTask
getChildren
 

Field Detail

provNS

public static org.jdom.Namespace provNS

REPORT_NAMESPACE

public static final java.lang.String REPORT_NAMESPACE
See Also:
Constant Field Values

workflowInstance

public WorkflowInstance workflowInstance
Constructor Detail

ProcessorTask

public ProcessorTask(java.lang.String id,
                     uk.ac.soton.itinnovation.freefluo.core.flow.Flow flow,
                     Processor p,
                     uk.ac.soton.itinnovation.freefluo.task.LogLevel l,
                     java.lang.String userID,
                     java.lang.String userCtx)
Method Detail

getProvenanceList

public java.util.List<java.lang.String> getProvenanceList()

getWorkflowInstance

public WorkflowInstance getWorkflowInstance()
Specified by:
getWorkflowInstance in interface IProcessorTask

handleRun

public void handleRun(uk.ac.soton.itinnovation.freefluo.core.event.RunEvent runEvents)
Run the task

Specified by:
handleRun in class uk.ac.soton.itinnovation.freefluo.core.task.AbstractTask

getEventList

public ProcessEvent[] getEventList()
Get the list of events thus far


getProcessor

public Processor getProcessor()
Retrieves the XScufl Processor object for this task

Specified by:
getProcessor in interface IProcessorTask
Returns:
the Processor object that this task is an execution shim for

getProvenance

public org.jdom.Element getProvenance()
Retrieve provenance information for this task, concrete tasks should overide this method and provide this information as an XML JDOM element


getFaultElement

public org.jdom.Element getFaultElement()
If the processor invocation throws an exception causing it to fail, this class will populate an XML element with as much information as possible about the exception that was thrown.