[jboss-user] [JBoss jBPM] - Re: Release the task when session Timeout and close the brow
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 list because session timeout nullifying the user. Hope that helps. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3965741#3965741 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3965741 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: a fast solution
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); | | if (assignmentLogs.size() == 1) { | TaskAssignLog taskAssignLog = (TaskAssignLog) assignmentLogs.get(0); | JsfHelper.addMessage("A new task has been assigned to '" + taskAssignLog.getTaskNewActorId() + "'"); | | } else if (assignmentLogs.size() > 1) { | String msg = "New tasks have been assigned to: "; | Iterator iter = assignmentLogs.iterator(); | while (iter.hasNext()) { | TaskAssignLog taskAssignLog = (TaskAssignLog) iter.next(); | msg += taskAssignLog.getActorId(); | if (iter.hasNext()) | msg += ", "; | } | msg += "."; | JsfHelper.addMessage(msg); | } | | jbpmContext.save(taskInstance); | | return "home"; | } When it returns, it uses faces config xml to figure where to go (mapping for "home"). Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962250#3962250 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962250 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jBPM HowTo add User Group Swimlane to DB?
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 follow the correct order for inserting (if there is any foreign key reference, you will have to insert the record in the other table first). Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961868#3961868 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961868 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How to dynamically create fork's transitions
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 mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Task parameters
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. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960755#3960755 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960755 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Handling process definitions
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#3960741 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960741 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Handling process definitions
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(zipStream); | jbpmContext.deployProcessDefinition(processDefinition); | The default jbpm web app already has that functionality (look at the "monitoring" menu of web app). Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960740#3960740 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960740 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: WebApp Development
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 mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: WebApp Development
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.jboss.com/index.html?module=bb&op=viewtopic&p=3960476#3960476 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960476 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: WebApp Development
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=reply&p=3960391 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: problems integrating jbpm console with another applicati
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 is the definition of the exception: http://www.hibernate.org/hib_docs/v3/api/org/hibernate/LazyInitializationException.html Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959370#3959370 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959370 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: WebApp Development
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 mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: MYSQL database connection within JBoss application(using
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 coming or page is coming but with no user in the drop down list box? 4. Check if hibernate is able to connect to your database or not (look at the console to see hibernate messages). Let me know if above steps help. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960036#3960036 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960036 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem Installing GPD Eclipse Plugin/Features
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 guess your question is gpd 3.0.11 on eclipse 3.1? Look at the following post: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=87095 Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959911#3959911 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959911 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: FacesContext
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 ArrayList(); | TaskController taskController = taskInstance.getTask().getTaskController(); | if (taskController!=null) { | List variableAccesses = taskController.getVariableAccesses(); | Iterator iter = variableAccesses.iterator(); | while (iter.hasNext()) { | VariableAccess variableAccess = (VariableAccess) iter.next(); | String mappedName = variableAccess.getMappedName(); | Objec! value = taskInstance.getVariable(mappedName); | TaskFormParameter tfp = new TaskFormParameter(variableAccess, value); | taskFormParameters.add(tfp); | } Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959580#3959580 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959580 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: FacesContext
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 beginning you said "Im using beans" and at the end you said "I am not using beans". What does that mean? Are you using default webapp or you changed the implementation? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959568#3959568 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959568 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: MYSQL database connection within JBoss application(using
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 tables) insert into JBPM_ID_USER (ID_, CLASS_, NAME_, EMAIL_, PASSWORD_) |values ('1', 'U', 'cookie monster', '[EMAIL PROTECTED]', 'crunchcrunch'); | insert into JBPM_ID_USER (ID_,CLASS_, NAME_, EMAIL_, PASSWORD_) |values ('2', 'U', 'ernie', '[EMAIL PROTECTED]', 'canthereyoubert,theresabananainmyear'); | insert into JBPM_ID_USER (ID_,CLASS_, NAME_, EMAIL_, PASSWORD_) |values ('3', 'U', 'bert', '[EMAIL PROTECTED]', 'ernie,theresabananainyourear'); | insert into JBPM_ID_USER (ID_,CLASS_, NAME_, EMAIL_, PASSWORD_) |values ('4', 'U', 'grover', '[EMAIL PROTECTED]', 'mayday mayday'); Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959558#3959558 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959558 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Able to suspend a token that has ended
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: isSuspended = false; isOpen = true; Which actually opens the task. Since resume of Token class is called recursively, it applies to all the tasks. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959353#3959353 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959353 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How do I change the URL to which the JBPM Eclipse plugin
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. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958969#3958969 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958969 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: How do I change the URL to which the JBPM Eclipse plugin
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.html?module=bb&op=posting&mode=reply&p=3958975 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpmContext null pointer
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.jsp").forward(req, resp); View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958821#3958821 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958821 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpmContext null pointer
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.jboss.com/index.html?module=bb&op=viewtopic&p=3958817#3958817 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958817 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: JBPM_PROCESSDEFINITION table not found
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 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958528 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpmschema fails to build for CVS HEAD
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://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958463#3958463 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958463 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Multiple tasks, multiple users transition
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 post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958227 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: JBPM_PROCESSDEFINITION table not found
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. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3958222#3958222 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3958222 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpmschema fails to build for CVS HEAD
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.com/index.html?module=bb&op=posting&mode=reply&p=3957901 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: porblem of identification and assigment
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.html?module=bb&op=posting&mode=reply&p=3957550 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: porblem of identification and assigment
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())) Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957464#3957464 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957464 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user