[jboss-user] [JBoss jBPM] - Re: Release the task when session Timeout and close the brow

2006-08-17 Thread newbie007
Why you want to set the actor id to null when user closes the browser or session timeout? I don't think session timeout is same as cancelling a task. Just imagine a scenario where you are working on a task and you are out for say 5 minutes and when you come back, the task is not there in your

[jboss-user] [JBoss jBPM] - Re: a fast solution

2006-08-01 Thread newbie007
Look at the following code and you should be able to understand what is going on: LoggingInstance loggingInstance = processInstance.getLoggingInstance(); | List assignmentLogs = loggingInstance.getLogs(TaskAssignLog.class); | | log.debug("assignmentlogs: " + assignmentLogs); |

[jboss-user] [JBoss jBPM] - Re: jBPM HowTo add User Group Swimlane to DB?

2006-07-31 Thread newbie007
You can add the user etc eigher by using the SQL or by using the hibernate session (You should be able to get the session from the jbpm context or configuration). Use .save(user) if you are using hibernate session. make sure you populate the user object before saving. Also please make sure you

[jboss-user] [JBoss jBPM] - Re: How to dynamically create fork's transitions

2006-07-31 Thread newbie007
Add an action handler on the fork node and do whatever you want to do in the handler. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961863#3961863 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961863 ___

[jboss-user] [JBoss jBPM] - Re: Task parameters

2006-07-25 Thread newbie007
I guess that is possible using the variables. When you configure your task (by adding actions, swimlane etc in JPD), you can specify the variables using the "Controller" menu. These variables can be retrived using the API: taskInstance.getTask().getTaskController().getVariableAccesses() Thanks.

[jboss-user] [JBoss jBPM] - Re: Handling process definitions

2006-07-25 Thread newbie007
If you are not sure that the definition is persisted to the database, try loading it using graph session: ProcessDefinition processDefinition = graphSession.loadProcessDefinition(processDefinitionId); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960741#396

[jboss-user] [JBoss jBPM] - Re: Handling process definitions

2006-07-25 Thread newbie007
How are you deploying the definition? Are you retreiving the process definition from the".par" file? Here is what you can do: ZipInputStream zipStream = new ZipInputStream(new FileInputStream(new File())); | ProcessDefinition processDefinition = ProcessDefinition.parseParZipInputStream(zipSt

[jboss-user] [JBoss jBPM] - Re: WebApp Development

2006-07-24 Thread newbie007
Ronald, Thanks for the compliments :-). I will create a new user id. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960538#3960538 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960538

[jboss-user] [JBoss jBPM] - Re: WebApp Development

2006-07-24 Thread newbie007
In the default web app (jbpm default webapp which uses JSF) the redirection is done using the faces-config.xml. Where are you doing your redirection? If everything is fine in the servlet, where do you tell the system that redirect to next page? Thanks. View the original post : http://www.jb

[jboss-user] [JBoss jBPM] - Re: WebApp Development

2006-07-24 Thread newbie007
What are the parameters you are getting in the request? Is it going into the "if" block? Did you try debugging? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960391#3960391 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=repl

[jboss-user] [JBoss jBPM] - Re: problems integrating jbpm console with another applicati

2006-07-24 Thread newbie007
The LazyInitializationException normally appears when your hibernate session is closed and you are trying to use a property or calling a getter on that detached object. Try initializing the object using Hibernate.initialize method or close the session (some how) after rendering the JSP. Here

[jboss-user] [JBoss jBPM] - Re: WebApp Development

2006-07-24 Thread newbie007
Paste your code or copy any exception you are getting. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960368#3960368 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960368 __

[jboss-user] [JBoss jBPM] - Re: MYSQL database connection within JBoss application(using

2006-07-21 Thread newbie007
Hi, 1 First of all, make sure you have jbpm schema created in your database (all jbpm tables). 2. Check the jbpm_id_user table to see if there are user exists. 3. Try to access the web app through the browser. Are you getting the login page with populated user dropdown? or page itself is not

[jboss-user] [JBoss jBPM] - Re: Problem Installing GPD Eclipse Plugin/Features

2006-07-21 Thread newbie007
I guess the difference between jbpm-gpd-feature and jbpm-gpd site is that if you install site, it will take care of updating if there is any new version of gpd out there. What is the relation between gpd 3.0.11 and jbpm 3.1.2? As long as the par file is correct, jbpm 3.1.2 should work fine. I

[jboss-user] [JBoss jBPM] - Re: FacesContext

2006-07-20 Thread newbie007
If you changed the webapp, you still using JSF? If you are using your own servlet then why not prepare the form parameters list on your own and set it to the request or session (whatever feasiable) Preparing form parameter list is straight forward: List taskFormParameters = new ArrayL

[jboss-user] [JBoss jBPM] - Re: FacesContext

2006-07-20 Thread newbie007
Did you modify web.xml of the webapp? Make sure you have following lines in the web.xml: org.apache.myfaces.webapp.StartupServletContextListener FacesServlet javax.faces.webapp.FacesServlet 1 FacesServlet /faces/* Another question is: In the beginnin

[jboss-user] [JBoss jBPM] - Re: MYSQL database connection within JBoss application(using

2006-07-20 Thread newbie007
I used to get that message. Make sure that you have users in the jbpm_id_user table. Look at the console to see if hibernate is able to connect to your database etc. If users are not there then use following insert sqls for inserting into jbpm_id_user table (hopefully you didn't change jbpm tab

[jboss-user] [JBoss jBPM] - Re: Able to suspend a token that has ended

2006-07-19 Thread newbie007
This is hapenning in jbpm 3.1.1 and the same code is in 3.1.2 also Here is the flow: ProcessInstance.resume() -> rootToken.resume() -> Token.resume() -> resumeTaskInstances() -> TaskMgmtInstance.resume() -> TaskInstance.resume() and this is the final method which sets these two flags: isSu

[jboss-user] [JBoss jBPM] - Re: How do I change the URL to which the JBPM Eclipse plugin

2006-07-18 Thread newbie007
Which JPD version you are using? I am using 3.0.9.x and you can specify the server port and server name during the deployment. If you are using old version, you can save the .par file locally and deploy it programatically if you want (using jbpmContext.deployProcessDefinition method). Thanks.

[jboss-user] [JBoss jBPM] - Re: How do I change the URL to which the JBPM Eclipse plugin

2006-07-18 Thread newbie007
Unfortunately we are not deploying through the Eclipse plugin. You can use the code from the upload servlet to deploy your process programatically. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958975#3958975 Reply to the post : http://www.jboss.com/index

[jboss-user] [JBoss jBPM] - Re: jbpmContext null pointer

2006-07-18 Thread newbie007
Where is "context" defined? I hope it is not another JBPMContext type variable defined as null. String userName = req.getParameter("userName"); JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext(); jbpmContext.setActorId(userName); context.getRequestDispatcher("/mainPage.js

[jboss-user] [JBoss jBPM] - Re: jbpmContext null pointer

2006-07-18 Thread newbie007
Hi, May be userName from request is coming null? Check the html source of login page to see if that is the name of the dropdown (user list drop down) or look at the browser address bar to see if that is parameter passed to server. Hope that helps. Thanks. View the original post : http://www.j

[jboss-user] [JBoss jBPM] - Re: JBPM_PROCESSDEFINITION table not found

2006-07-17 Thread newbie007
Check the console to see if hibernate is pointing to right database or not. Hibernate will display the schema it points to and it will also tell the database version on the console. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958528#3958528 Rep

[jboss-user] [JBoss jBPM] - Re: jbpmschema fails to build for CVS HEAD

2006-07-17 Thread newbie007
Hi, Most of your jar files are coming from folder "C:\Documents and Settings\..." May be because of spacing in the directory structure, it is not able to find the jar file? It may sound stupid but try putting all the jars in the directory without space Thanks. View the original post : http://

[jboss-user] [JBoss jBPM] - Re: Multiple tasks, multiple users transition

2006-07-14 Thread newbie007
Use fork and join. The system will move on from join only if all the children of fork completed successfully. The join will make sure that it received all the child tokens. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958227#3958227 Reply to the

[jboss-user] [JBoss jBPM] - Re: JBPM_PROCESSDEFINITION table not found

2006-07-14 Thread newbie007
Check your hibernate config file. May be you are pointing to a different schema or may be the table you created in your schema might have a typo in the name (just a thought). Did you manually created the schema or used hbm2ddl tool (hibernate tool for generating schema from mapping) ? Thanks.

[jboss-user] [JBoss jBPM] - Re: jbpmschema fails to build for CVS HEAD

2006-07-13 Thread newbie007
Hi, It clearly says that you are missing commons logging jar file in your classpath.Check your build path and try it again after adding required jar. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957901#3957901 Reply to the post : http://www.jboss

[jboss-user] [JBoss jBPM] - Re: porblem of identification and assigment

2006-07-12 Thread newbie007
Ronald, The method "getCurrentJbpmContext" is deprecated in which release? We are using 3.1.1 and I don't see that one as deprecated. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957550#3957550 Reply to the post : http://www.jboss.com/index.htm

[jboss-user] [JBoss jBPM] - Re: porblem of identification and assigment

2006-07-12 Thread newbie007
Antitrust1982, You can get the current context using: JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext(); Once you have jbpm context, you can load the task instance by using task management definition like: jbpmContext.getTaskMgmtSession().loadTaskInstance(TaskInstanceId())) Thank