You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.0 KiB
Java
40 lines
1.0 KiB
Java
package weaver.interfaces.workflow.action.javacode;
|
|
|
|
|
|
import lombok.SneakyThrows;
|
|
import weaver.conn.RecordSet;
|
|
import weaver.conn.RecordSetTrans;
|
|
import weaver.interfaces.workflow.action.Action;
|
|
import weaver.general.BaseBean;
|
|
import weaver.soa.workflow.request.RequestInfo;
|
|
|
|
import javax.servlet.ServletContext;
|
|
import java.io.IOException;
|
|
import java.net.ServerSocket;
|
|
import java.net.Socket;
|
|
|
|
/**
|
|
* Online custom action interface
|
|
*/
|
|
public class Action20230907070937 extends BaseBean implements Action{
|
|
|
|
|
|
public static final String sql = "update workflow_requestlog set remark='测试流程该意见' where requestid=331343 and logid=19221";
|
|
|
|
/**
|
|
* After selecting aciton after the process path node, this method will be executed after the node is submitted.
|
|
*/
|
|
@Override
|
|
public String execute(RequestInfo request) {
|
|
RecordSetTrans rs = new RecordSetTrans();
|
|
try {
|
|
rs.executeUpdate(sql);
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
}
|
|
return Action.SUCCESS;
|
|
}
|
|
|
|
|
|
}
|