[jboss-user] [JBoss jBPM] - Re: Best Practice to get SessionFactory

2009-04-16 Thread Toriton
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 =

[jboss-user] [JBoss jBPM] - Re: Best Practice to get SessionFactory

2009-04-16 Thread Toriton
Sorry bad cut :) this is how the SessionFactory is returned : anonymous wrote : | JtaDbPersistenceServiceFactory jtaDBFactory = (JtaDbPersistenceServiceFactory)JbpmConfiguration.getInstance().getServiceFactory(persistence); | return (SessionFactory)

[jboss-user] [JBoss jBPM] - Re: Best Practice to get SessionFactory

2009-04-16 Thread Toriton
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 :

[jboss-user] [JBoss jBPM] - Best Practice to get SessionFactory

2009-04-06 Thread Toriton
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.

[jboss-user] [JBoss jBPM] - Re: Best Practice to get SessionFactory

2009-04-06 Thread Toriton
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

[jboss-user] [JBoss jBPM] - Re: Setting ProcessVariable as a

2009-04-02 Thread Toriton
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

[jboss-user] [JBoss jBPM] - Re: Setting ProcessVariable as a

2009-04-02 Thread Toriton
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

[jboss-user] [JBoss jBPM] - Re: Setting ProcessVariable as a

2009-04-02 Thread Toriton
... 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

[jboss-user] [JBoss jBPM] - Re: Custom HBM files.

2009-04-02 Thread Toriton
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

[jboss-user] [JBoss jBPM] - Re: Custom HBM files.

2009-04-01 Thread Toriton
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

[jboss-user] [JBoss jBPM] - Re: Don't see running process in JBPM

2009-03-30 Thread Toriton
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

[jboss-user] [JBoss jBPM] - Re: Problems with JBPM Ttimer EJB from a simple Web App

2009-03-27 Thread Toriton
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, ..

[jboss-user] [JBoss jBPM] - Re: Problems with JBPM Ttimer EJB from a simple Web App

2009-03-27 Thread Toriton
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 |

[jboss-user] [JBoss jBPM] - Problems with JBPM Ttimer EJB from a simple Web App

2009-03-26 Thread Toriton
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

[jboss-user] [JBoss jBPM] - Re: A question on Transitions

2009-03-25 Thread Toriton
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

[jboss-user] [JBoss jBPM] - A question on Transitions

2009-03-24 Thread Toriton
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 |

[jboss-user] [JBoss jBPM] - Re: get all process instance

2009-03-19 Thread Toriton
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 :

[jboss-user] [JBoss jBPM] - Re: Need help to fix timer issue

2009-03-18 Thread Toriton
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

[jboss-user] [JBoss jBPM] - Mail Server Configuration in JBPM

2009-03-18 Thread Toriton
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

[jboss-user] [JBoss jBPM] - Re: Error Deploying

2009-03-18 Thread Toriton
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.

[jboss-user] [JBoss jBPM] - Re: Mail Server Configuration in JBPM

2009-03-18 Thread Toriton
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 :

[jboss-user] [JBoss jBPM] - Re: Need help to fix timer issue

2009-03-18 Thread Toriton
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 |

[jboss-user] [JBoss jBPM] - Re: Need help to fix timer issue

2009-03-18 Thread Toriton
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

[jboss-user] [JBoss jBPM] - Re: Need help to fix timer issue

2009-03-18 Thread Toriton
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 :

[jboss-user] [JBoss jBPM] - Re: creating a jsp page to invoke jbpm deployed process

2009-03-17 Thread Toriton
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

[jboss-user] [JBoss jBPM] - Re: Need help to fix timer issue

2009-03-17 Thread Toriton
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

[jboss-user] [JBoss jBPM] - Custom HBM files.

2009-03-09 Thread Toriton
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

[jboss-user] [JBoss jBPM] - Re: Custom HBM files.

2009-03-09 Thread Toriton
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

[jboss-user] [JBoss jBPM] - Bad version number in .class file.

2009-03-03 Thread Toriton
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 |

[jboss-user] [JBoss jBPM] - Re: Bad version number in .class file.

2009-03-03 Thread Toriton
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

[jboss-user] [JBoss jBPM] - Re: Transaction Issue

2009-02-27 Thread Toriton
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

[jboss-user] [JBoss jBPM] - Re: Transaction Issue

2009-02-27 Thread Toriton
Another configuration: | property name=hibernate.dialectorg.hibernate.dialect.Oracle10gDialect/property | property name=hibernate.current_session_context_classorg.hibernate.context.ThreadLocalSessionContext/property |property

[jboss-user] [JBoss jBPM] - Re: Transaction Issue

2009-02-27 Thread Toriton
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 | |

[jboss-user] [JBoss jBPM] - jbpm-entity on Oracles and id.

2009-02-27 Thread Toriton
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,

[jboss-user] [JBoss jBPM] - Re: jbpm-entity on Oracles and id.

2009-02-27 Thread Toriton
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 :

[jboss-user] [JBoss jBPM] - Re: Transaction Issue

2009-02-26 Thread Toriton
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

[jboss-user] [JBoss jBPM] - Re: Transaction Issue

2009-02-26 Thread Toriton
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? | | !-- = -- | !--

[jboss-user] [JBoss jBPM] - Re: Transaction Issue

2009-02-25 Thread Toriton
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 :

[jboss-user] [JBoss jBPM] - Re: Oracle DB with jbpm 3.3.1 GA

2009-02-12 Thread Toriton
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

[jboss-user] [JBoss jBPM] - Transaction Issue

2009-02-11 Thread Toriton
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