Examples of findWorkItemInfo()


Examples of org.drools.persistence.PersistenceContext.findWorkItemInfo()

    public void internalAbortWorkItem(long id) {
        Environment env = this.kruntime.getEnvironment();
        PersistenceContext context = ((PersistenceContextManager) env.get( EnvironmentName.PERSISTENCE_CONTEXT_MANAGER )).getCommandScopedPersistenceContext();
       
        WorkItemInfo workItemInfo = context.findWorkItemInfo( id );
        // work item may have been aborted
        if (workItemInfo != null) {
            WorkItemImpl workItem = (WorkItemImpl) internalGetWorkItem(workItemInfo);
            WorkItemHandler handler = (WorkItemHandler) this.workItemHandlers.get(workItem.getName());
            if (handler != null) {
View Full Code Here

Examples of org.drools.persistence.PersistenceContext.findWorkItemInfo()

                workItemInfo = context.merge(workItemInfo);
            }
        }
       
        if (workItemInfo == null) {
            workItemInfo = context.findWorkItemInfo( id );
        }
       
        // work item may have been aborted
        if (workItemInfo != null) {
            WorkItem workItem = internalGetWorkItem(workItemInfo);
View Full Code Here

Examples of org.drools.persistence.PersistenceContext.findWorkItemInfo()

                workItemInfo = context.merge(workItemInfo);
            }
        }
       
        if (workItemInfo == null) {
            workItemInfo = context.findWorkItemInfo( id );
        }
       
        // work item may have been aborted
        if (workItemInfo != null) {
            WorkItem workItem = (WorkItemImpl) internalGetWorkItem(workItemInfo);
View Full Code Here

Examples of org.drools.persistence.PersistenceContext.findWorkItemInfo()

        if( this.pessimisticLocking && workItemInfo != null ) {
           context.lock(workItemInfo);
        }
       
        if (workItemInfo == null && context != null) {
            workItemInfo = context.findWorkItemInfo( id );
        }

        if (workItemInfo == null) {
            return null;
        }
View Full Code Here

Examples of org.drools.persistence.PersistenceContext.findWorkItemInfo()

        Environment env = this.kruntime.getEnvironment();
        //EntityManager em = (EntityManager) env.get(EnvironmentName.CMD_SCOPED_ENTITY_MANAGER);
        PersistenceContext context = ((PersistenceContextManager) env.get( EnvironmentName.PERSISTENCE_CONTEXT_MANAGER )).getCommandScopedPersistenceContext();

       
        WorkItemInfo workItemInfo = context.findWorkItemInfo( id );
        // work item may have been aborted
        if (workItemInfo != null) {
            WorkItemImpl workItem = (WorkItemImpl) internalGetWorkItem(workItemInfo);
            WorkItemHandler handler = (WorkItemHandler) this.workItemHandlers.get(workItem.getName());
            if (handler != null) {
View Full Code Here

Examples of org.drools.persistence.PersistenceContext.findWorkItemInfo()

                workItemInfo = context.merge(workItemInfo);
            }
        }
       
        if (workItemInfo == null) {
            workItemInfo = context.findWorkItemInfo( id );
        }
       
        // work item may have been aborted
        if (workItemInfo != null) {
            WorkItem workItem = internalGetWorkItem(workItemInfo);
View Full Code Here

Examples of org.drools.persistence.PersistenceContext.findWorkItemInfo()

                workItemInfo = context.merge(workItemInfo);
            }
        }
       
        if (workItemInfo == null) {
            workItemInfo = context.findWorkItemInfo( id );
        }
       
        // work item may have been aborted
        if (workItemInfo != null) {
            WorkItem workItem = (WorkItemImpl) internalGetWorkItem(workItemInfo);
View Full Code Here

Examples of org.drools.persistence.PersistenceContext.findWorkItemInfo()

            workItemInfo = this.workItems.get(id);
        }
       
        if (workItemInfo == null && context != null) {

            workItemInfo = context.findWorkItemInfo( id );
        }

        if (workItemInfo == null) {
            return null;
        }
View Full Code Here

Examples of org.drools.persistence.PersistenceContext.findWorkItemInfo()

        Environment env = this.kruntime.getEnvironment();
        //EntityManager em = (EntityManager) env.get(EnvironmentName.CMD_SCOPED_ENTITY_MANAGER);
        PersistenceContext context = ((PersistenceContextManager) env.get( EnvironmentName.PERSISTENCE_CONTEXT_MANAGER )).getCommandScopedPersistenceContext();

       
        WorkItemInfo workItemInfo = context.findWorkItemInfo( id );
        // work item may have been aborted
        if (workItemInfo != null) {
            WorkItemImpl workItem = (WorkItemImpl) internalGetWorkItem(workItemInfo);
            WorkItemHandler handler = (WorkItemHandler) this.workItemHandlers.get(workItem.getName());
            if (handler != null) {
View Full Code Here

Examples of org.drools.persistence.PersistenceContext.findWorkItemInfo()

                workItemInfo = context.merge(workItemInfo);
            }
        }
       
        if (workItemInfo == null) {
            workItemInfo = context.findWorkItemInfo( id );
        }
       
        // work item may have been aborted
        if (workItemInfo != null) {
            WorkItem workItem = internalGetWorkItem(workItemInfo);
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.