[jboss-user] [JBoss jBPM] - Re: Need help in xhtml file
Hi, Even I am not able to use jstl tags in xhtml. In facelet I did some some rnd and in fact just now I have created a faclet EL expression given in IBM website. If I can use jstl in my xhtml, still it would help me alot. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059480#4059480 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059480 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Need help in xhtml file
Hi Ronald, I need your help. Please help me. I googled on it alot but still I am not able to use struts tag in xhtml files. Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059449#4059449 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059449 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Need help in xhtml file
Hi, I am using JBoss jBPM 3.2.GA. In that xhtml files are used for rendering the contents to the end user. Now I want to use jstl tags in the xhtml file but I don't know how to use the same say http://www.w3.org/1999/xhtml"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:jbpm="http://jbpm.org/jsf"; | xmlns:bean="/tlds/struts-bean.tld" | template="../common/template.xhtml" | > | And also it did not work. For all the struts tag, I have its tld file. I am not sure about using tld file in the xmlns of the xhtml file. This xhtml file is realy making my life hell. In fact in 3.2.1 version of jbpm, JSP was used where I can easliy make java call by simple scriptlets. :) Rgds, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059009#4059009 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4059009 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Adding registration functionality to jbpm system
Hi, I am using JBoss jBPM 3.2.GA where I have to add registration functionality, so that user can register to my jBPM system. For authentication, its using jboss security LoginDatabaseModule where it authenticates user by j_security_check. Now I want to bypass the login screen for register.jsf page. Can I bypass the login page for user registration so that user can directly see the register page and register to jBPM? Currently what?s happening is when I access the register.jsf page, it prompts for login. Rgds, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4058020#4058020 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4058020 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm process undeploy constraint violation in jbpm 3.2.G
The exact exception which I get on the console is: anonymous wrote : | [exec] 11:25:33,259 DEBUG [JobExecutorThread] querying for acquirable job... | [exec] 11:25:33,415 ERROR [STDERR] org.hibernate.HibernateException: null index column for collection: org.jbpm.graph.def.ProcessDefinition.actions | [exec] at org.hibernate.persister.collection.AbstractCollectionPersister.readIndex(AbstractCollectionPersister.java:687) | [exec] at org.hibernate.collection.PersistentMap.readFrom(PersistentMap.java:222) | [exec] at org.hibernate.loader.Loader.readCollectionElement(Loader.java:994) | [exec] at org.hibernate.loader.Loader.readCollectionElements(Loader.java:635) | [exec] at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:580) | [exec] at org.hibernate.loader.Loader.doQuery(Loader.java:689) | [exec] at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224) | [exec] at org.hibernate.loader.Loader.loadCollection(Loader.java:1919) | [exec] at org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:36) | [exec] at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:541) | [exec] at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:60) | [exec] at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1705) | [exec] at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:344) | [exec] at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86) | [exec] at org.hibernate.collection.PersistentMap.values(PersistentMap.java:198) | [exec] at org.hibernate.type.MapType.getElementsIterator(MapType.java:39) | [exec] at org.hibernate.type.CollectionType.getElementsIterator(CollectionType.java:188) | [exec] at org.hibernate.engine.CascadingAction.getAllElementsIterator(CascadingAction.java:266) | [exec] at org.hibernate.engine.CascadingAction.access$100(CascadingAction.java:21) | [exec] at org.hibernate.engine.CascadingAction$2.getCascadableChildrenIterator(CascadingAction.java:52) | [exec] at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:288) | [exec] at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:185) | [exec] at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:160) | [exec] at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:108) | [exec] at org.hibernate.engine.Cascade.cascade(Cascade.java:248) | [exec] at org.hibernate.engine.Cascade.cascade(Cascade.java:223) | [exec] at org.hibernate.event.def.DefaultDeleteEventListener.cascadeBeforeDelete(DefaultDeleteEventListener.java:220) | [exec] at org.hibernate.event.def.DefaultDeleteEventListener.deleteEntity(DefaultDeleteEventListener.java:169) | [exec] at org.hibernate.event.def.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:110) | [exec] at org.hibernate.impl.SessionImpl.fireDelete(SessionImpl.java:768) | [exec] at org.hibernate.impl.SessionImpl.delete(SessionImpl.java:746) | [exec] at org.jbpm.db.GraphSession.deleteProcessDefinition(GraphSession.java:249) | [exec] at org.jbpm.db.GraphSession.deleteProcessDefinition(GraphSession.java:233) | [exec] at com.traveldesk.bean.DeleteBean.undeployProcess(Unknown Source) | [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | [exec] at java.lang.reflect.Method.invoke(Method.java:585) | [exec] at com.sun.el.parser.AstValue.invoke(AstValue.java:130) | [exec] at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274) | [exec] at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) | [exec] at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77) | [exec] at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:95) | [exec] at javax.faces.component.UICommand.broadcast(UICommand.java:383) | [exec] at javax.faces.component.UIData.broadcast(UIData.java:854) | [exec] at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:448) | [exec] at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752) | [exec] at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97) | [exec] at com.sun.faces.lifecycle.
[jboss-user] [JBoss jBPM] - jbpm process undeploy constraint violation in jbpm 3.2.GA
Hi, I have successfully undeployed process definition many times in past, but I don't know what happened now its not working. I have created a backing bean class and passed the processId to it. Here is the source code of undeployProcess action. | public void undeployProcess() { | String outcome ="done"; | FacesContext context = FacesContext.getCurrentInstance(); | String processDefinitionId = context.getExternalContext().getRequestParameterMap().get("processDefinitionId"); | | final NavigationHandler navigationHandler = context.getApplication().getNavigationHandler(); | | GraphSession session = null; |JbpmContext jbpmContext = null; |try{ | jbpmContext = JbpmConfiguration.getInstance().createJbpmContext(); | session = jbpmContext.getGraphSession(); | | session.deleteProcessDefinition(Long.parseLong(processDefinitionId)); | } | finally { | jbpmContext.close(); | } |navigationHandler.handleNavigation(context, null, outcome); | } | Now when I try to delete the process, I get constraint violation. PROCDEF_STRTSTA in the jbpm_Processdefinition table saying child record found. I am not able to get that, it was working absolutely fine. Today I getting this constraint violation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056480#4056480 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056480 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: problem accessing jbpm-console (jbpm 3.2.1 GA) on weblog
"mputz" wrote : It looks like WL is using it's own SAXParser implementation instead of the apache one (which is bundled in /lib/endorsed/xercesImpl.jar btw). Have a look at this docu, it's referring to an older WL version but I guess one of the ways to get around this issue described there should still work: | http://ws.apache.org/soap/faq/faq-for-WL6.1beta.html | | Hi, I have tried using my own parser for jbpm-console application. From weblogic console, I have created new XML Registry. My web application is also using the same newly created XML Registry, but no luck, same exception I get. It is really becoming nightmare for me. I did some more RnD on it. I have created a simple test.xhtml file. Its content is as below: http://www.w3.org/1999/xhtml"; | xmlns:h="http://java.sun.com/jsf/html"; | xmlns:f="http://java.sun.com/jsf/core"; | xmlns:ui="http://java.sun.com/jsf/facelets"; | xmlns:jbpm="http://jbpm.org/jsf"; | template="../common/template.xhtml"> | hello World | Now when I access the same from the browser: http://localhost:7001/jbpm-console/test.xhtml. I get output hello World in bold. But when I access the following url: http://localhost:7001/jbpm-console/test.jsf I get the same exception. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053102#4053102 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053102 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: problem accessing jbpm-console (jbpm 3.2.1 GA) on weblog
"kukeltje" wrote : isn't there more info in the logs? this is to little to be helpful Exactly. I have gone through the source code of org.jbpm.webapp.tag.jbpm.JbpmLibrary as well. Line where it?s showing exception is written in a constructor of the JbpmLibrary class. I seems like exception has something to do with the SAXParser, but I am not very sure. Log file too is not very helpful. anonymous wrote : <[ServletContext(id=13797435,name=traveldesk,context-path=/traveldesk)] Root cause of ServletException. | java.lang.Throwable | at org.jbpm.webapp.tag.jbpm.JbpmLibrary.(JbpmLibrary.java:59) | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) | at java.lang.reflect.Constructor.newInstance(Constructor.java:274) | at java.lang.Class.newInstance0(Class.java:308) | at java.lang.Class.newInstance(Class.java:261) | at com.sun.facelets.compiler.TagLibraryConfig$LibraryHandler.processLibraryClass(TagLibraryConfig.java:327) | at com.sun.facelets.compiler.TagLibraryConfig$LibraryHandler.endElement(TagLibraryConfig.java:166) | at weblogic.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:585) | at weblogic.apache.xerces.impl.xs.XMLSchemaValidator.endElement(XMLSchemaValidator.java:710) | at weblogic.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:647) | at weblogic.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:1937) | at weblogic.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:851) | at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1008) | at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1469) | at weblogic.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329) | at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) | at weblogic.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) | at weblogic.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) | at weblogic.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175) | at weblogic.xml.jaxp.WebLogicXMLReader.parse(WebLogicXMLReader.java:135) | at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:152) | at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) | at javax.xml.parsers.SAXParser.parse(SAXParser.java:143) | at com.sun.facelets.compiler.TagLibraryConfig.create(TagLibraryConfig.java:394) | at com.sun.facelets.FaceletViewHandler.initializeCompiler(FaceletViewHandler.java:275) | at com.sun.facelets.FaceletViewHandler.initialize(FaceletViewHandler.java:161) | at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:523) | at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) | at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248) | at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) | at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) | at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) | at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) | at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) | at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59) | at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27) | at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724) | at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) | at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) | at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) | at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) | at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) | at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) | > View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052457#4052457 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052457 ___ jb
[jboss-user] [JBoss jBPM] - problem accessing jbpm-console (jbpm 3.2.1 GA) on weblogic s
Hi, I am using jBPM version 3.2.1 GA. I tried to deploy the jbpm-console.war on weblogic server 8.1. I managed to deploy it on weblogic. I resolved all the issues which are coming on weblogic like problem of antlr related to hibernate 3.1 and weblogic 8.1. Secondly I faced problem in query parser class that I changed to ASTQueryTranslatorFactory from ClassicQueryTransactionFactory as I am using hibernate verion 3.1. There is no error on the console at the time of deployment. weblogic console shows successful deployment message. Now when I tried to access the URL: http://localhost:7001/jbpm-console/search/tasks.html, I got exception on the browser. anonymous wrote : java.lang.ExceptionInInitializerError | at org.jbpm.webapp.tag.jbpm.JbpmLibrary.(JbpmLibrary.java:59) | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) | at java.lang.reflect.Constructor.newInstance(Constructor.java:274) | at java.lang.Class.newInstance0(Class.java:308) | at java.lang.Class.newInstance(Class.java:261) | .. | Caused by: java.lang.NullPointerException | at java.util.Hashtable.get(Hashtable.java:333) | at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:233) | at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209) | at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351) | at org.jbpm.webapp.tag.jbpm.renderer.ButtonRenderer.(Unknown Source) | ... 46 more Please help. What could be the cause of this exception? Warm Regards, Naseem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052398#4052398 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052398 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - jbpm mail tag no cc attribute, from field hardcoded in the M
Hi, I am using jbpm 3.2.1. I found no cc attribute in the Mail.java class. My question is what should one do to mark a mail as cc. Secondly, I found that from field of the mail is also hardcoded in the Mail class, In my process definition, I have following requirement: | from field: Email address of the person who started the task. | to field: Email address to whom he/she want to assign the task | Next I want a cc attribute as well in order to mark cc to admin. | | | to field is fine. With this, http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051656#4051656 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051656 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem in formatting mail text using jbpm mail tag
Hi all, I managed to get html contents in the mail by doing some trick. It looks like the problem is with the parser thats why to escape html < tags, forums also use square brakets instead of html tags. | [table border='1' cellpadding='10'][tr][td]Note When you want to use the less-than symbol in an element's attribute, remember to use the entity reference '<'. The actual character in the attribute value (or in any attribute value) makes the stylesheet an ill-formed XML document, so the XML parser will choke on it and not pass it along to the XSLT processor.[/td][/tr][/table] | | In Mail.java class, following code replaces all square brackets to html tags. if(text!=null){ | text = text.replaceAll("\\[", "<"); | text = text.replaceAll("\\]", ">"); | } Secondly, I commented the following line. | if (text!=null) { | message.setText(text); | } | and added the following line in the Mail.java class | MimeMultipart mp = new MimeMultipart(); | MimeBodyPart mainMsgPart = new MimeBodyPart(); | mainMsgPart.setContent(text, "text/html"); | mp.addBodyPart(mainMsgPart); | message.setContent(mp); | Please share your comments on this. Warm Regards, Naseem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051653#4051653 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051653 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem in formatting mail text using jbpm mail tag
One more thing, I want to ask. I found no cc attribute in the mail tag. Now lets say if I want to mark a person as cc, what should I do? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050869#4050869 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050869 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem in formatting mail text using jbpm mail tag
Thanks Ronald, I think in that case to allow processing of html contents, content type should be set to 'text/html' using MimeMultipart. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050852#4050852 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050852 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Problem in formatting mail text using jbpm mail tag
Hi, I have configured mail in jbpm 3.2 at the node leave. I am finding problem in doing html formatting of the body of the mail. None of the html tags are working in the body. My question is how to do html formatting in the body of the mail. My question is how to do html formatting of the mail using jbpm mail support feature. Warm Reagrds, Naseem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050816#4050816 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050816 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Problem in adding a mail-node in the process definition on g
Hi, I am using jpdl gd 3.0.13 for developing process definition. I have tried to incorporate email in my process definition as a mail node. But I did not find any way to create mail-node from process designer. I can only create a simple node or a Task node where I can assign a task . There is no email node in my process designer. When I tried to add a mail-node in the generated process definition xml file, process deployment failed from the eclipse side, also the sequence of the definition gets broken. | | Email functionality as an action is working fine. Problem is with mail as a node. Is mail-node not supported in the current version of the process designer? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050402#4050402 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050402 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Task form cancel button not working
Thanks Ronald for making things clear. It seems like its a bug in the current jbpm-console web application which I am having. I don't know how many others get NullPointerException after clicking the cancel task form button. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049059#4049059 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049059 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Task form cancel button not working
"kukeltje" wrote : | No, it is for saying: "I'm not going to work on this task now, put it back in my tasklist" So it means if I write following code in the view.xhtml, this will work. | | One more thing I want to know, if a user fills a task form and then she decides to click the cancel button, will jbpm store user entered values in database or not? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049015#4049015 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049015 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Task form cancel button not working
Class TaskForm.java. If condition defined in the try block checks formButton an instance of CancelButton? If condition is true, then outcome is set to "cancel". | public void processAction(ActionEvent actionEvent) throws AbortProcessingException { | | . | | try { | if (formButton instanceof CancelButton) { | | //formButton.setDisabled(true); | log.debug("Cancel button was pressed"); | outcome = "cancel"; | if (creationLogsVar != null) { | requestMap.put(creationLogsVar, Collections.EMPTY_LIST); | } | commit = true; | return; | } | } | | ... | } | In the view.xhtml by Url of Task Instance View page before cancel button is clicked: http://localhost/main/task/view.html?tiid=11863 Url of Task Instance View page after cancel button is clicked: http://localhost/main/task/view.html I managed to solve the NullpointerException problem by changing the type to "stay". Still I don't know what is the purpose of cancel task form button? Is this cancel button for stopping a process which you started? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048968#4048968 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048968 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Task form cancel button not working
Hi, I am using jbpm 3.2 GA. I got an exeception when I clicked cancel button of a task form. Task form save button and transition buttons are working perfectly fine only cancel button is not working. Here is the stacktrace... anonymous wrote : javax.el.ELException: /main/task/view.xhtml @204,71 disabled="#{! processBean.hasProcessImage}": java.lang.NullPointerException | at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76) | at org.jbpm.webapp.tag.jbpm.ui.Tab.isDisabled(Tab.java:31) | at org.jbpm.webapp.tag.jbpm.ui.TabSet.encodeBegin(TabSet.java:120) | | ... | | Caused by: java.lang.NullPointerException | at org.jbpm.webapp.bean.ProcessBean.getHasProcessImage(ProcessBean.java:104) | at sun.reflect.GeneratedMethodAccessor220.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | | | Taskform buttons are as below... | | | | It seems like problem is with rendering of process image when cancel button is clicked. I checked its tld as well, I did not get any tag handler class or tei class for this cancel tag. Functionalities in the Cancel button and SaveButton final clases are same as both extend the same abstract class AbstractTaskFormButton. Is anyone else faced this problem earlier. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048583#4048583 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048583 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: login to jbpm_console failed
Thanks Ronald, I resolved the problem. In fact it became quite easier to find out the problem after your post. Basically problem was in the process instance table, unique constraint was imposed on (ID_, PROCESSDEFINITION_) composite column. I just removed unique constraint and it worked. Thanks once again Regards Naseem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047201#4047201 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047201 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: login to jbpm_console failed
Hi Guys, Finally I am able to login to jbpm-console page by adding records in JBPM_ID_MEMBERSHIP table for the new users I created and assigned them to a group by groupid as a foreign key. Now I am getting exception at the time of process start. First time when I start a new process, it works fine. There is no exception on the console. Second time when I start the same process version, exception is generated on the console saying... anonymous wrote : 15:32:26,701 DEBUG [JbpmContext] closing JbpmContext | 15:32:26,701 DEBUG [Services] closing service 'persistence': [EMAIL PROTECTED] | 15:32:26,701 DEBUG [DbPersistenceService] committing hibernate transaction | 15:32:26,717 WARN [JDBCExceptionReporter] SQL Error: 1, SQLState: 23000 | 15:32:26,717 ERROR [JDBCExceptionReporter] ORA-1: unique constraint (RND.SYS_C0014481) violated | | 15:32:26,717 WARN [JDBCExceptionReporter] SQL Error: 1, SQLState: 23000 | 15:32:26,717 ERROR [JDBCExceptionReporter] ORA-1: unique constraint (RND.SYS_C0014481) violated | | 15:32:26,732 ERROR [AbstractFlushingEventListener] Could not synchronize database state with session | org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update | at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71) | at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) | at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:249) | at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:92) | at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:87) | at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:218) | at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2106) | at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2503) | at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:51) | at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248) | at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232) | at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139) | at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.ja | va:297) I got this exception only with oracle database. With hypersonic database, there was no exception. Please help. What could be the cause? Thanks Naseem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047179#4047179 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047179 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: login to jbpm_console failed
Hi Ronald, I found one link where configuration required for database change is given, but there as well just inserts are made only in jbpm_id_user table. Here is the link: http://docs.jboss.com/jbpm/v3.2/userguide/html/thejbpmdatabase.html Can you please provide me the link of jbpmstarted which you are talking about. Thanks Naseem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046772#4046772 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046772 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - login to jbpm_console failed
Hi, I am facing problem at the login page in jbpm-console (jbpm-jpdl-suite-3.2.GA). I changed the database to oracle, executed oracle script file jbpm-jpdl-suite-3.2.GA\jbpm-jpdl-3.2.GA\db\jbpm.jpdl.oracle.sql. Connection to oracle is fine. SessionFactory is successfully created and server starts without any exception. Next I inserted few users in the jbpm_id_user table by following query. insert into JBPM_ID_USER (ID_,CLASS_, NAME_, EMAIL_, PASSWORD_) values ('2', 'U', 'ernie', '[EMAIL PROTECTED], 'ernie'); Now when I tried to login in jbpm_console application by ernie/ernie, login failed. Anybody else faced this problem Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046719#4046719 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046719 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Deploying jbpm 3.2 application from ant build to jboss serve
Hi, I just started learning jbpm 3.2 GA. I successfully deployed websale application to jboss-4.0.4 using the jbpm-starter-kit. In jbpm starter kit, build.xml and build.deploy.xml files are in the jbpm folder by which I was able to deploy the jbpm.war and jbpm.sar to jboss-4.0.4 server. Now in 3.2 version of jbpm, starter kit is known as jbpm-suite. I want to know how to deploy the websale application this time i mean using 3.2 version on jboss server. I can't find jbpm project in jbpm-jpdl-3.2.GA. I want to deploy it to a seperate jboss server not in the default server which comes with jbpm using ant build script. Thanks & Regards View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046412#4046412 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046412 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: xhtml files in process definition
Thanks Ronald for your reply. Well I am not able to understand how this forms.mxl is used in the whole application. I did some changes in one of the xhtml files and I am not seeing those changes reflected in the browser. Is this xhtml file for task form customization? How do I use xhtml files in a simple jbpm process and what are the configuration steps? I am using jbpm 3.1.4 Please help in this regards Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045335#4045335 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045335 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - xhtml files in process definition
Hi, I searched alot on this forum for xhtml but I am not able to understand why xhtml files are used? In some thread I got someone saying to refer the cvs-head version of jbpm? I am currently using jbpm 3.1.4 Websale application which comes with jbpm is having four xhtml files (form.create.xhtml, form.evaluate.xhtml, form.fix.html and form.money.xhtml) and they are included in forms.xml. My process definition is deployed, started and ended perfectly fine without xhtml, so what is the xhtml files and when should I use xhtml files? Any tutorial on this would be higly appreciated. Please help Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044952#4044952 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044952 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm process deployment error
Thanks kukeltje, Yeah I got the log file in my eclipse workspace. Thanks once again Rgds View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044929#4044929 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044929 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: jbpm process deployment error
I checked it here... C:\jboss-4.0.4\server\default\log This folder is blank. There is no server.log file created here. and in C:\jboss-4.0.4\server\jbpm\log folder I have one file boot.log but here no deployment exception is there. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044904#4044904 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044904 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - jbpm process deployment error
Hi, I was deploying a process definition and I got exception saying --- and exception happened during the deployment of the process. Look in the error log for more info. I want to know where is this log file created? I searched my jboss root folder and there is no error log. Naseem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044888#4044888 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044888 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Validation of task form fields
Thanks for your reply. But there is no required attribute in that. In variable tag, I specified access="read,write,required". Which required attribute you are talking about? websale process definition which comes with jbpm have three xhtml file. One change which I did is in form.create.xhtml file.. I specified for item text field and then I redeployed websale par but there is no effect on the browser. Thanks once again for all your prompt replies :) Rgds View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044662#4044662 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044662 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem in adding Action class
Now I moved my process definition plus action class in jbpm project. Action class is in src/java.jbpm folder and src/process.examples contain my .par folder. Then I deployed my process difinition on server deployer /jbpm/upload and this time it worked. Earlier my process definition and action class was not in the jbpm project rather it was in a separate process project. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044655#4044655 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044655 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Validation of task form fields
Hi... I have created a process definition where I need to validate task form fields. Initially I used default controller for the same task and I also created task variables with read, write and required checked. Now since required is checked so it should give error at the time of task form submission if entries are blank just like struts required validation-rule but still I can submit the form without entering task form fields. Why there is no validation is this case when required is set to true? or is this required has some other meaning? Secondly if the above approach is not the right way of validation, then can I do the same by writing a custom controller for the same and then validate form fields by java code in the custom controller. Please suggest some solution. Thanks & Regards Naseem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044573#4044573 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044573 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: Problem in adding Action class
Well if that execute method is executed... then sop line should be printed on the jboss server console. I checked jboss server console and there is no output: *** Now I did one more thing.. I included my process definition as well as its action in jbpm war file... this time it worked. I am able to see the output on the console. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044466#4044466 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044466 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Problem in adding Action class
Hi, I am facing problem in executing a custom action class in jbpm 3.1 Process is something like this... start--->state1-->end1 Now at state1, I have a action class at the time of node-enter. | | | NASEEM | | | | | My MessageActionHandler class... package com.sample.action; | | import org.jbpm.graph.def.ActionHandler; | import org.jbpm.graph.exe.ExecutionContext; | | public class MessageActionHandler implements ActionHandler { | | private static final long serialVersionUID = 1L; | | /** | * The message member gets its value from the configuration in the | * processdefinition. The value is injected directly by the engine. | */ | String message; | | /** | * A message process variable is assigned the value of the message | * member. The process variable is created if it doesn't exist yet. | */ | public void execute(ExecutionContext context) throws Exception { | | System.out.println("*"); | //context.getContextInstance().setVariable("message", message); | //System.out.println("Message is> " + message); | | } | } | On the server console... I get this message... anonymous wrote : ... | DEBUG [GraphElement] event 'node-enter' on 'State(state1)' for 'Token(/)' | DEBUG [GraphElement] executing action 'action[action1]' | ... | But my action class execute method is not executed? My Action class is in the process project and I have selected java classes and resources. I deployed process definition on server-deployer /jbpm/upload My Action class is not in the jbpm.war. I am not sure where I should put my Action class. Please help me in this regard Thanks in advance Naseem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4044215#4044215 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4044215 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Assigning task to mutiple actors
Hi, I am using JBPM version 3 and I have a requirement where I need to assign a task to mutiple actor say to bert and ernie. This is how I did by swimlanes. A new swimlane I created whose Assignment type is expression. In the expression, I wrote user(bert, ernie). Process was also deployed correctly on server deployer /jbpm/upload but I got exception when I accessed that particular task. Can anyone please help me is there any way by which we can assign same task to multiple actorIds. Any pointer on this would be highly appreciated. Thanks Naseem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043826#4043826 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043826 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - problem in retrieving multiple actorIds
Hi, I have a process definition where I have a fork. From that fork, there are two task nodes, each task node is having a task. I have already assigned task1 and task 2 to say bert and grover respectively by swimlanes. Now In the browser, I am getting message anonymous wrote : New tasks have been assigned to: null, null I checked the source code of TaskBean. | 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); | } | I found that when task node is just one, then its working fine. Problem I am facing is when there are two task nodes each task is assigned to an actor, then I am getting null, null. It means else part is not working correctly. Can anyone tell me what is the reason? Naseem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043122#4043122 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043122 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - org jbpm Scheduler class
Hi, I just checked the documentation of jbpm, there is nowhere package org.jbpm.imp mentioned but the jbpm.war uses this package. There is a class AdminBean in package org.jbpm.webapp.bean where class org.jbpm.scheduler.impl.Scheduler is imported. Can anyone please tell me from where I can download this package. I already downloaded jbpm-starter kit , jbpm-jpdl plus its process designer etc. Naseem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042729#4042729 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042729 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user