!! [Implementing Novell Entitlements in a Driver]
The [Novell Entitlements|DirXML Entitlements] framework utilises various aspects of [EDirectory] and [DirXML] to create the [Novell Entitlements|DirXML Entitlements] framework. 

! Entitlements and Drivers
Since an entitlement is only a flag that signals a DirXML driver to grant some arbitrary resource, in order for the grant or revoke of an entitlement to actual have any effect, there must be [DirXML-Policies] within the driver that handle the actual granting or revoking of access to the resource in the connected application.

The [DirXML Script|http://developer.novell.com/documentation/dirxml/dirxmlbk/ref/dirxmlscript/ALL-ELEM.html|target='_blank'] contains explicit support for implementing entitlement policies. The [<if-entitlement>|http://developer.novell.com/documentation/dirxml/dirxmlbk/ref/dirxmlscript/if-entitlement.html] condition is used to determine if a given entitlement has been granted or is changing.

The [<token-entitlement>|http://developer.novell.com/documentation/dirxml/dirxmlbk/ref/dirxmlscript/token-entitlement.html|target='_blank'], [<token-added-entitlement>|http://developer.novell.com/documentation/dirxml/dirxmlbk/ref/dirxmlscript/token-added-entitlement.html|target='_blank'], and [<token-removed-entitlement>|http://developer.novell.com/documentation/dirxml/dirxmlbk/ref/dirxmlscript/token-removed-entitlement.html|target='_blank'] tokens are used to get a list of the granted or revoked entitlements.

The [<do-implement-entitlement>|http://developer.novell.com/documentation/dirxml/dirxmlbk/ref/dirxmlscript/do-implement-entitlement.html|target='_blank'] action is used to mark policy actions that implement entitlements so that the results of the entitlement can be automatically logged to DirXML-EntitlementResult.

The entitlement tokens return a nodeset containing 0 or more <entitlement-impl> elements that can be used to get information about the entitlements and can be passed as an arguments to [<do-implement-entitlement>|http://developer.novell.com/documentation/dirxml/dirxmlbk/ref/dirxmlscript/do-implement-entitlement.html|target='_blank'].

!! [error.do-start-workflow]
Right after a do-start-workflow event, if there is an error, the "[error.do-start-workflow]" will have a value.

!! [Examples using Entitlements Policies]
We have some [Examples using Entitlements Policies] for you to explore.



!!![Removing Novell Granted Entitlements]

!! More Information
There might be more information for this subject on one of the following:
[{ReferringPagesPlugin before='*' after='\n' }]