//JAVA TO C# CONVERTER TODO Resources.Task: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void completeCaseExecutionNoAuthenticatedTenants()
        public virtual void completeCaseExecutionNoAuthenticatedTenants()
        {
            caseService.ManuallyStartCaseExecution(caseExecutionId);

            identityService.SetAuthentication("user", null, null);

            ////thrown.Expect(typeof(ProcessEngineException));
            ////thrown.ExpectMessage("Cannot update the case execution");

            caseService.CompleteCaseExecution(caseExecutionId);
        }
Пример #2
0
        protected internal virtual string createAndCloseCaseInstance(string tenantId)
        {
            string caseInstanceId;

            ICaseInstanceBuilder builder = caseService.WithCaseDefinitionByKey("oneTaskCase");

            if (string.ReferenceEquals(tenantId, null))
            {
                caseInstanceId = builder.Create().Id;
            }
            else
            {
                caseInstanceId = builder.CaseDefinitionTenantId(tenantId).Create().Id;
            }

            caseService.CompleteCaseExecution(caseInstanceId);
            caseService.CloseCaseInstance(caseInstanceId);

            return(caseInstanceId);
        }