Hi all again :),
i found another way to get SessionFactory, and i want know if this is a most
clear solution.
I use this code in a DAO class.
anonymous wrote :
| JtaDbPersistenceServiceFactory jtaDBFactory =
Sorry bad cut :)
this is how the SessionFactory is returned :
anonymous wrote :
| JtaDbPersistenceServiceFactory jtaDBFactory =
(JtaDbPersistenceServiceFactory)JbpmConfiguration.getInstance().getServiceFactory(persistence);
| return (SessionFactory)
Is true, Kuke thanks for your reply. I missed that thing.. usually i use always
Interfaces.. my bad to think about this as a solution :).
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4225897#4225897
Reply to the post :
Hi all , i have a question on how to get SessionFactory directly from JBPM.
In the documentation
http://docs.jboss.org/jbpm/v3/userguide/persistence.html#thehibernatesessionfactory
(par 7.7) In the documentation there is a suggestion to use the JBPM
SessionFactory ,for own persistence classes.
thank for yout reply :)
I do the same in an ActionHandler.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4223584#4223584
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4223584
hi, i use an Expression for a node mail , to specify the TO parameter, and i
think it works perfectly on subject parameter too or text :) (but i don't tried
yet).
This is how it is described in process definition file.
anonymous wrote :
| mail-node name=mailSender to=#{mail_address}
|
It
Sorry for double post, but i want reply to Kamleshkr :), about the problem that
JBPM not use is custom mail class.
ahve you configured the file jbpm.config?
where you ahve to specify the new mail class using this:
anonymous wrote :
|
|
if you have done :) ,i don't know how to help
... sorry ..
| string name='mail.class.name' value='FastSign.mail.Mail' /
|
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4222910#4222910
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4222910
Thanks a lot forreply :) at last now is more clear :).
Cheer!!
T.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4222943#4222943
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4222943
Hi, i'm trying still to create custom hbm files under my process.
But still can't deploy a process with embedded hbm files.
I tried putting in the .par file both hibernate.extra.hbm and the
hibernate.hbm.xml, but the error is always:
anonymous wrote :
| 2009-04-01 09:43:16,734 ERROR
hi Dejan,
i'm not an expert of JBPM, but i think you don't deployed the .par archive
for the process.
And to deploy the process you have to use the servlet uploader (never used ) or
the link inside the jbpm console to deploy it.
I always used the console to deploy a new process.
So, if i'm not
I changed the deploy folder , and from :
anonymous wrote :
| %JBOSS_HOME%\server\default\deploy
|
i put my web application war under :
anonymous wrote :
| %JBOSS_HOME%\server\default\deploy\jbpm
|
and now no Exception are thrown.
But i need that my app is out of this folder, ..
Ok seems i found what i was missing.. a couple of thing :P at last..
put this in my web.xml (i had to look as first at web.xml of console web-app :)
)
| listener
| description
| Closes the jBPM configuration on servlet context destruction,
releasing
|
Hi all i have a strange problem to navigate a process from a servlet.
The servlet is simple , it get as input the id of the process, and the name of
transition where it have to go for the next token or node.
The names transitions's are sended with radio buttons and the values inside
them come
you use the explicit signal in any case?
or only where there are more then one transition as the example i posted?
I was considering too, how much is important to use an event on a transition,
and if is correct to handle something in the moment you are going from A to B.
Is not more easy or
Hi all, i ahve a little question.
This is a part of my Process definition
| state name=stateA
| event type=node-enter
| action class=com.example.AnActionHandler/action
| /event
| event type=node-leave
|
you don't seen the graphSession Api :P seem
List of all instances of specific process definition:
ctx.getGraphSession().findProcessInstances(processDefinitionId);
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4219433#4219433
Reply to the post :
Solved my problem and understood what was by this thread :)
http://www.jboss.org/index.html?module=bbop=viewtopict=129225
So i used a script to leave a node not a state.
This is the part of my process, i'll need to send a mail instead to use the
node specified. I will start now to see how mail
Hi all i'm trying to send a mail with a MailNode in JBPM but there is a
problem seem on the SMTP server that i'm using.
this is how i configured JBPM file:
string name=jbpm.mail.smtp.host value=smtp.gmail.com /
| string name=jbpm.mail.from.address value=pl...@pippo.com /
| string
You can deploy your process anyway using the JBPM console with a par (a
standard archive file).
Just create a processName.zip file then rename with .par extension.
From Eclipse in the deployment tab check the checkbox Save Process Archive
Locally and point to the archive you created before.
Thanks for the reply, i changed server :)
BTW if anyone will need to use GMAIL this example could Help :)
http://blogs.dfwikilabs.org/pigui/2008/02/15/jbpm-mail-nodes-development/
With a custom mail class to do the TLS work and other.
View the original post :
Done !! ^_^
Timer every 30 sec send the mail to my account.
this is the definition:
state name=stateA
|
| timer duedate=30 seconds name=MailSender transition=to
mailTest/timer
|
| transition to=mailTest name=to mailTest/transition
|
just because is anyway in time on mail-node there is a way to configure a node
like this:
mail-node name=mailTest to=${mail-advise}
where mail-advise is a variable in JBPM context, and JBPM will evaluate the
variable automatically?
considering the example posted before,
stateA set a variable
sorry for triple post.. anyway found it using expression...
#{variablename}
You can configure a mail node :
| mail-node name=mailTest to=#{mailadvise}
|
NOTE: don't use - char in the name -_-' , i'm noob and i know :).
View the original post :
This is how i invoke JBPM context from a servlet that i use as test.
JBPM and Servlet or your custom webapp are on the same server :).
Getting JBPMContext.
JbpmConfiguration jbpmConfiguration = JbpmConfiguration.getInstance();
JbpmContext ctx = jbpmConfiguration.createJbpmContext();
Retrieve
hello , i'm working on timers too, and the timer defined in the post before
work fine for me.
I have a little problem after the timer execute the transition.
Imagine something as stateA have the timer, after 5 sec the timer go for
transition to stateB ,do something , and then have to turn back
Hi all,
i'm looking for an help ,about configuring new mapping resources for Hibernate
in JBPM.
I'm using Jboss 4.2.2 GA and JBPM 3.3.1 GA with Oracle 10g.
There is any example on how configure a new hbm.xml to use for my persistance?.
I have some problems to create the PAR archive from
Before your reply,i done the test with entity class in a jar file and hbm.xml
mapped in hibernate.cfg.xml in JBPM folder.
Then deploying the process, that use that entity.
This work perfectly,i got a double insert atm but perhaps could be another
problem on my process definition :) i will
Hi i'm facing the error named in the title.
Here is the stack trace.
| 2009-03-03 12:42:30,750 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jbpm-console].[Faces
Servlet]] Servlet.service() for servlet Faces Servlet threw exception
|
That was my class.
I don't know why Eclipse stopped to compile my classes , so the Bin folder was
an old version. But the most importanti change i think was that i was compiling
with Java 1.6.. and running under Java1.4 for the server..
Too much :P versions for too much projects ^^
Thanks a
Hi brads thanks for reply.
I changed that properties too and many others to try something.
this is the FULL Hiberante configuration ATM (plus all mapping resource hbm.xml
that Jbpm need):
| property
name=hibernate.dialectorg.hibernate.dialect.Oracle10gDialect/property
| property
Another configuration:
| property
name=hibernate.dialectorg.hibernate.dialect.Oracle10gDialect/property
| property
name=hibernate.current_session_context_classorg.hibernate.context.ThreadLocalSessionContext/property
|property
Got it.
not more problem and with an XA DataSource. the problems was, this :
UserTransaction
Not specified in other Config files.
If could Help this is my final configuration:
XA DS Oracle (cut and past of the example under JBOSS):
| ?xml version=1.0 encoding=UTF-8?
| datasources
|
|
Hi i have a question about how the users are saved under JPBM using console.
I was seeing the User.hbm.xml under jbpm-identity.jar, and found this:
|id name=id column=ID_
| generator class=native /
| /id
|
Using oracle the id must have a sequence related to work,
i launched again the script, probably i was missing some create index, or
sequence.
Deleted all users from the table and inserted back again.
Probably my mistake when i created first time DB schema on Oracle.
Work fine now :) .
sorry for boring you all.
View the original post :
No i don't need it at this moment..
i want just to run some examples.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4213264#4213264
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4213264
After your question.. i changed the DS for a not XA datasource, using as
template the examples DS under JBoss/docs/examples/jca.
| ?xml version=1.0 encoding=UTF-8?
|
| !-- =
--
| !--
The problem is still up, anyone can help me?
I have another question too, anyone can link me where i can download source
code for JBPM 3.3.1?
Thanks in advance.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4213071#4213071
Reply to the post :
I'm not sure if is the same problem i had at start :), but could be that you
don' have USERS GROUPS and MEMBERSHIP in your tables.
If you need a script to create the db in oracle it is in the jBPM runtime
location you configured.
The script posted here is for standard user as they are listed
Hi all i'm new on JBPM.
I'm using JBPM 3.3.1 with JBoss 4.2.2GA and Oracle 10 Express.
I edited the hibernate.cfg.xml to point at Oracle , and seem all ok.
I created the standard user and group and membership to access the console but
when i'm logged, the pages show several errors:
Error
40 matches
Mail list logo