Beispiel #1
0
 public virtual void checkDeleteHistoricCaseInstance(HistoricCaseInstance instance)
 {
     if (instance != null && !TenantManager.isAuthenticatedTenant(instance.TenantId))
     {
         throw LOG.exceptionCommandWithUnauthorizedTenant("delete the historic case instance '" + instance.Id + "'");
     }
 }
Beispiel #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setUpRuntimeData()
        public virtual void setUpRuntimeData()
        {
            historyServiceMock = mock(typeof(HistoryService));

            // runtime service
            when(processEngine.HistoryService).thenReturn(historyServiceMock);

            historicInstanceMock = MockProvider.createMockHistoricCaseInstance();
            historicQueryMock    = mock(typeof(HistoricCaseInstanceQuery));

            when(historyServiceMock.createHistoricCaseInstanceQuery()).thenReturn(historicQueryMock);
            when(historicQueryMock.caseInstanceId(anyString())).thenReturn(historicQueryMock);
            when(historicQueryMock.singleResult()).thenReturn(historicInstanceMock);
        }
Beispiel #3
0
 public virtual void checkDeleteHistoricCaseInstance(HistoricCaseInstance instance)
 {
 }