Examples of sendCallbacks()


Examples of org.ofbiz.service.engine.GenericEngine.sendCallbacks()

                        if (requester != null) {
                            engine.runAsync(localName, service, context, requester, persist);
                        } else {
                            engine.runAsync(localName, service, context, persist);
                        }
                        engine.sendCallbacks(service, context, GenericEngine.ASYNC_MODE);
                    }
                }

                if (Debug.timingOn()) {
                    UtilTimer.closeTimer(localName + " / " + service.name, "ASync service finished...", module);
View Full Code Here

Examples of org.ofbiz.service.engine.GenericEngine.sendCallbacks()

                String errMsg = "Service [" + service.name + "] threw an unexpected exception/error";
                Debug.logError(t, errMsg, module);
                if (serviceDebugMode) {
                    service.invoker.sendCallbacks(engine, context, null, t, GenericEngine.ASYNC_MODE);
                } else {
                    engine.sendCallbacks(service, context, t, GenericEngine.ASYNC_MODE);
                }
                try {
                    TransactionUtil.rollback(beganTrans, errMsg, t);
                } catch (GenericTransactionException te) {
                    Debug.logError(te, "Cannot rollback transaction", module);
View Full Code Here

Examples of org.ofbiz.service.engine.GenericEngine.sendCallbacks()

                    // ===== invoke the service =====
                    if (!isError && !isFailure) {
                        Map<String, Object> invokeResult = null;
                        invokeResult = engine.runSync(localName, modelService, context);
                        engine.sendCallbacks(modelService, context, invokeResult, GenericEngine.SYNC_MODE);
                        if (invokeResult != null) {
                            result.putAll(invokeResult);
                        } else {
                            Debug.logWarning("Service (in runSync : " + modelService.name + ") returns null result", module);
                        }
View Full Code Here

Examples of org.ofbiz.service.engine.GenericEngine.sendCallbacks()

            } catch (Throwable t) {
                if (Debug.timingOn()) {
                    UtilTimer.closeTimer(localName + " / " + modelService.name, "Sync service failed...", module);
                }
                String errMsg = "Service [" + modelService.name + "] threw an unexpected exception/error";
                engine.sendCallbacks(modelService, context, t, GenericEngine.SYNC_MODE);
                try {
                    TransactionUtil.rollback(beganTrans, errMsg, t);
                } catch (GenericTransactionException te) {
                    Debug.logError(te, "Cannot rollback transaction", module);
                }
View Full Code Here

Examples of org.ofbiz.service.engine.GenericEngine.sendCallbacks()

                    if (requester != null) {
                        engine.runAsync(localName, service, context, requester, persist);
                    } else {
                        engine.runAsync(localName, service, context, persist);
                    }
                    engine.sendCallbacks(service, context, GenericEngine.ASYNC_MODE);
                }

                if (Debug.timingOn()) {
                    UtilTimer.closeTimer(localName + " / " + service.name, "ASync service finished...", module);
                }
View Full Code Here

Examples of org.ofbiz.service.engine.GenericEngine.sendCallbacks()

                if (Debug.timingOn()) {
                    UtilTimer.closeTimer(localName + " / " + service.name, "ASync service failed...", module);
                }
                String errMsg = "Service [" + service.name + "] threw an unexpected exception/error";
                Debug.logError(t, errMsg, module);
                engine.sendCallbacks(service, context, t, GenericEngine.ASYNC_MODE);
                try {
                    TransactionUtil.rollback(beganTrans, errMsg, t);
                } catch (GenericTransactionException te) {
                    Debug.logError(te, "Cannot rollback transaction", module);
                }
View Full Code Here

Examples of org.ofbiz.service.engine.GenericEngine.sendCallbacks()

                        if (serviceDebugMode) {
                            invokeResult = modelService.invoker.runSync(localName, engine, context);
                            modelService.invoker.sendCallbacks(engine, context, invokeResult, null, GenericEngine.SYNC_MODE);
                        } else {
                            invokeResult = engine.runSync(localName, modelService, context);
                            engine.sendCallbacks(modelService, context, invokeResult, GenericEngine.SYNC_MODE);
                        }
                        if (invokeResult != null) {
                            result.putAll(invokeResult);
                        } else {
                            Debug.logWarning("Service (in runSync : " + modelService.name + ") returns null result", module);
View Full Code Here

Examples of org.ofbiz.service.engine.GenericEngine.sendCallbacks()

                }
                String errMsg = "Service [" + modelService.name + "] threw an unexpected exception/error";
                if (serviceDebugMode) {
                    modelService.invoker.sendCallbacks(engine, context, null, t, GenericEngine.SYNC_MODE);
                } else {
                    engine.sendCallbacks(modelService, context, t, GenericEngine.SYNC_MODE);
                }
                try {
                    TransactionUtil.rollback(beganTrans, errMsg, t);
                } catch (GenericTransactionException te) {
                    Debug.logError(te, "Cannot rollback transaction", module);
View Full Code Here

Examples of org.ofbiz.service.engine.GenericEngine.sendCallbacks()

                        if (requester != null) {
                            engine.runAsync(localName, service, context, requester, persist);
                        } else {
                            engine.runAsync(localName, service, context, persist);
                        }
                        engine.sendCallbacks(service, context, GenericEngine.ASYNC_MODE);
                    }
                }

                if (Debug.timingOn()) {
                    UtilTimer.closeTimer(localName + " / " + service.name, "ASync service finished...", module);
View Full Code Here

Examples of org.ofbiz.service.engine.GenericEngine.sendCallbacks()

                String errMsg = "Service [" + service.name + "] threw an unexpected exception/error";
                Debug.logError(t, errMsg, module);
                if (serviceDebugMode) {
                    service.invoker.sendCallbacks(engine, context, null, t, GenericEngine.ASYNC_MODE);
                } else {
                    engine.sendCallbacks(service, context, t, GenericEngine.ASYNC_MODE);
                }
                try {
                    TransactionUtil.rollback(beganTrans, errMsg, t);
                } catch (GenericTransactionException te) {
                    Debug.logError(te, "Cannot rollback transaction", module);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.