泛微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 &
文章来源地址https://www.toymoban.com/news/detail-794758.html
文章来源:https://www.toymoban.com/news/detail-794758.html
到了这里,关于泛微OA获取流程附件的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!