AnsweredAssumed Answered

How to get record type of document in rule script?

Question asked by pnature on Feb 1, 2018
Latest reply on Feb 2, 2018 by afaust

Hi, I am using Alfresco community version: 5.2.0 (r135134-b14)

I have document of my own type.({}mytype) with name "My Document Type"

I want to get name of record type in rule script. How can I get it?

var TYPE = document.type; returns  TYPE {}mytype


In Java I can get name of record using dictionaryService

TypeDefinition type = dictionaryService.getType(QName.createQName("{}mytype"));

I cannot find any possibility in Script API to achieve this.