Interface ManagedObjectServiceContext<F extends java.lang.Enum<F>>
-
- All Known Implementing Classes:
ManagedObjectServiceContextImpl
,SafeManagedObjectService
public interface ManagedObjectServiceContext<F extends java.lang.Enum<F>>
Service context for theManagedObjectSource
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProcessManager
invokeProcess(int flowIndex, java.lang.Object parameter, ManagedObject managedObject, long delay, FlowCallback callback)
Instigates aProcessState
.ProcessManager
invokeProcess(F key, java.lang.Object parameter, ManagedObject managedObject, long delay, FlowCallback callback)
Instigates aProcessState
.
-
-
-
Method Detail
-
invokeProcess
ProcessManager invokeProcess(F key, java.lang.Object parameter, ManagedObject managedObject, long delay, FlowCallback callback) throws java.lang.IllegalArgumentException
Instigates aProcessState
.- Parameters:
key
- Key identifying theFlow
to instigate.parameter
- Parameter to firstManagedFunction
of theFlow
.managedObject
-ManagedObject
for theProcessState
of theFlow
.delay
- Delay in milliseconds before theFlow
is invoked. A0
or negative value invokes theFlow
immediately.callback
-FlowCallback
on completion of theFlow
.- Returns:
ProcessManager
for theProcessState
.- Throws:
java.lang.IllegalArgumentException
- If- unknown
Flow
key - parameter is incorrect type
- no
ManagedObject
is supplied
- unknown
-
invokeProcess
ProcessManager invokeProcess(int flowIndex, java.lang.Object parameter, ManagedObject managedObject, long delay, FlowCallback callback) throws java.lang.IllegalArgumentException
Instigates aProcessState
.- Parameters:
flowIndex
- Index identifying theFlow
to instigate.parameter
- Parameter that to the firstManagedFunction
of theFlow
.managedObject
-ManagedObject
for theProcessState
of theFlow
.delay
- Delay in milliseconds before theFlow
is invoked. A0
or negative value invokes theFlow
immediately.callback
-FlowCallback
on completion of theFlow
.- Returns:
ProcessManager
for theProcessState
.- Throws:
java.lang.IllegalArgumentException
- If- unknown
Flow
index - parameter is incorrect type
- no
ManagedObject
is supplied
- unknown
-
-