org.jbpm.runtime.manager.impl.factory

## Class LocalTaskServiceFactory

- java.lang.Object
- - org.jbpm.runtime.manager.impl.factory.LocalTaskServiceFactory

- All Implemented Interfaces:
    org.kie.internal.runtime.manager.TaskServiceFactory

      public class LocalTaskServiceFactory
      extends Object
      implements org.kie.internal.runtime.manager.TaskServiceFactory

  A regular `TaskServiceFactory` implementation that is intended to be used in non CDI environments. This creates a new `TaskService` instance for every call to the factory. The `TaskService` instance will be equipped with a `JbpmJTATransactionManager` for transaction management. This is mandatory as it must participate in already active transaction if such exists.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LocalTaskServiceFactory(org.kie.api.runtime.manager.RuntimeEnvironment runtimeEnvironment)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `org.kie.api.task.TaskService` | `newTaskService()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### LocalTaskServiceFactory

          public LocalTaskServiceFactory(org.kie.api.runtime.manager.RuntimeEnvironment runtimeEnvironment)

  - ### Method Detail

    - #### newTaskService

          public org.kie.api.task.TaskService newTaskService()

      Specified by:
        `newTaskService` in interface `org.kie.internal.runtime.manager.TaskServiceFactory`

    - #### close

          public void close()

      Specified by:
        `close` in interface `org.kie.internal.runtime.manager.TaskServiceFactory`

Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.