jBPM distribution 6.0.0.CR4-Pre1

org.jbpm.executor.impl.runtime
Class AsyncHandlerProducer

java.lang.Object
  extended by org.jbpm.executor.impl.runtime.AsyncHandlerProducer
All Implemented Interfaces:
WorkItemHandlerProducer

@ApplicationScoped
public class AsyncHandlerProducer
extends Object
implements WorkItemHandlerProducer

Dedicated WorkItemHandlerProducer to register AsyncWorkItemHandler in CDI environment when using deployment services (jbpm-kie-services).


Constructor Summary
AsyncHandlerProducer()
           
 
Method Summary
 Map<String,WorkItemHandler> getWorkItemHandlers(String identifier, Map<String,Object> params)
          Returns map of (key = work item name, value work item handler instance) of work items to be registered on KieSession
Parameters that might be given are as follows: ksession taskService runtimeManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncHandlerProducer

public AsyncHandlerProducer()
Method Detail

getWorkItemHandlers

public Map<String,WorkItemHandler> getWorkItemHandlers(String identifier,
                                                       Map<String,Object> params)
Description copied from interface: WorkItemHandlerProducer
Returns map of (key = work item name, value work item handler instance) of work items to be registered on KieSession
Parameters that might be given are as follows:

Specified by:
getWorkItemHandlers in interface WorkItemHandlerProducer
Parameters:
identifier - - identifier of the owner - usually RuntimeManager that allows the producer to filter out and provide valid instances for given owner
params - - owner might provide some parameters, usually KieSession, TaskService, RuntimeManager instances
Returns:
map of work item handler instances (recommendation is to always return new instances when this method is invoked)

jBPM distribution 6.0.0.CR4-Pre1

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