Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| jBPM distribution 6.0.0.CR2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

    @Veto
    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:

- `KieSession`
- `TaskService`

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

Field Summary

Fields inherited from class org.jbpm.services.task.wih.AbstractHTWorkItemHandler
`action`

Constructor Summary
`NonManagedLocalHTWorkItemHandler()`
`NonManagedLocalHTWorkItemHandler(KieSession ksession, TaskService taskService)`

Method Summary
`void` | `abortWorkItem(WorkItem workItem, WorkItemManager manager)` The given work item should be aborted.
`void` | `close()`
`void` | `executeWorkItem(WorkItem workItem, WorkItemManager manager)` The given work item should be executed.
`KieSession` | `getKsession()`
`TaskService` | `getTaskService()`
`void` | `init()`
`void` | `setKsession(KieSession ksession)`
`void` | `setTaskService(TaskService taskService)`

Methods inherited from class org.jbpm.services.task.wih.AbstractHTWorkItemHandler
`createTaskBasedOnWorkItemParams, createTaskContentBasedOnWorkItemParams, isAutoClaim, setAction`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### NonManagedLocalHTWorkItemHandler

    public NonManagedLocalHTWorkItemHandler()

### NonManagedLocalHTWorkItemHandler

    public NonManagedLocalHTWorkItemHandler(KieSession ksession,
                                            TaskService taskService)

Method Detail

### 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 executed
    `manager` - 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 aborted
    `manager` - 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)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| jBPM distribution 6.0.0.CR2
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.