Application Tab in bonita portal

1
0
-1

HI,

We've installed bonita 6.5.3 production setup on server .. Succesfully deployed .bar file of the application but I'm stuck with getting into the application ... I went through below mentioned link to set up an URL to load my application "http://documentation.bonitasoft.com/accessing-bonita-bpm-portal-and-form..." .. but im not getting where and how to include this piece of code ,.. Can any one help me on same ....

Also , I came to know that there is an application tab is it available in community version ..

here is the link which i refered "http://documentation.bonitasoft.com/applications"

Added one more question .. how to retrive the manager mail id and user maild id of the logged user ... :)

Waiting for the community ppl's response :)

1 answer

1
0
-1

Part 1,

One question at a time, it works easier... :)

When you loaded the BAR, did you ENABLE it? Is it in the list of enabled processes?

If so you should see it in the User Processes List, UNLESS, if it is a service only task that requires no actors, then you will NOT see it. This is when there are no Human interactions, the process cannot be started manually it has to be started by another process by script using startProcess.

However, reading your question again, to access the form as per the link, the form must exist, as in a case must already be started and the form residing in the system ready for someone to do something.

Thanks by the way - I've been looking for this :)

This link is useful for sending in an email and letting the user go to the page...

Part 2:

to get the users email address, use something like this:

import org.bonitasoft.engine.identity.UserWithContactData;
import org.bonitasoft.engine.identity.User;

UserWithContactData contact = apiAccessor.getIdentityAPI().getUserWithProfessionalDetails(user.getId());
        if (contact!=null){
String email = user.getEmail();
        }

Comments

Submitted by vidya.muniyappa on Fri, 07/10/2015 - 07:10

HI ,

import org.bonitasoft.engine.identity.UserWithContactData; import org.bonitasoft.engine.identity.User;

UserWithContactData contact = apiAccessor.getIdentityAPI().getUserWithProfessionalDetails(user.getId()); if (contact!=null){ String email = user.getEmail(); }

piece of code is throwing error for me :(

Submitted by vidya.muniyappa on Fri, 07/10/2015 - 07:23

It worked after dis code

import org.bonitasoft.engine.identity.UserWithContactData;

def userid = loggedUserId.value def username = apiAccessor.identityAPI.getUser(userid) def mangerID = username.getManagerUserId() def managerObj = apiAccessor.identityAPI.getUser(mangerID) def managerName = managerObj.getUserName() UserWithContactData userData = apiAccessor.getIdentityAPI().getUserWithProfessionalDetails(mangerID) def mailId = userData.contactData.getEmail() return mailId

Submitted by subratkumar.behera on Fri, 07/10/2015 - 09:15

Hi Sean , We have exported a process as .bar and then imported it on Bonita BPM Portal .The process is enabled and user can see the process and all the activities can be performed within that . we want to use this process as a separate application and it should be seen as an independent application for the user but finally it should be manageable from Bonita Portal . (from Login to doing activities within that and logging out from the application). Is there a way to access the process as an application ? Regards Subrat

Submitted by Sean McP on Fri, 07/10/2015 - 09:46

I think what you have to do in this case is, in your application...

  1. login via rest
  2. start the process via rest (then wait for the forms to be available)
  3. link to form1 via the link1
  4. wait for next process step to be available
  5. link to form2 via the link2
  6. wait for next process step to be available
  7. link to form3 via the link3
  8. wait for next process step to be available
  9. etc.
  10. logoff via rest

if someone else has a better idea maybe they can chip in, otherwise, why not just use the portal? Create an application Link via Chrome and use it that way? Not sure how to do that to get to a specific process though but might be easier than writing an application to run an application...if you see what I mean.

regards

Notifications