コード例 #1
0
        public virtual void deleteHistoricTaskInstancesByCaseInstanceIds(IList <string> caseInstanceIds)
        {
            CommandContext commandContext = Context.CommandContext;

            HistoricDetailManager.deleteHistoricDetailsByTaskCaseInstanceIds(caseInstanceIds);

            commandContext.CommentManager.deleteCommentsByTaskCaseInstanceIds(caseInstanceIds);

            AttachmentManager.deleteAttachmentsByTaskCaseInstanceIds(caseInstanceIds);

            HistoricIdentityLinkManager.deleteHistoricIdentityLinksLogByTaskCaseInstanceIds(caseInstanceIds);

            DbEntityManager.deletePreserveOrder(typeof(HistoricTaskInstanceEntity), "deleteHistoricTaskInstanceByCaseInstanceIds", caseInstanceIds);
        }
コード例 #2
0
        /// <summary>
        /// Deletes all data related with tasks, which belongs to specified process instance ids. </summary>
        /// <param name="processInstanceIds"> </param>
        /// <param name="deleteVariableInstances"> when true, will also delete variable instances. Can be false when variable instances were deleted separately. </param>
        public virtual void deleteHistoricTaskInstancesByProcessInstanceIds(IList <string> processInstanceIds, bool deleteVariableInstances)
        {
            CommandContext commandContext = Context.CommandContext;

            if (deleteVariableInstances)
            {
                HistoricVariableInstanceManager.deleteHistoricVariableInstancesByTaskProcessInstanceIds(processInstanceIds);
            }

            HistoricDetailManager.deleteHistoricDetailsByTaskProcessInstanceIds(processInstanceIds);

            commandContext.CommentManager.deleteCommentsByTaskProcessInstanceIds(processInstanceIds);

            AttachmentManager.deleteAttachmentsByTaskProcessInstanceIds(processInstanceIds);

            HistoricIdentityLinkManager.deleteHistoricIdentityLinksLogByTaskProcessInstanceIds(processInstanceIds);

            DbEntityManager.deletePreserveOrder(typeof(HistoricTaskInstanceEntity), "deleteHistoricTaskInstanceByProcessInstanceIds", processInstanceIds);
        }