Interface CaseInstanceHelper

  • All Known Implementing Classes:
    CaseInstanceHelperImpl

    public interface CaseInstanceHelper
    Author:
    Joram Barrez
    • Method Detail

      • copyHistoricCaseInstanceToRuntime

        CaseInstanceEntity copyHistoricCaseInstanceToRuntime​(HistoricCaseInstance caseInstance)
        Creates a new case instance within the runtime based on the given historic and ended case instance to be reactivated later on. This method only copies all relevant data like the case instance, its plan items and variables to the runtime, but does not further reactivate plan items or trigger the reactivation listener. But it also sets the state of the runtime case instance to active and keeps the historic one in sync.
        Parameters:
        caseInstance - the historic case instance to copy back to the runtime
        Returns:
        the copied case instance entity added back to the runtime
      • callCaseInstanceStateChangeCallbacks

        void callCaseInstanceStateChangeCallbacks​(CallbackData callbackData)