org.demac.process.base.extension
Class InteractionService
java.lang.Object
org.demac.process.base.extension.ExtensionModule
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.
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 |
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
InteractionService
public InteractionService()
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
-