Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
...
Code Block | ||||
---|---|---|---|---|
| ||||
SET FOREIGN_KEY_CHECKS=0; delete sa from SHKAssignmentsTable as sa left join SHKProcesses as sp on sa.ActivityProcessId = sp.ID where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010); delete sadsaj from SHKAndJoinTable as saj left join SHKActivities as sac on saj.Activity = sac.oid left join SHKProcesses as sp on sac.ProcessId = sp.ID where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010); delete sadsd from SHKDeadlines as sd left join SHKActivities as sac on sd.Activity = sac.oid left join SHKProcesses as sp on sac.ProcessId = sp.ID where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010); delete sad from SHKActivityData as sad left join SHKActivities as sac on sad.Activity = sac.oid left join SHKProcesses as sp on sac.ProcessId = sp.ID where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010); delete sac from SHKActivities as sac left join SHKProcesses as sp on sac.ProcessId = sp.ID where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010); delete spd from SHKProcessData as spd left join SHKProcesses as sp on spd.Process = sp.oid where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010); delete spr from SHKProcessRequesters as spr left join SHKProcesses as sp on spr.Id = sp.ID where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010); delete from SHKProcesses where (State = 1000006 or State = 1000008 or State = 1000010); SET FOREIGN_KEY_CHECKS=1; |
Code Block | ||||
---|---|---|---|---|
| ||||
EXEC sp_MSforeachtable "ALTER TABLE ? NOCHECK CONSTRAINT all" delete sa from SHKAssignmentsTable as sa left join SHKProcesses as sp on sa.ActivityProcessId = sp.ID where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010); delete sadsaj from SHKAndJoinTable as saj left join SHKActivities as sac on saj.Activity = sac.oid left join SHKProcesses as sp on sac.ProcessId = sp.ID where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010); delete sadsd from SHKDeadlines as sd left join SHKActivities as sac on sd.Activity = sac.oid left join SHKProcesses as sp on sac.ProcessId = sp.ID where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010); delete sad from SHKActivityData as sad left join SHKActivities as sac on sad.Activity = sac.oid left join SHKProcesses as sp on sac.ProcessId = sp.ID where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010); delete sac from SHKActivities as sac left join SHKProcesses as sp on sac.ProcessId = sp.ID where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010); delete spd from SHKProcessData as spd left join SHKProcesses as sp on spd.Process = sp.oid where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010); delete spr from SHKProcessRequesters as spr left join SHKProcesses as sp on spr.Id = sp.ID where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010); delete from SHKProcesses where (State = 1000006 or State = 1000008 or State = 1000010); EXEC sp_MSforeachtable "ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all" |
Code Block | ||||
---|---|---|---|---|
| ||||
delete (select sa.* from SHKAssignmentsTable sa left join SHKProcesses sp on sa.ActivityProcessId = sp.ID where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010)); delete sadsaj from SHKAndJoinTable as saj left join SHKActivities as sac on saj.Activity = sac.oid left join SHKProcesses as sp on sac.ProcessId = sp.ID where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010); delete sadsd from SHKDeadlines as sd left join SHKActivities as sac on sd.Activity = sac.oid left join SHKProcesses as sp on sac.ProcessId = sp.ID where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010); delete (select sad.* from SHKActivityData sad left join SHKActivities sac on sad.Activity = sac.oid left join SHKProcesses sp on sac.ProcessId = sp.ID where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010)); delete (select sac.* from SHKActivities sac left join SHKProcesses sp on sac.ProcessId = sp.ID where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010)); delete (select spd.* from SHKProcessData spd left join SHKProcesses sp on spd.Process = sp.oid where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010)); delete (select spr.* from SHKProcessRequesters spr left join SHKProcesses sp on spr.Id = sp.ID where (sp.State = 1000006 or sp.State = 1000008 or sp.State = 1000010)); delete from SHKProcesses where (State = 1000006 or State = 1000008 or State = 1000010); |
...
If you would like to clean the all the process instances data including the running process instances, you can use the following query.
WARNING This deletes all your process records. Perform a backup before running the query below and is not recommended to be executed on a production server!
Chinese |
---|
如果要清除包括正在运行的流程实例在内的所有流程实例数据,则可以使用以下查询。 |
...