[JBoss Portal] - how to use my database
by taocore
The doc says:
Tables are automatically created the first time JBoss Portal starts. When deployed for the first time, JBoss Portal checks for the existence of the initial tables, which have not been created yet.
I guess if I want to use my database, I should create a database with tables which would be used by my business logic, then place my xxx-ds.xml to deploy dir. When the portal server starts, it will append its tables in the database. Is that right?
I want to customize my security.
I know that portal can achieve this at runtime by admin portlet or before runing by xml configuration. The second approach may be the more appropriate for me. But I found that role and user must be stored in database. If the above is true, it seems that what I can do is inserting roles and users into the tables after all the tables were created for the first time. But where is the point? Or is there a better way?
Thanks!
taocore
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170515#4170515
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170515
17 years, 11 months
[JBoss jBPM] - token on tasks instance created at runtime
by memius
I try to create some task instances at runtime (so not declared in the process definition).
Let's say that I created them in process P.
When I try to add a task variable on such a task instance, I get the problem that I need a token...
Now ... I am not really sure how I should create this token (since the task instance isn't really connected to anything in the process, it is just a task that the user should see and that is related to the process).
So, what I did is create a with new Token(P).
Now ... when I try to save this token I saw that save(Token token) is implemented as : save(token.getProcessInstance);
So the token isn't saved and when I try to add a variable to the task instance I get the error that the token is not saved yet.
So, how should I deal with this kind of stuff ?
My question is not that specific, since I am not sure if what I am doing is correct, so, maybe I don't even need a token, or I could save it otherwise ... you tell me... at least ... I hope so ;)
Sincerely,
Dieter D'haeyere.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170511#4170511
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170511
17 years, 11 months