Package jadex.requiredservice.impl
Class ServiceCallTask
java.lang.Object
jadex.requiredservice.impl.ServiceCallTask
- All Implemented Interfaces:
jadex.bpmn.model.task.ITask
Call a service.
Service and method name may be specified as parameters.
Rebind parameter is also supported.
All other in and inout parameters are interpreted as method arguments.
One out or inout parameter may be specifed to receive the call result.
Service name may alternatively supplied as name of lane and
method name as name of activity.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjadex.future.IFuture
<Void> cancel
(jadex.core.IComponent instance) Cancel the task.jadex.future.IFuture
<Void> execute
(jadex.bpmn.model.task.ITaskContext context, jadex.core.IComponent process) Execute the task.protected jadex.future.IFuture
<Void> invokeService
(jadex.core.IComponent process, String fmethod, String fservice, String fresultparam, List<Object> args, jadex.bpmn.model.task.ITaskContext context, Object service, Method m) Invoke the service.
-
Field Details
-
PROPERTY_SERVICE
Property for service name.- See Also:
-
PROPERTY_METHOD
Property for method name.- See Also:
-
PROPERTY_RANKING
Property for ranking class name.- See Also:
-
-
Constructor Details
-
ServiceCallTask
public ServiceCallTask()
-
-
Method Details
-
execute
public jadex.future.IFuture<Void> execute(jadex.bpmn.model.task.ITaskContext context, jadex.core.IComponent process) Execute the task.- Specified by:
execute
in interfacejadex.bpmn.model.task.ITask
- Parameters:
context
- The accessible values.process
- The process instance executing the task.- Returns:
- To be notified, when the task has completed.
-
invokeService
protected jadex.future.IFuture<Void> invokeService(jadex.core.IComponent process, String fmethod, String fservice, String fresultparam, List<Object> args, jadex.bpmn.model.task.ITaskContext context, Object service, Method m) Invoke the service. -
cancel
Cancel the task.- Specified by:
cancel
in interfacejadex.bpmn.model.task.ITask
- Returns:
- To be notified, when the compensation has completed.
-