org.demac.process.base.extension
Class ExtensionModule
java.lang.Object
org.demac.process.base.extension.ExtensionModule
- All Implemented Interfaces:
- Service
- Direct Known Subclasses:
- ConcurrencyService, ExtendedExecutionService, InteractionService, SynchronizationService, TransactionSupportService
public abstract class ExtensionModule
- extends java.lang.Object
- implements Service
Interface for all org.demac.process.base.extension.ExtensionModules.
An org.demac.process.base.extension.ExtensionModule extends
the functionality of the org.demac.process.base.exe.BaseExecutionService.
It is strongly related to the capability of the mobile device.
Field Summary |
static int |
STATUS_EXECUTION_DONE
Tells, that the execution is done successfully or there was nothing to do. |
static int |
STATUS_MIGRATE_TO_OTHER
Tells, that the execution can't be completed, because this device is not sufficient. |
static int |
STATUS_WAIT_FOR_EVENT
Tells, that the execution can't be completed, because we have to wait for a certain event. |
Method Summary |
abstract boolean |
execute(DataSet ds,
java.lang.String type)
Method to call a function of the org.demac.process.base.extension.ExtensionModule. |
abstract java.lang.String |
getId()
|
static ExtensionModule |
getInstance()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STATUS_EXECUTION_DONE
public static final int STATUS_EXECUTION_DONE
- Tells, that the execution is done successfully or there was nothing to do.
- See Also:
- Constant Field Values
STATUS_WAIT_FOR_EVENT
public static final int STATUS_WAIT_FOR_EVENT
- Tells, that the execution can't be completed, because we have to wait for a certain event. Don't migrate the process now!
- See Also:
- Constant Field Values
STATUS_MIGRATE_TO_OTHER
public static final int STATUS_MIGRATE_TO_OTHER
- Tells, that the execution can't be completed, because this device is not sufficient. Migrate the process to another device!
- See Also:
- Constant Field Values
ExtensionModule
public ExtensionModule()
getId
public abstract java.lang.String getId()
- Returns:
- the identifier of the org.demac.process.base.extension.ExtensionModule.
getInstance
public static ExtensionModule getInstance()
execute
public abstract boolean execute(DataSet ds,
java.lang.String type)
throws java.lang.Exception
- Method to call a function of the org.demac.process.base.extension.ExtensionModule.
- Parameters:
p
- a dataset for input, referencing a process to be executed.type
- 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 process has to be executed normally when this execution ends.
- Throws:
java.lang.Exception