cancel
Showing results for 
Search instead for 
Did you mean: 

How to obtain conversationId from within Operation plugin?

chernish2_
Champ in-the-making
Champ in-the-making

I'm working on a Nuxeo plugin which implements an operation. So I'm using @Operation, @OperationMethod and @Context annotations. The purpose of plugin is to expose a LiveEdit link for a given document to some outer service, and the problem is I can't obtain conversationId which is required for building a nxedit: URL. Nuxeo source code uses Manager.instance().getCurrentConversationId() but I can't obtain Manager instance in my plugin either. And it seems impossible to inject Manager instance via @Context, it returns just null value. How can I get proper LiveEdit URL (and especially conversationId)? Thank you in advance.

3 REPLIES 3

adam_bo_
Star Contributor
Star Contributor

Have you looked at ConversationIdGenerator.java ?

chernish2_
Champ in-the-making
Champ in-the-making

The problem is LiveEdit URL should contain EXISTING conversationId. I can create a new one, but such an nxedit

Vladimir_Pasqui
Star Collaborator
Star Collaborator

Hello,

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.