泛微OA获取流程附件保存到服务器指定的路径里,这里以主表单一文件为例,代码如下:
package weaver.interfaces.workflow.action;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import weaver.conn.RecordSet;
import weaver.file.ImageFileManager;
import weaver.general.Util;
import weaver.soa.workflow.request.Property;
import weaver.soa.workflow.request.RequestInfo;
import java.io.*;
import java.util.Objects;
public class GetFileStream implements Action {
private Log log = LogFactory.getLog(GetFileStream.class);
@Override
public String execute(RequestInfo requestInfo) {
String nr = "";
String tableName = requestInfo.getRequestManager().getBillTableName();
Property[] properties = requestInfo.getMainTableInfo().getProperty();
for (Property property : properties) {
String name = Util.null2String(property.getName());
String value &