示例#1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public Void call() throws Exception
            public Void call()
            {
                DeleteProcessDefinitionsByIdsCmd cmd = new DeleteProcessDefinitionsByIdsCmd(Arrays.asList(processDefinitionId), cascade, false, skipCustomListeners, false);

                cmd.execute(commandContext);
                return(null);
            }
示例#2
0
        public virtual void delete()
        {
            ensureOnlyOneNotNull(typeof(NullValueException), "'processDefinitionKey' or 'processDefinitionIds' cannot be null", processDefinitionKey, processDefinitionIds);

            Command <Void> command;

            if (!string.ReferenceEquals(processDefinitionKey, null))
            {
                command = new DeleteProcessDefinitionsByKeyCmd(processDefinitionKey, cascade_Renamed, skipCustomListeners_Renamed, skipIoMappings_Renamed, tenantId, isTenantIdSet);
            }
            else if (processDefinitionIds != null && processDefinitionIds.Count > 0)
            {
                command = new DeleteProcessDefinitionsByIdsCmd(processDefinitionIds, cascade_Renamed, skipCustomListeners_Renamed, skipIoMappings_Renamed);
            }
            else
            {
                return;
            }

            commandExecutor.execute(command);
        }