org.demac.process.base.extension
Class InteractionService

java.lang.Object
  extended by org.demac.process.base.extension.ExtensionModule
      extended by org.demac.process.base.extension.InteractionService
All Implemented Interfaces:
Service
Direct Known Subclasses:
InteractionServiceImpl

public abstract class InteractionService
extends ExtensionModule

Extension of the org.demac.process.base.extension.ExtensionModule, executing manual Activities or Activities which need user interaction because of the occurence of a fault. It also informs users when a notification is requested.


Field Summary
static java.lang.String errorType
           
static java.lang.String initiationType
           
static java.lang.String manualType
           
static java.lang.String notificationType
           
 
Fields inherited from class org.demac.process.base.extension.ExtensionModule
STATUS_EXECUTION_DONE, STATUS_MIGRATE_TO_OTHER, STATUS_WAIT_FOR_EVENT
 
Constructor Summary
InteractionService()
           
 
Method Summary
abstract  boolean execute(DataSet ds, java.lang.String s)
          Method to perform an Activity manually.
 java.lang.String getId()
           
static ExtensionModule getInstance()
           
abstract  void setGui(java.awt.Component component)
          Sets a possible GUI to integrate the InteractionService
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.demac.Service
isStarted, start, stop
 

Field Detail

notificationType

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

errorType

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

manualType

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

initiationType

public static final java.lang.String initiationType
See Also:
Constant Field Values
Constructor Detail

InteractionService

public InteractionService()
Method Detail

getInstance

public static ExtensionModule getInstance()
Returns:
the instance of the org.demac.process.base.extension.InteractionService.

getId

public java.lang.String getId()
Specified by:
getId in class ExtensionModule
Returns:
the identifier of the org.demac.process.base.extension.ExtensionModule.
See Also:
ExtensionModule.getId()

execute

public abstract boolean execute(DataSet ds,
                                java.lang.String s)
                         throws java.lang.Exception
Method to perform an Activity manually.

Specified by:
execute in class ExtensionModule
Parameters:
ds - the dataset containing the process that needs to be performed manually.
s - a possible description to specify the handling of the object to execute (if there is more than one possibility to execute it).
Returns:
true if the Activity has been executed successfully.
Throws:
java.lang.Exception

setGui

public abstract void setGui(java.awt.Component component)
Sets a possible GUI to integrate the InteractionService

Parameters:
component -