package weaver.interfaces.workflow.action.javacode; import weaver.conn.RecordSet; import weaver.interfaces.workflow.action.Action; import weaver.general.BaseBean; import weaver.soa.workflow.request.RequestInfo; /** * Online custom action interface */ public class Action20240511020255 extends BaseBean implements Action{ /** * After selecting aciton after the process path node, this method will be executed after the node is submitted. */ public String execute(RequestInfo request) { RecordSet recordSet = new RecordSet(); recordSet.executeUpdate("DELETE FROM uf_pushArchivesLog " + "WHERE id NOT IN ( " + " SELECT MIN(id) " + " FROM uf_pushArchivesLog where type = 0 or type = 1 " + " GROUP BY REQUEST " + ");"); return Action.SUCCESS; } }