jBPM distribution 6.0.0.Alpha9

org.jbpm.process.workitem.wsht
Class AbstractHTWorkItemHandler

java.lang.Object
  extended by org.jbpm.process.workitem.wsht.AbstractHTWorkItemHandler
All Implemented Interfaces:
WorkItemHandler
Direct Known Subclasses:
AsyncGenericHTWorkItemHandler, GenericHTWorkItemHandler

public abstract class AbstractHTWorkItemHandler
extends Object
implements WorkItemHandler


Field Summary
protected  OnErrorAction action
           
protected  Map<TaskEventKey,EventResponseHandler> eventHandlers
           
protected  org.kie.runtime.KnowledgeRuntime session
           
 
Constructor Summary
AbstractHTWorkItemHandler(org.kie.runtime.KnowledgeRuntime session)
           
AbstractHTWorkItemHandler(org.kie.runtime.KnowledgeRuntime session, OnErrorAction action)
           
 
Method Summary
abstract  void abortWorkItem(WorkItem workItem, WorkItemManager manager)
          The given work item should be aborted.
protected  Task createTaskBasedOnWorkItemParams(WorkItem workItem)
           
protected  ContentData createTaskContentBasedOnWorkItemParams(WorkItem workItem)
           
abstract  void executeWorkItem(WorkItem workItem, WorkItemManager manager)
          The given work item should be executed.
protected  boolean isAutoClaim(WorkItem workItem, Task task)
           
 void setAction(OnErrorAction action)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

protected org.kie.runtime.KnowledgeRuntime session

action

protected OnErrorAction action

eventHandlers

protected Map<TaskEventKey,EventResponseHandler> eventHandlers
Constructor Detail

AbstractHTWorkItemHandler

public AbstractHTWorkItemHandler(org.kie.runtime.KnowledgeRuntime session)

AbstractHTWorkItemHandler

public AbstractHTWorkItemHandler(org.kie.runtime.KnowledgeRuntime session,
                                 OnErrorAction action)
Method Detail

setAction

public void setAction(OnErrorAction action)

createTaskBasedOnWorkItemParams

protected Task createTaskBasedOnWorkItemParams(WorkItem workItem)

createTaskContentBasedOnWorkItemParams

protected ContentData createTaskContentBasedOnWorkItemParams(WorkItem workItem)

isAutoClaim

protected boolean isAutoClaim(WorkItem workItem,
                              Task task)

executeWorkItem

public abstract void executeWorkItem(WorkItem workItem,
                                     WorkItemManager manager)
Description copied from interface: WorkItemHandler
The given work item should be executed.

Specified by:
executeWorkItem in interface WorkItemHandler
Parameters:
workItem - the work item that should be executed
manager - the manager that requested the work item to be executed

abortWorkItem

public abstract void abortWorkItem(WorkItem workItem,
                                   WorkItemManager manager)
Description copied from interface: WorkItemHandler
The given work item should be aborted.

Specified by:
abortWorkItem in interface WorkItemHandler
Parameters:
workItem - the work item that should be aborted
manager - the manager that requested the work item to be aborted

jBPM distribution 6.0.0.Alpha9

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