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 Details

    • CaseContext

      public CaseContext(String caseIdentifier)
  • Method Details

    • 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: