Running Lucene queries inside server-rendered templates executes for every row in the sheet. Avoid complex queries in templates displayed on large datasets.
Transaction service usage in server-rendered templates is primarily for understanding the execution context. Consult Polarion API documentation for available methods.
Services are cached in a static context at server startup
Lifetime
Services persist for the lifetime of the Polarion server process
Thread safety
Service instances are thread-safe and shared across all template evaluations
Extension
Per-evaluation variables ($item, $wi, $module, $context) are layered on top of the cached service context
Platform services ($trackerService, $txService, $repositoryService, $securityService) are shared across all evaluations. Entity-specific variables ($item, $wi, $module, $context) are set fresh for each work item evaluation.
If a service method call fails during template evaluation, the server renderer returns the #SERVER_RENDER_ERROR marker. Check the Polarion server logs for:
Exception Type
Cause
MethodInvocationException
Service method threw an exception (e.g., permission denied, null argument)