OpenDeploy query

While doing publishing through command line using iwocmd command, is it possible to ignore publishing the locked files or files which are in still in edit mode?

./iwodcmd start <config filename> -k notifyActivity=yes

I read the document but couldn't find anything.

TIA,

Answers

  • romilrose
    romilrose Member
    edited September 5 #2

    Cannot do in OD. May be if you consider runnning your OD command via shellscript etc, then after your filelist is ready, you can loop your filelist files with /TeamSite/bin/iwlockinfo or /TeamSite/bin/iwfilestate to find if file is locked or edit-mode. Remove those files and trigger OD.

  • Are you using a Workflow ? There are WF parameters to autolock a file, that will cause the WF to fail if it cannot lock the file. Likely not the behavior you are looking for, but an option.

    The filelist suggestion is the best approach. If you use a WF, you can have a step before the deployment that will remove any files from the task that are locked

    Also, I do not think there is a way to see if a file is being edited (unless it is locked). The CLT iwfilestate shows if it is editable, but doesn't know if it is being edited.

  • romilrose
    romilrose Member
    edited September 6 #4

    Yes, my bad. iwfilestate won't help to find whether file is edited or not. We can use /TeamSite/bin/iwattrib vpath modified

  • Doubt that will help either. At least if they are using a WF, the files they submit should be modified. Do distinguishing a file being worked on now, from a file that was completed before and meant to go out is likely impossible.

TeamSite Developer Resources

  • Docker Automation

  • LiveSite Content Services (LSCS) REST API

  • Single Page Application (SPA) Modules

  • TeamSite Add-ons

If you are interested in gaining full access to the content, you can register for a My Support account here.
image
OpenText CE Products
TeamSite
APIs