|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorkflowInstance
This interface is implemented by any returned object that represents the state of a running workflow instance within an enactment system. It includes methods to pause and resume the workflow, get the status and any result documents that may be available, get intermediate results and other state querying operations. It is intended to act as an abstraction over classes such as the TavernaFlowReceipt.
Method Summary | |
---|---|
void |
cancelExecution()
Cancel the currently running workflow, freeing any resources used |
boolean |
changeOutputPortTaskData(java.lang.String processorId,
java.lang.String OutputPortName,
java.lang.Object newData)
Changes intermediate output data on the output porttask. |
void |
destroy()
Signal that any allocated resources should be cleaned up because the workflow instance is no longer required. |
java.lang.String |
getErrorMessage()
Returns a human readable string containing details of errors that occurred during execution of this WorkflowInstance |
java.lang.String |
getID()
Return the identifier for this workflow instance assigned by the workflow enactor |
java.util.Map<java.lang.String,DataThing>[] |
getIntermediateResultsForProcessor(java.lang.String processorName)
Return an array of Maps containing intermediate results for the named processor. |
java.util.Map<java.lang.String,DataThing> |
getOutput()
Return the Map of DataThing objects for all known workflow outputs, keys are the output names and values are the DataThing objects. |
java.lang.String |
getProgressReportXMLString()
Return the XML string of the status document |
java.lang.String |
getProvenanceXMLString()
Return the XML string containing the provenance report, this document is currently poorly defined but will in the future contain the set of RDF statements generated by the knowledge collection code. |
java.lang.String |
getStatus()
This method can be used to get a simple String that describes the current state of this workflow instance object. |
UserContext |
getUserContext()
Get the user context for this workflow instance in the form of a UserContext implementation |
ScuflModel |
getWorkflowModel()
Get the workflow model (may be offline mode!) for this workflow instance |
boolean |
isDataNonVolatile(java.lang.String processorId)
Checks if task's output is allowed to be editied. |
boolean |
isPaused()
Return whether the workflow is currently paused |
void |
pause(java.lang.String processorId)
Add breakoint to the specific processor. |
void |
pauseExecution()
Pause the workflow enactment. |
void |
resume(java.lang.String processorId)
Remove breakoint to the specific processor and resume it. |
void |
resumeExecution()
Resume the workflow enactment. |
void |
run()
Start this workflow istance running. |
void |
setInputs(java.util.Map inputMap)
Set workflow inputs. |
Method Detail |
---|
UserContext getUserContext()
void run() throws uk.ac.soton.itinnovation.freefluo.main.InvalidInputException
uk.ac.soton.itinnovation.freefluo.main.InvalidInputException
- if the input is doesn't map to source in the dataflow.java.lang.String getStatus()
FlowStateDefinition
.
java.util.Map<java.lang.String,DataThing>[] getIntermediateResultsForProcessor(java.lang.String processorName) throws UnknownProcessorException
UnknownProcessorException
- thrown if the named processor is not present in the
ScuflModel that this workflow instance is derived from.java.lang.String getProgressReportXMLString()
java.util.Map<java.lang.String,DataThing> getOutput()
java.lang.String getID()
java.lang.String getErrorMessage()
WorkflowInstance
java.lang.String getProvenanceXMLString()
void pauseExecution()
void resumeExecution()
boolean isPaused()
void cancelExecution()
void pause(java.lang.String processorId)
void resume(java.lang.String processorId)
boolean isDataNonVolatile(java.lang.String processorId)
boolean changeOutputPortTaskData(java.lang.String processorId, java.lang.String OutputPortName, java.lang.Object newData)
void setInputs(java.util.Map inputMap)
void destroy()
ScuflModel getWorkflowModel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |