examples
Class ExecutionMonitor.CustomProcessMonitor

java.lang.Object
  extended by org.mindswap.owls.process.execution.DefaultProcessMonitor
      extended by examples.ExecutionMonitor.CustomProcessMonitor
All Implemented Interfaces:
ProcessMonitor
Enclosing class:
ExecutionMonitor

public static class ExecutionMonitor.CustomProcessMonitor
extends DefaultProcessMonitor
implements ProcessMonitor


Constructor Summary
ExecutionMonitor.CustomProcessMonitor()
           
 
Method Summary
 void executionFailed(ExecutionException e)
          Called when the execution fails due to an execption.
 void executionFinished()
          Called only once when the execution of the top-most process finishes.
 void executionFinished(Process process, ValueMap inputs, ValueMap outputs)
          Called after the execution of a process finishes.
 void executionStarted()
          Called only once when the execution of the top-most process starts
 void executionStarted(Process process, ValueMap inputs)
          Called before the execution of a process starts.
 
Methods inherited from class org.mindswap.owls.process.execution.DefaultProcessMonitor
getMonitorFilter, setMonitorFilter, setWriter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mindswap.owls.process.execution.ProcessMonitor
getMonitorFilter, setMonitorFilter
 

Constructor Detail

ExecutionMonitor.CustomProcessMonitor

public ExecutionMonitor.CustomProcessMonitor()
Method Detail

executionStarted

public void executionStarted()
Description copied from interface: ProcessMonitor
Called only once when the execution of the top-most process starts

Specified by:
executionStarted in interface ProcessMonitor
Overrides:
executionStarted in class DefaultProcessMonitor

executionFinished

public void executionFinished()
Description copied from interface: ProcessMonitor
Called only once when the execution of the top-most process finishes. Note that if execution fails for any reason this function will not be called. Instead executionFailed() will be called.

Specified by:
executionFinished in interface ProcessMonitor
Overrides:
executionFinished in class DefaultProcessMonitor

executionStarted

public void executionStarted(Process process,
                             ValueMap inputs)
Description copied from interface: ProcessMonitor
Called before the execution of a process starts. The user has the option to modify the contents of the inputs. setMonitorFilter function can be used to control if this function will be called for all the processes or only for a specific type of processes (e.g. only atomic processes).

Specified by:
executionStarted in interface ProcessMonitor
Overrides:
executionStarted in class DefaultProcessMonitor

executionFinished

public void executionFinished(Process process,
                              ValueMap inputs,
                              ValueMap outputs)
Description copied from interface: ProcessMonitor
Called after the execution of a process finishes. The user has the option to modify the contents of outputs. setMonitorFilter function can be used to control if this function will be called for all the processes or only for a specific type of processes (e.g. only atomic processes).

Specified by:
executionFinished in interface ProcessMonitor
Overrides:
executionFinished in class DefaultProcessMonitor

executionFailed

public void executionFailed(ExecutionException e)
Description copied from interface: ProcessMonitor
Called when the execution fails due to an execption. This function is intended to be hook where the user can do something to fix the problem, i.e. ask for additional inputs. There is no such support at the moment. The execution engine will throw the exception right after this function returns.

Specified by:
executionFailed in interface ProcessMonitor
Overrides:
executionFailed in class DefaultProcessMonitor


Copyright © 2004 Evren Sirin. All Rights Reserved.