org.kie.internal.runtime.manager.context

## Class CaseContext

- java.lang.Object
- - org.kie.internal.runtime.manager.context.CaseContext

- All Implemented Interfaces:
    org.kie.api.runtime.manager.Context<String>

      public class CaseContext
      extends Object
      implements org.kie.api.runtime.manager.Context<String>

  Context implementation to deliver capabilities to find proper `RuntimeEngine` instances based on case identifier. Use by strategy:
  - PerCase
  To obtain instances of this context use one of the following static methods:
  - `get(String)` to get context for case

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CaseContext(String caseIdentifier)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static CaseContext` | `get(String caseIdentifier)` Returns new instance of `CaseContext` with case identifier
    `String` | `getContextId()`

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

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

- - ### Constructor Detail

    - #### CaseContext

          public CaseContext(String caseIdentifier)

  - ### Method Detail

    - #### getContextId

          public String getContextId()

      Specified by:
        `getContextId` in interface `org.kie.api.runtime.manager.Context<String>`

    - #### get

          public static CaseContext get(String caseIdentifier)

      Returns new instance of `CaseContext` with case identifier
      Parameters:
        `caseIdentifier` - unique case identifier
      Returns:

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