简体   繁体   中英

Polarion SDK: Set document name in workflow context

I am trying to set the document ID from ScriptFunction. I tried:

workflowContext.getTarget().setId("Demo");

But it is not working

You cannot set an Id of a IWorkflowObject. you may want use the IModule.move(java.lang.String newModuleFolder, java.lang.String newModuleName) function.

see sdk doc here: https://almdemo.polarion.com/polarion/sdk/doc/javadoc/com/polarion/alm/tracker/model/IModule.html#move(java.lang.String,java.lang.String)

Due to the nature of the SVN storage it may not work but breaks with a broken transaction.

I cannot test it at the moment.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM