[jboss-user] [jBPM Users] - Re: [jBPM4] Cant build processEngine using setFile, setURL o

2009-12-06 Thread edeleflie
thanks Saraswati. Can you point me to the documentation of this requirement? (of adding XML to jbpm.cfg.xml for an API call to work). I'm struggling understanding where I am supposed to go to determine exactly what needs to be included in jbpm.cfg.xml for my API calls to work. Etienne View th

[jboss-user] [jBPM Users] - Re: setHibernateSessionFactory() ... using GRAIL's session f

2009-12-06 Thread edeleflie
little update. I've also tried calling: processEngine = new Configuration().setHibernateSessionFactory(sessionFactory); processEngine.setHibernateSession(sessionFactory.getCurrentSession()); still with no luck. The following line still returns a null object: repositoryService =

[jboss-user] [jBPM Users] - setHibernateSessionFactory() ... using GRAIL's session facto

2009-12-06 Thread edeleflie
I'm trying to use GRAILS's pre-configured Hibernate session factory to create the ProcessEngine instance. processEngine = new Configuration().setHibernateSessionFactory(grailsSessionFactory) ... this seems to work ... and the processEngine is not null. However, when I do: repositoryService =

[jboss-user] [jBPM Users] - Configure jBPM4 using jbpm.hibernate.cfg.xml filr not on cla

2009-12-02 Thread edeleflie
Is it possible to configure jBPM4 using a jbpm.hibernate.cfg.xml file which is not on the classpath? Etienne View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268656#4268656 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=

[jboss-user] [jBPM Users] - Re: [jBPM4] Cant build processEngine using setFile, setURL o

2009-12-02 Thread edeleflie
based on lack of replies should I post a bug report? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4268651#4268651 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4268651 ___ jb

[jboss-user] [jBPM Users] - [jBPM4] Cant build processEngine using setFile, setURL or se

2009-12-01 Thread edeleflie
I want to move jbpm.hibernate.cfg.xml out of my classpath and into a separate folder. I'm doing it like this: processEngine = new Configuration().setFile( new File("myFilePath")).buildProcessEngine() I get the same stack trace as when using setURL and set XMLString. THat stack trace looks some

[jboss-user] [jBPM Users] - Re: List task comments with Activity name

2009-11-25 Thread edeleflie
maybe my question is not clear. Can anyone come up with a way to display all the historical activityNames of a ProcessInstance and, under each, display all the historical comments added when in that activity? I believe this is not possible. View the original post : http://www.jboss.org/index.

[jboss-user] [jBPM Users] - List task comments with Activity name

2009-11-24 Thread edeleflie
I'm finding the HistoryService's API slightly criptic. I'd like to display, for any given ProcessInstance, all the activity-names it passed through, and the list of comments added each of those tasks. what I do is retrieve all the HistoryTasks. Then use their Id's to retrieve all the HistoryCom

[jboss-user] [jBPM Users] - Re: Setting the user id for a comment

2009-11-23 Thread edeleflie
Hi Ronald, Can you post a link to the Jira? ... I cant find it (is it in 4.x or 4.3?) I'm looking for a workaround ... Etienne View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267202#4267202 Reply to the post : http://www.jboss.org/index.html?module=bb&op=po

[jboss-user] [jBPM Users] - Setting the user id for a comment

2009-11-23 Thread edeleflie
HistoryComment exposes the method getUserId() ... which has the corresponding DB column of USERID_ in the jbpm4_hist_detail table. But there is no way (that I can see) of actually setting the user id of a comment. The TaskService only exposes the following: addTaskComment(java.lang.String taskI

[jboss-user] [jBPM Users] - Re: [jBPM 4.2] ProcessInstance

2009-11-23 Thread edeleflie
mike, When creating the ProcessInstance, you will get a processInstanceId back. Save it. The processInstanceId is the key into the jBPM API world. If you want to find out all the current tasks (often only 1) for your process instance then you do this: taskService.createTaskQuery().processInst

[jboss-user] [jBPM Users] - Re: Retrieve list of users matching task candidate-groups

2009-11-23 Thread edeleflie
hang on! I just found this: java.util.List TaskService.getTaskParticipations() That does what I want. thanks. hmmm ... strange abstraction logic. Etienne View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267179#4267179 Reply to the post : http://www.jboss.o

[jboss-user] [jBPM Users] - Re: JBPM on MySQL

2009-11-23 Thread edeleflie
yes it is possible. the MySQL schema can be found in: ...\jbpm-4.2\install\src\db\create\jbpm.mysql.create.sql View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267172#4267172 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&

[jboss-user] [jBPM Users] - Retrieve list of users matching task candidate-groups

2009-11-23 Thread edeleflie
I want my interface to expose a list of users that a particular task can be assigned to, according to that tasks candidate-groups paramater. The API doesn't seem to offer any direct call (such as Task.getCandidateGroups() or even Task.getCandidateUsers()). In fact, I dont even see a method to g

[jboss-user] [jBPM Users] - Re: [jBPM4.2] Creating jBPM4 database schema without ant.

2009-11-10 Thread edeleflie
I just found the jbpm.mysql.create.sql file... but this file is not included in the Maven deploy. So I guess I should just pull it in and execute it? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264936#4264936 Reply to the post : http://www.jboss.org/ind

[jboss-user] [jBPM Users] - [jBPM4.2] Creating jBPM4 database schema without ant.

2009-11-10 Thread edeleflie
Just wondering if there are any Java hooks (or anything other than ant) for setting up a new jBPM4 database schema? We are using Maven ... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4264935#4264935 Reply to the post : http://www.jboss.org/index.html?mod