cancel
Showing results for 
Search instead for 
Did you mean: 

How to use Seam.NavigateTo ?

Maxime_
Confirmed Champ
Confirmed Champ

Hello,

I'm on Nuxeo 10.10 (LTS 2019) and I would like to redirect the user at the end of an automation chain.

On studio I think I have to use 'Seam.NavigateTo' but impossible for me to find what argument matches.

I want to be redirected to a document extending Folder which path is : /Workspace/workspaces/Dossier_de_sujets/Sujets_à_valider

I've the following automation chain : Fetch > Context.FetchDocument Document > Document.Move Document > Document.FollowLifecycleTransition User Interface > Seam.NavigateTo

If anyone has an idea ?

Thanks a lot

1 ACCEPTED ANSWER

Maxime_
Confirmed Champ
Confirmed Champ

The answer was : you can't use Seam.navigateTo on WebUI... This is only for jsf. (Yes WebUI.navigateTo doesn't apply on WebUI...)

View answer in original post

4 REPLIES 4

pibou_Bouvret
Elite Collaborator
Elite Collaborator

Seam.NavigateTo (now an alias to WebUI.NavigateTo) has only one optionnal parameter (view).

As mentionned in its documentation, the operation "Navigates to the input document."

http://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20Platform%20LTS%202019-10.10/viewOperation/...

In your case, you should have a Repository.GetDocument / Document.Fetch just before with value = '/Workspace/workspaces/Dossier_de_sujets/Sujets_à_valider'

Maxime_
Confirmed Champ
Confirmed Champ

Thanks for your answer.

I still have errors when launching the automation chain, which now is :

  • Context.FetchDocument
  • Document.Move: target: /Workspace/workspaces/Dossier_de_sujets/Sujets_à_valider
  • Document.FollowLifecycleTransition: value: to_review
  • Repository.GetDocument: value: /Workspace/workspaces/Dossier_de_sujets/Sujets_à_valider
  • Seam.NavigateTo: {}

I tried different ways to use navigateTo but I always have the errors you can see in server.log attached to this message, even with the example in the documentation.

Maxime_
Confirmed Champ
Confirmed Champ

The answer was : you can't use Seam.navigateTo on WebUI... This is only for jsf. (Yes WebUI.navigateTo doesn't apply on WebUI...)

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.