Hello,
In the following process (http://www.hostingpics.net/viewer.php?id=375055test.png), I would like to logout the user only on the “END NUMBER 1”.
I have seen that I must used something like “http://localhost:8080/bonita/logoutservice” but I do not know how to use it. Can you explain me?
Another solution is to use a confirmation page with this code but it is only used in the last USER TASK and in my process if I apply it in the last user task, there were more than one end impacted by it and I do not want it. So, I think that it is not a good solution.
The problem as I see it is the location of your confirmation page…
I think this should be an EXTERNAL Custom page that you call which then does the REST logoutservice with the current user.
You need to do the following:
After e add a service task that executes a call to your logout page
http://myserver/logoutpage.html
Create your logoutpage.html and store it on the server
This is NOT a Bonita form it is just a hand written html page.
Add some JavaScript to the page which always executes the REST call to log the user out…and this is the call: http://localhost:8080/bonita/logoutservice
That’s it,
regards
Seán
PS: If this reply answers your question, please mark a resolved.
I try this and I think it works too:
I create a new human task after e, and do this on it : http://www.hostingpics.net/viewer.php?id=443134disconnect.png
Is it OK for u Sean?
After e add a service task that executes a call to your logout page
http://myserver/logoutpage.html
==> how do this call? in opération? in a connector? with the version 6.4, i do not have an access to the tab “Application > Confirmation” (not exists)
I’ve changed the design just a touch…much easier
- After e add a human task and add a pageflow page
- Click on the Submit button and select Options
- Check Insert widget if and set formula to 1=2 (this just stops it showing)
- Add an HTML widget to the page (anywhere it doesn’t matter)
- For the HTML widget data add the following code as a constant
this will log you out and return you to the login page
If you want to go somewhere else just change the
var goToPage = window.location.origin+"/bonita";
to (for example)
var goToPage = "www.google.com";
regards
Seán
PS: If this reply answers your question, please mark a resolved.
Thank you very much, it really helped me. I just need to skip the name of the added human task because it’s a nonsense to click on a tash to do if it disconnect the user just after.
Skipping the name of the task is easy just use the confirmation page example from the projects area…
http://community.bonitasoft.com/project/automatic-confirmation-template
I use this all the time (in 6) when using 7 there is a different one…
http://community.bonitasoft.com/project/redirect-next-task-widget
regards
Seán
If it works for you that’s fine, me - I would still do it my way - this is only calling the rest call it doesn’t go anywhere…unless you see something I don’t.
Either way is fine if they work for you
regards
Seán