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