AnsweredAssumed Answered

Checking node existence on behaviour execution: nodeService.exists(nodeRef) vs status.isDeleted()

Question asked by eureka on Jul 25, 2013
Latest reply on Aug 22, 2015 by p_bodnar
Hi all,

I've tried to search for this topic in the forum with no luck, so forgive me if it has already been asked and please point me to the post/s where I can find any information that could help me.

I was having this doubt: when creating a Behaviour bound to onUpdateNodePolicy is it safer to check for the existence of the current node using NodeService


or Status

Status status = nodeService.getNodeStatus(nodeRef);
if (status != null && !status.isDeleted()) {


Thank in advance to anyone who might want to share his/her opinion about this subject.