[JBoss jBPM] - Re: JBPM JSF Integrartion
by ambika_devi
Hi roccolocko
Suggest and help me in the code which u have given to me..
Hi Ronald
I am using jbpm-jpdl-3.2.GA as my jboss jbpm runtime in eclipse.
I included the eclipse plugins which are inside the D:\jbpm-jpdl-3.2.GA\designer\eclipse\plugins into my eclipse.
Then i added task to the start state. In the advanced properties for task, i found
Due Date:
Blocking:
and Generate Form Button.
Clicking on the Generate Form Button i added the variables and i gave a file named "task.xhtml". once after doing this, i got the forms.xml and the task.xhtml inside my process dir.
|
| forms.xml
| ------------
| <?xml version="1.0" encoding="UTF-8"?>
|
| <forms>
| <form task="task" form="task.xhtml"/>
| </forms>
|
| task.xhtml
| ------------
|
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
|
| <!-- the DOCTYPE means we are required to use html for a root element -->
| <html xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:c="http://java.sun.com/jstl/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:tf="http://jbpm.org/jsf/tf"
| xmlns:jbpm="http://jbpm.org/jsf">
|
| <ui:component>
|
| <jbpm:dataform>
|
| <f:facet name="header">
| <h:outputText value="#{taskName}"/>
| </f:facet>
|
| <!-- TASKFORM ROWS -->
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="name"/>
| </f:facet>
| <h:inputText value="#{var['name']}" />
| </jbpm:datacell>
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="number"/>
| </f:facet>
| <h:inputText value="#{var['number']}" />
| </jbpm:datacell>
|
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="Actions"/>
| </f:facet>
| <!-- TASKFORM BUTTONS -->
| <tf:saveButton value="Save"/>
| <tf:cancelButton value="Cancel"/>
| <tf:transitionButton transition="to_state" value="to_state"/>
| </jbpm:datacell>
|
| </jbpm:dataform>
|
| </ui:component>
|
| </html>
|
|
|
Only by generating form, i couldn't get the variables in the jbpm-console.
If i am giving that variables in default controller only, the variables are displayed in the process instance otherwise not.
Then i deployed my process definition in the D:\jbpm-jpdl-3.2.GA\server
It is deployed sucessfully with that variables but i coudn't edit the value of the variable (Even if i am giving it in default controller) in Jbpm console.
Help me in the code and suggest which server to use and how to deploy.
Thanks
Ambika.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055135#4055135
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055135
18Â years, 10Â months
[JBoss jBPM] - Error while starting process
by dabd
Hi,
I am using jbpm-jpdl-suite-3.2.GA on Windows and I get the following error while starting a very simple process I defined:
Stream error while reading XML: www.w3.org
I don't see anything wrong in the generated form that could cause this error. Any hints?
Thanks.
Here is the stack trace:
javax.faces.FacesException: Stream error while reading XML: www.w3.org
| at com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:522)
| at com.ctc.wstx.sr.WstxStreamReader.next(WstxStreamReader.java:978)
| at org.jbpm.webapp.tag.jbpm.ui.XmlPrinter.encodeBegin(XmlPrinter.java:113)
| at org.jbpm.webapp.tag.jbpm.ui.ComponentBase.doEncode(ComponentBase.java:31)
| at org.jbpm.webapp.tag.jbpm.ui.ComponentBase.doEncode(ComponentBase.java:58)
| at org.jbpm.webapp.tag.jbpm.ui.Tab.encodeChildren(Tab.java:112)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:884)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:890)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:890)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:578)
| at org.jbpm.webapp.application.JbpmViewHandler.renderView(JbpmViewHandler.java:58)
| 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 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
| at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| at java.lang.Thread.run(Thread.java:595)
|
And here is the generated form that causes the error:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
|
| <!-- the DOCTYPE means we are required to use html for a root element -->
| <html xmlns="http://www.w3.org/1999/xhtml"
| xmlns:ui="http://java.sun.com/jsf/facelets"
| xmlns:c="http://java.sun.com/jstl/core"
| xmlns:h="http://java.sun.com/jsf/html"
| xmlns:f="http://java.sun.com/jsf/core"
| xmlns:tf="http://jbpm.org/jsf/tf"
| xmlns:jbpm="http://jbpm.org/jsf">
|
| <ui:component>
|
| <jbpm:dataform>
|
| <f:facet name="header">
| <h:outputText value="#{taskName}"/>
| </f:facet>
|
| <!-- TASKFORM ROWS -->
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="observacoes"/>
| </f:facet>
| <h:inputText value="#{var['observacoes']}" />
| </jbpm:datacell>
|
| <jbpm:datacell>
| <f:facet name="header">
| <h:outputText value="Actions"/>
| </f:facet>
| <!-- TASKFORM BUTTONS -->
| <tf:saveButton value="Save"/>
| <tf:cancelButton value="Cancel"/>
| <tf:transitionButton value="Save and Close"/>
| </jbpm:datacell>
|
| </jbpm:dataform>
|
| </ui:component>
|
| </html>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055124#4055124
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055124
18Â years, 10Â months
[JBoss Seam] - mapping problems
by jamesjmp
hello,
I´m testing files generated by means of seam-gen. When I run the seam app there is this error:
An Error Occurred:
/RstReportList.xhtml @39,62 rendered="#{empty myPOJO.resultList}": Exception getting value of property resultList of base of type : action.package.MyPOJO _$$_javassist_11
In the log:
Caused by: org.hibernate.hql.ast.QuerySyntaxException: MyPOJO is not mapped [select myPOJO from MyPOJO myPOJO]
It seems that there is some configuration problem. The content of the persistence.xml file is the following: (I´m using Sybase and my database schema is dbo)
<?xml version="1.0" encoding="UTF-8"?>
| <!-- Persistence deployment descriptor for dev profile -->
| <persistence xmlns="http://java.sun.com/xml/ns/persistence"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
| version="1.0">
|
| <persistence-unit name="ONLINE" transaction-type="JTA">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/ONLINEDatasource</jta-data-source>
| <properties>
| <property name="hibernate.hbm2ddl.auto" value="update"/>
| <property name="hibernate.show_sql" value="true"/>
| <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
| <property name="hibernate.dialect" value="org.hibernate.dialect.SybaseDialect"/>
| <property name="hibernate.default_schema" value="dbo"/>
| <property name="jboss.entity.manager.factory.jndi.name" value="java:/ONLINEEntityManagerFactory"/>
| </properties>
| </persistence-unit>
|
| </persistence>
|
|
|
Any idea will be welcomed.
thanks in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055122#4055122
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055122
18Â years, 10Â months
[Remoting] - RMI : Boss Remoting heavy load
by ecatum
Hi,
here the situation :
- A client make remoting call on a object using rmi via org.jboss.remoting.Client and org.jboss.remoting.InvokerLocator.
- On the server side, we use ServerInvocationHandler and implement the method invoke(...).
Using jetty, we add on jboss-service.xml this configuration :
| <server>
|
| <mbean code="org.jboss.remoting.transport.Connector"
| name="jboss.remoting:service=Connector,transport=RMI"
| display-name="MySubSys Socket transport Connector">
| <attribute name="Configuration">
| <config>
| <invoker transport="rmi">
| <attribute name="registryPort" isParam="true">8053</attribute>
| <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
| <attribute name="serverBindPort">8052</attribute>
| </invoker>
| <handlers>
| <handler subsystem="MYSUBSYS">com.subsys.MySubSys</handler>
| </handlers>
| </config>
| </attribute>
| <depends>jboss.jca:service=DataSourceBinding,name=subsysDS</depends>
| </mbean>
| </server>
|
This part is ok.
But a large number of Clients have to connected on the server. When we made some tests, we note that when too much clients are connected, the others clients which want to connect them self to the server see their connections refused due to open connection limitation.
I wonder to know if there is a way to increase the number of socketConnection, socketTimeout, ... for RMI in order to add it on the jboss-service.xml.
Thanks ;)
Bye.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055120#4055120
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055120
18Â years, 10Â months
[JBoss Seam] - howto: selectManyMenu and hql with EntityQuery
by thegernot
Hello,
I have used seam gen to generate basic classes for an existing database model. Now I try to add a listbox with multiple selection. The backend class is extended from EntityQuery.
The problem I have now:
How can I add a multiple selection restriction string for the query?
I have tried with a Long[] but the result is a class cast exception: the resulting select is not capable that he should receive a list but expects only one variable instead...
| <h:selectManyMenu value="#{parameterList.categoryIds}">
| <s:selectItems value="#{paramcategoryList.resultList}" var="category" label="#{category.name}"/>
| <s:convertEntity />
| </h:selectManyMenu>
|
| @Name("parameterList")
| public class ParameterList extends EntityQuery {
| private List<Long> categoryIds;
|
| private static final String[] RESTRICTIONS = {
| "parameter.paramcategory.id in elements(#{parameterList.categoryIds})",};
|
| @Override
| public String getEjbql() {
| return "select parameter from Parameter parameter";
| }
|
| @Override
| public List<String> getRestrictions() {
| return Arrays.asList(RESTRICTIONS);
| }
|
| ... categoryIds getter and setter
| }
|
An additional problem arises with building RESTful URL's: since I have a dynamic list of parameters for the GET URL I have not found a solution to add a suitable page parameter to page.xml. As a work around I use the JSF POST...
Does anybody know how to add a page parameter that is capable of a selection list?
Many thanks,
Gernot
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055116#4055116
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055116
18Â years, 10Â months