org.jbpm.services.task.wih
Class NonManagedLocalHTWorkItemHandler
java.lang.Object
org.jbpm.services.task.wih.AbstractHTWorkItemHandler
org.jbpm.services.task.wih.NonManagedLocalHTWorkItemHandler
- All Implemented Interfaces:
- WorkItemHandler
public class NonManagedLocalHTWorkItemHandler
- extends AbstractHTWorkItemHandler
LocalHumanTaskHandler that is intended to be used when RuntimeManager is not used, most likely
in backward compatible cases where simply providing:
is usual case. It will ensure that task listener will be registered on task service.
Important notes are that this handler instance should have independent TaskService
instances as it's close
method will clear task listeners on the task service.
This is not suited for CDI environments and thus it's Veto'ed.
Can be bootstrapped in two ways:
by constructor and providing both KieSession and TaskService
by no arg constructor and then use setters for KieSession and TaskService,
after using setters call to init method is required
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NonManagedLocalHTWorkItemHandler
public NonManagedLocalHTWorkItemHandler()
NonManagedLocalHTWorkItemHandler
public NonManagedLocalHTWorkItemHandler(KieSession ksession,
TaskService taskService)
init
public void init()
close
public void close()
executeWorkItem
public void executeWorkItem(WorkItem workItem,
WorkItemManager manager)
- Description copied from interface:
WorkItemHandler
- The given work item should be executed.
- Specified by:
executeWorkItem
in interface WorkItemHandler
- Specified by:
executeWorkItem
in class AbstractHTWorkItemHandler
- Parameters:
workItem
- the work item that should be executedmanager
- the manager that requested the work item to be executed
abortWorkItem
public void abortWorkItem(WorkItem workItem,
WorkItemManager manager)
- Description copied from interface:
WorkItemHandler
- The given work item should be aborted.
- Specified by:
abortWorkItem
in interface WorkItemHandler
- Specified by:
abortWorkItem
in class AbstractHTWorkItemHandler
- Parameters:
workItem
- the work item that should be abortedmanager
- the manager that requested the work item to be aborted
getKsession
public KieSession getKsession()
setKsession
public void setKsession(KieSession ksession)
getTaskService
public TaskService getTaskService()
setTaskService
public void setTaskService(TaskService taskService)
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.