How to change url of bonita?

1
0
-1

Hi,

Just want to ask how to change the url bonita. The path I am using right now is hobnta01:8080/bonita the hobnta01 is the machine name of my server to where it is reside but I want to change it and make it http://webforms.smretail.intranet:8080/bonita. Is there a configuration for this? Please help.

Thanks

Comments

Submitted by Dibyajit.Roy on Wed, 03/01/2017 - 07:12

Hi
The Way we implemented was using Apache Web Server.
You could Download Apache and Install it in your computer.( There is a great tutorial at Servermom Blog).
Apache Configuration can be kept to Default values. Just Point the intended URl to hobnta01:8080/bonita .
Apache lets you implement additional Security
Regards

Submitted by ChristianMichae... on Wed, 03/01/2017 - 07:25

Hi Roy,

Ill check on this. I have another question Roy. Need your help again on this. Please check this. http://community.bonitasoft.com/questions-and-answers/how-create-custom-...

Thanks

Submitted by ChristianMichae... on Thu, 03/02/2017 - 08:18

Hi Roy,

Can you give me the link for the tutorial on changing the URL?

Submitted by Dibyajit.Roy on Thu, 03/02/2017 - 08:21

http://www.servermom.org/how-to-add-new-site-into-your-apache-based-ubun...
http://www.servermom.org/full-setup-working-apache-server-ubuntu-16-04/3...

Apart from these, Also google as much as possible.
In my case , I did not setup the Server. We have a Specialist do it. But the guy used google and Servermom blogs to install and configure.

Submitted by ChristianMichae... on Thu, 03/02/2017 - 08:33

Hi Roy,

We want to install it in a VM ware server running on windows OS and then configure the URL. This site is not accessible outside of our company this is an internal system. I just want to configure the url. Is this possible?

Thanks

Submitted by Dibyajit.Roy on Thu, 03/02/2017 - 08:41

Yes, Its possible.
We have Similar setup. In the Apache, We have configured the IP address of our organization.
Hence outside IP is not allowed to access the URL.
Usually Inside apache, you can configure the Settings to point to your localhost settings.
You just need to change the settings on only 2 files and leave the Rest as it is.
httpd.conf and ssl.conf (google it.)

We have used a WebLogic as Application server and Apache as WebServer.
There could be other ways to achieve it. But I am not aware of other methods as I had the Setup completed by Someone else.
If you have access to BonitaSoft Documentation, there are Documents available for the configuration Process.

I have a personal Question to you.
Are you setting up the Community Edition in your Local Server ?
What Steps would you be following ?
Kindly Keep a Document of the Steps Followed ?
I am a newbie here and Would like to Get as much info as Possible .

Submitted by ChristianMichae... on Thu, 03/02/2017 - 09:03

Hi Roy,

I cannot understand the steps to configure the URL and the apache. If you run bonita it has already its own web server embedded on the application right? I just want to change the URL path based on my main question.

I am setting up the community edition in my local server
I dont follow any steps since I dont know how to set it up.

Thanks

Submitted by Dibyajit.Roy on Thu, 03/02/2017 - 09:06

Sorry Man, I dont have any idea regarding changing the URL from the Bonita Configuration files.

Perhaps someone from the Community will be able to Help you out.

Best of luck.

Submitted by ChristianMichae... on Thu, 03/02/2017 - 09:32

Hi Roy,

Thanks. How about the update for assigning a task to a default group? And the first person to approve will be captured? Have you already have a sample?

Thanks

Submitted by Dibyajit.Roy on Thu, 03/02/2017 - 10:32

https://drive.google.com/open?id=0B-MHHSlP6-kMTk9QZ29yckJuVEE

I am still not able to work with Community Edition.Hence the Steps are listed.

Submitted by ChristianMichae... on Thu, 03/02/2017 - 10:57

Hi Roy,

How about assigning the task to a specific group?

Thanks

Submitted by Dibyajit.Roy on Thu, 03/02/2017 - 11:04

1) You need to create your Own group in the Portal . Add Some members to the Group.
2) As discussed , you need to create a lane of your choice.
3) After you install the Process in the Portal, Select the BPM option and from the DropDown select Processes.
Select the Process that you have installed ,and From the Top right hand side select the MORE.. Option.
4) In the Actor category, you should see all the lanes that you have created.
5)Under the Groups section select the EDIT Pen and browse your custom group and apply.

Regards

Submitted by ChristianMichae... on Fri, 03/03/2017 - 06:51

Hi Roy,

How can I send mail to all users in a specific group once I assign a task?

Thanks

Submitted by Dibyajit.Roy on Fri, 03/03/2017 - 07:06

Hi
I hope you were able to Map the Specific group that you wanted.
Mail can be configured using the connector section.
Each task has connector in and connectors out.
Select the connectors in, add , provide a name for your connector.
(make sure to select ignore and continue process) in the "If connector fails" section.
For local settings use the SMTP host as localhost and SMTP port as 2525.
Set the SourceEmail address as return "yourEmailAddress"; ( I use the Parameter options. They can be globally configured).

Here is the Script.

import com.bonitasoft.engine.api.IdentityAPI;

IdentityAPI identityAPI = apiAccessor.getIdentityAPI();
return identityAPI.getUserContactData(taskAssigneeId,false).getEmail();

This will return values of the People to whom the task has been assigned and will fire mails to them all.
Here , is an alternate script to fetch group name and its members.

import org.bonitasoft.engine.identity.ContactData;
import org.bonitasoft.engine.identity.Group;
import org.bonitasoft.engine.identity.User;
import org.bonitasoft.engine.identity.UserCriterion;

import com.bonitasoft.engine.api.IdentityAPI;
import com.bonitasoft.engine.api.ProcessAPI;

IdentityAPI identityapi = apiAccessor.getIdentityAPI();
Group group = identityapi.getGroupByPath("/acme/hr");

List users = identityapi.getUsersInGroup(group.getId(),0,100, UserCriterion.FIRST_NAME_ASC);
String emailList = "";
for(int i=0;i<users.size();i++){
User user = (User)users.get(i);
ContactData contactData = identityapi.getUserContactData(user.getId(),false);
if(i==users.size()-1){
emailList += contactData.getEmail();
}else{
emailList += contactData.getEmail()+",";
}
}

In the Subject use the script section and use the Return " some string " to add message.
You can also add items from your BDM here .
(Just click on select a variable and choose your BDM variable that you created.
Now BDMvariable.getMethodName() will fetch values from BDM.

For Body, select switch editor to enable scripting mode.

Regards

Submitted by ChristianMichae... on Fri, 03/03/2017 - 07:54

Hi Roy,

Thanks for this I will try this. How about when a specific user approves then the task will be directed to his/her manager assigned?

Thanks

Submitted by ChristianMichae... on Mon, 03/06/2017 - 04:11

Hi Roy,

How about when a specific user approves then the task will be directed to his/her manager assigned? And also need help in mapping the Specific group, it shows an error the actor does not contain any member.
Please help.

Thanks

Submitted by ChristianMichae... on Tue, 03/07/2017 - 13:29

Hi Roy,

How about when a specific user approves then the task will be directed to his/her manager assigned? And also need help in mapping the Specific group, it shows an error the actor does not contain any member.
Please help. Can you please provide a sample on making a task assign to a specific group and then get the user that approves. Assigning task to a group is when a user submit the task next and then it will automatically be assigned to a group

Thanks

Submitted by Dibyajit.Roy on Tue, 03/07/2017 - 13:36

Hi
1) To map a Task to the person's manager, select the task -> general -> actors -> set -> single- user -> single-user manager . select assign task automatically
2)For the Error showing actor does not contain members - no problems.
Just go to the Portal -> BPM-> dropdown select Processes -> go to your Process -> Top right hand side - select More -> In the Actor section -> select the Group that you want to map.
Also Make sure that group has members - Just Use default members like Walter bates to add to your group.

Regards

Submitted by ChristianMichae... on Wed, 03/08/2017 - 00:20

Hi Roy,

But how will I assign automatically the task to a specific group?

Submitted by ChristianMichae... on Thu, 03/09/2017 - 03:31

Hi Roy,

Any update on assigning a task automatically to a specific group and then the user that triggers will be captured and save to the database?

Thanks

1 answer

1
0
-1

Hi christianmichaelgarizala,

If I understand you well I think you need domain name, there is no any configuration needed.

Many thanks.

Notifications