Package org.apache.ofbiz.minilang
Class SimpleServiceEngine
java.lang.Object
org.apache.ofbiz.service.engine.AbstractEngine
org.apache.ofbiz.service.engine.GenericAsyncEngine
org.apache.ofbiz.minilang.SimpleServiceEngine
- All Implemented Interfaces:
GenericEngine
Mini-language Service Engine.
-
Field Summary
Fields inherited from interface org.apache.ofbiz.service.engine.GenericEngine
ASYNC_MODE, SYNC_MODE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRun the service synchronously and return the resultvoid
runSyncIgnore
(String localName, ModelService modelService, Map<String, Object> context) Run the service synchronously and IGNORE the resultMethods inherited from class org.apache.ofbiz.service.engine.GenericAsyncEngine
allowCallbacks, runAsync, runAsync
Methods inherited from class org.apache.ofbiz.service.engine.AbstractEngine
createLocationMap, getDispatcher, getLocation, sendCallbacks, sendCallbacks, sendCallbacks
-
Constructor Details
-
SimpleServiceEngine
Creates new Engine
-
-
Method Details
-
runSync
public Map<String,Object> runSync(String localName, ModelService modelService, Map<String, Object> context) throws GenericServiceExceptionRun the service synchronously and return the result- Specified by:
runSync
in interfaceGenericEngine
- Specified by:
runSync
in classGenericAsyncEngine
- Parameters:
context
- Map of name, value pairs composing the contextlocalName
- Name of the LocalDispatcher.modelService
- Service model object.- Returns:
- Map of name, value pairs composing the result
- Throws:
GenericServiceException
-
runSyncIgnore
public void runSyncIgnore(String localName, ModelService modelService, Map<String, Object> context) throws GenericServiceExceptionRun the service synchronously and IGNORE the result- Specified by:
runSyncIgnore
in interfaceGenericEngine
- Specified by:
runSyncIgnore
in classGenericAsyncEngine
- Parameters:
context
- Map of name, value pairs composing the contextlocalName
- Name of the LocalDispatcher.modelService
- Service model object.- Throws:
GenericServiceException
-