Workflow remove a Tag in the automation

LogicalDOC has many interesting features, but requires some configuration process to show its full potential.

Moderator: car031

teamSas
Posts: 3
Joined: Thu Jan 04, 2018 4:10 pm

Workflow remove a Tag in the automation

Fri Jan 19, 2018 8:59 am

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)
shatzing
Posts: 78
Joined: Tue Jan 21, 2014 9:46 am

Re: Workflow remove a Tag in the automation

Fri Jan 26, 2018 4:56 pm

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()

Return to “Configuration”

Who is online

Users browsing this forum: No registered users and 1 guest