Examples of abortWorkItem()


Examples of org.drools.runtime.process.WorkItemManager.abortWorkItem()

    }
   
    public void abort(WorkItem workItem) {
        WorkItemManager manager = workItems.get(workItem);
        if (manager != null) {
            manager.abortWorkItem(workItem.getId());
            workItems.remove(workItem);
            reloadWorkItemsList();
        }
        selectButton.setEnabled(getSelectedWorkItem() != null);
    }
View Full Code Here

Examples of org.drools.runtime.process.WorkItemManager.abortWorkItem()

    }
   
    public void abort(WorkItem workItem) {
        WorkItemManager manager = workItems.get(workItem);
        if (manager != null) {
            manager.abortWorkItem(workItem.getId());
        }
        workItems.remove(workItem);
        update();
        selectButton.setEnabled(getSelectedWorkItem() != null);
    }
View Full Code Here

Examples of org.drools.runtime.process.WorkItemManager.abortWorkItem()

            }
          } else {
            synchronized ( this.managers ) {
              WorkItemManager manager = this.managers.get(taskId);
                if (manager != null) {
                  manager.abortWorkItem(workItemId);
                }
            }
          }
        }
View Full Code Here

Examples of org.drools.runtime.process.WorkItemManager.abortWorkItem()

            }
          } else {
            synchronized ( this.managers ) {
              WorkItemManager manager = this.managers.get(taskId);
                if (manager != null) {
                  manager.abortWorkItem(workItemId);
                }
            }
          }
        }
    }
View Full Code Here

Examples of org.drools.runtime.process.WorkItemManager.abortWorkItem()

            }
          } else {
            synchronized ( this.managers ) {
              WorkItemManager manager = this.managers.get(taskId);
                if (manager != null) {
                  manager.abortWorkItem(workItemId);
                }
            }
          }
        }
View Full Code Here

Examples of org.kie.api.runtime.process.WorkItemHandler.abortWorkItem()

        // 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) {
                handler.abortWorkItem(workItem, this);
            } else {
                if ( workItems != null ) {
                    workItems.remove( id );
                    throwWorkItemNotFoundException( workItem );
                }
View Full Code Here

Examples of org.kie.api.runtime.process.WorkItemHandler.abortWorkItem()

        WorkItemImpl workItem = (WorkItemImpl) workItems.get(new Long(id));
        // work item may have been aborted
        if (workItem != null) {
            WorkItemHandler handler = this.workItemHandlers.get(workItem.getName());
            if (handler != null) {
                handler.abortWorkItem(workItem, this);
            } else {
                workItems.remove( workItem.getId() );
                throw new WorkItemHandlerNotFoundException( "Could not find work item handler for " + workItem.getName(),
                                                                 workItem.getName() );
            }
View Full Code Here

Examples of org.kie.api.runtime.process.WorkItemHandler.abortWorkItem()

        // 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) {
                handler.abortWorkItem(workItem, this);
            } else {
                if ( workItems != null ) {
                    workItems.remove( id );
                    throwWorkItemNotFoundException( workItem );
                }
View Full Code Here

Examples of org.kie.api.runtime.process.WorkItemHandler.abortWorkItem()

        WorkItemImpl workItem = (WorkItemImpl) workItems.get(new Long(id));
        // work item may have been aborted
        if (workItem != null) {
            WorkItemHandler handler = this.workItemHandlers.get(workItem.getName());
            if (handler != null) {
                handler.abortWorkItem(workItem, this);
            } else {
                workItems.remove( workItem.getId() );
                throw new WorkItemHandlerNotFoundException( "Could not find work item handler for " + workItem.getName(),
                                                                 workItem.getName() );
            }
View Full Code Here

Examples of org.kie.api.runtime.process.WorkItemHandler.abortWorkItem()

        // 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) {
                handler.abortWorkItem(workItem, this);
            } else {
                if ( workItems != null ) {
                    workItems.remove( id );
                    throwWorkItemNotFoundException( workItem );
                }
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.