protected internal virtual IList <string> collectExternalTaskIds() { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final java.util.Set<String> collectedIds = new java.util.HashSet<String>(); ISet <string> collectedIds = new HashSet <string>(); IList <string> externalTaskIds = builder.ExternalTaskIds; if (externalTaskIds != null) { ensureNotContainsNull(typeof(BadUserRequestException), "External task id cannot be null", "externalTaskIds", externalTaskIds); collectedIds.addAll(externalTaskIds); } ExternalTaskQueryImpl externalTaskQuery = (ExternalTaskQueryImpl)builder.ExternalTaskQuery; if (externalTaskQuery != null) { collectedIds.addAll(externalTaskQuery.listIds()); } //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final java.util.List<String> collectedProcessInstanceIds = collectProcessInstanceIds(); IList <string> collectedProcessInstanceIds = collectProcessInstanceIds(); if (collectedProcessInstanceIds.Count > 0) { Context.CommandContext.runWithoutAuthorization(new CallableAnonymousInnerClass(this, collectedIds, collectedProcessInstanceIds)); } return(new List <string>(collectedIds)); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public Void call() throws Exception public Void call() { ExternalTaskQueryImpl query = new ExternalTaskQueryImpl(); query.processInstanceIdIn(collectedProcessInstanceIds.ToArray()); collectedIds.addAll(query.listIds()); return(null); }