Page 1 of 1

Workflow remove a Tag in the automation

Posted: Fri Jan 19, 2018 8:59 am
by teamSas
Hi Logicaldoc users,
is there a way to remove a tag from a document in the workflow automation.

Adding is no problem when using:

Code: Select all

 $doc.addTag("TestTag")
 $DocTool.store($doc)
already tried it this way but no luck:

Code: Select all

 $doc.removeTag("removeThisTag")
 $DocTool.store($doc)

Re: Workflow remove a Tag in the automation

Posted: Fri Jan 26, 2018 4:56 pm
by shatzing
Hi teamSas,
with an object reference like the one you have $doc, which is an AbstractDocument
com.logicaldoc.core.document.AbstractDocument
you can use all the methods available in the class.

https://github.com/logicaldoc/document- ... ument.java

As you might see there is no method removeTag(String),
bu you can use $doc.clearTags()