Examples of ExceptionScope


Examples of org.jbpm.process.core.context.exception.ExceptionScope

                    new Long((String) value), Node.CONNECTION_DEFAULT_TYPE, Node.CONNECTION_DEFAULT_TYPE);
            } catch (IllegalArgumentException e) {
                // could not link
            }
        } else if (EXCEPTION_HANDLERS.equals(id)) {
            ExceptionScope exceptionScope = (ExceptionScope)
                getCompositeContextNode().getDefaultContext(ExceptionScope.EXCEPTION_SCOPE);
            if (exceptionScope == null) {
                exceptionScope = new ExceptionScope();
                getCompositeContextNode().addContext(exceptionScope);
                getCompositeContextNode().setDefaultContext(exceptionScope);
            }
            exceptionScope.setExceptionHandlers((Map<String, ExceptionHandler>) value);
        } else {
            super.setPropertyValue(id, value);
        }
    }
View Full Code Here

Examples of org.jbpm.process.core.context.exception.ExceptionScope

        if (END_NODE.equals(id)) {
            CompositeNode.NodeAndType link = getCompositeNode().getLinkedOutgoingNode(Node.CONNECTION_DEFAULT_TYPE);
            return link == null ? "" : link.getNodeId() + "";
        }
        if (EXCEPTION_HANDLERS.equals(id)) {
            ExceptionScope exceptionScope = (ExceptionScope)
                getCompositeContextNode().getDefaultContext(ExceptionScope.EXCEPTION_SCOPE);
            if (exceptionScope == null) {
                return new HashMap<String, ExceptionHandler>();
            }
            return exceptionScope.getExceptionHandlers();
        }
        return super.getPropertyValue(id);
    }
View Full Code Here

Examples of org.jbpm.process.core.context.exception.ExceptionScope

        } else if (START_NODE.equals(id)) {
            getCompositeNode().linkIncomingConnections(Node.CONNECTION_DEFAULT_TYPE, null);
        } else if (END_NODE.equals(id)) {
            getCompositeNode().linkOutgoingConnections(null, Node.CONNECTION_DEFAULT_TYPE);
        } else if (EXCEPTION_HANDLERS.equals(id)) {
            ExceptionScope exceptionScope = (ExceptionScope)
                getCompositeContextNode().getDefaultContext(ExceptionScope.EXCEPTION_SCOPE);
            if (exceptionScope != null) {
                exceptionScope.setExceptionHandlers(new HashMap<String, ExceptionHandler>());
            }
        } else {
            super.resetPropertyValue(id);
        }
    }
View Full Code Here

Examples of org.jbpm.process.core.context.exception.ExceptionScope

                    new Long((String) value), Node.CONNECTION_DEFAULT_TYPE, Node.CONNECTION_DEFAULT_TYPE);
            } catch (IllegalArgumentException e) {
                // could not link
            }
        } else if (EXCEPTION_HANDLERS.equals(id)) {
            ExceptionScope exceptionScope = (ExceptionScope)
                getCompositeContextNode().getDefaultContext(ExceptionScope.EXCEPTION_SCOPE);
            if (exceptionScope == null) {
                exceptionScope = new ExceptionScope();
                getCompositeContextNode().addContext(exceptionScope);
                getCompositeContextNode().setDefaultContext(exceptionScope);
            }
            exceptionScope.setExceptionHandlers((Map<String, ExceptionHandler>) value);
        } else {
            super.setPropertyValue(id, value);
        }
    }
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.