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

## org.jbpm.runtime.manager.api
Interface GlobalProducer

    public interface GlobalProducer

Allows to provide global instances for `KieSession` to be registered on time when `RuntimeEngine` is created.
It will be invoked by RegisterableItemsFactory implementation (especially InjectableRegisterableItemsFactory in CDI world) for every KieSession.

Method Summary
`Map<String,Object>` | `getGlobals(String identifier, Map<String,Object> params)` Returns map of (key = global name, value global instance) of globals to be registered on KieSession Parameters that might be given are as follows: ksession taskService runtimeManager

Method Detail

### getGlobals

    Map<String,Object> getGlobals(String identifier,
                                  Map<String,Object> params)

  Returns map of (key = global name, value global instance) of globals to be registered on KieSession
  Parameters that might be given are as follows:
  - ksession
  - taskService
  - runtimeManager

  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)

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

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