Package 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<java.lang.String>`

      public class CaseContext
      extends java.lang.Object
      implements org.kie.api.runtime.manager.Context<java.lang.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 | Description
    --- | ---
    `CaseContext​(java.lang.String caseIdentifier)` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static CaseContext` | `get​(java.lang.String caseIdentifier)` | Returns new instance of `CaseContext` with case identifier
    `java.lang.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​(java.lang.String caseIdentifier)

  - ### Method Detail

    - #### getContextId

          public java.lang.String getContextId()

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

    - #### get

          public static CaseContext get​(java.lang.String caseIdentifier)

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