Copy edms file from one fileseq to anotherΒΆ

Note

You can find these scripts inside the folder pmis/STND_PMIS/test/console/example.
If you want to execute them, you can use the Jython Console from the devtool menu.

filename => ex38.py

from pmis.common.util import *
from pmis.core import CoreUtil

# SET PARAMETERS HERE!
fromSeq = ""
toSeq = ""
toUser = ""

coreDao = Beans.coreDao
commonServ = Beans.commonService

p = HashMap();
p.put("file_seq", fromSeq);

file = coreDao.getList("core.sql.commAttchFileDetail", p );
for f in file:
        commonServ.copyEdmsFile( f, toUser, toSeq, CoreUtil.getRevid() );