[JBoss AOP Development] - Adding org.apache.log4j and org.junit to nonAdvisablePackages
by Flavia Rainone
Flavia Rainone [http://community.jboss.org/people/flavia.rainone%40jboss.com] created the discussion
"Adding org.apache.log4j and org.junit to nonAdvisablePackages"
To view the discussion, visit: http://community.jboss.org/message/533537#533537
--------------------------------------------------------------
I've just discovered that UserDefinedClassLoaderTestCase is failing for ages now and nobody ever noticed because another failure happens when Junit is printing the report.
I've just fixed the initial failure, but I would also like to prevent the second failure to happen (i.e., if there is a failure, we want to to make sure we see that failure reported).
The cause of that second failure is an OutOfMemoryError, result of an endless instrumentation loop JBoss AOP enters because of calls to logger in JoinPointGenerator. Whenever such a call is found, JBoss AOP tries to weave the class. Since there was a problem in the classloader used by the test (fixed now), the class is not found and the same JoinPointGenerator try to log an error again, entering a infinite loop state.
Another problem that I saw is that, when Junit tries to generate the report, it uses org.junit packaged classes to do so, and JBoss AOP enters the loop again.
Despite the particularities of the aforementioned test, that was buggy, I think we should avoid weaving classes from those packages. Doing otherwise can:
- cause several deadlock problems because AOP startes the weaving process from inside the weaving process, in the case of org.apache.log4j (as seen before with other classes)
- cause problems when somebody is running a test that involves JBoss AOP with Junit, in the case of org.junit.
Can I add those packages to the isNonAdvisableClassName methods?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533537#533537]
Start a new discussion in JBoss AOP Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 3 months
Re: [jboss-user] [jBPM] - HTML support in mail templates
by Juvenal Guzman
Juvenal Guzman [http://community.jboss.org/people/juvs] replied to the discussion
"HTML support in mail templates"
To view the discussion, visit: http://community.jboss.org/message/533535#533535
--------------------------------------------------------------
Hi,
Some old thread but just in case someone still using jbpm 3 and needs HTML support...
First, need to establish mimeType, but, current Mail class from jBPM don't support this feature, so I create a new class based on Mail jBPM class (see attach file)
The magic is here:
public static void send(Properties mailServerProperties, String fromAddress, List recipients, List bccRecipients, String subject, String text, String mimetype) {
...
if (text != null && mimetype == null) {
message.setText(text);
} else { // Is another mimeType
message.setContent(text, mimetype);
}
...
}
So finally, on your template needs to set mimeType and HTML content (use CDATA for that)
<mail-template name='task-assign'>
<actors>#{taskInstance.actorId}</actors>
<subject>Task '#{taskInstance.name}'</subject>
<mimeType><![CDATA[text/html]]></mimeType>
<text><![CDATA[
<html>
Hi, Task '#{taskInstance.name}' has been assigned to you.
<br>
Go for it, press <a href="#{BaseTaskListURL}#{taskInstance.id}">here</a>
<br>
Thanks.
<br>
<b>---powered by JBoss jBPM---</b>
</html>]]></text>
</mail-template>
Remember to set this new class on your jBPM configuration
<string name='jbpm.mail.class.name' value='com.gucoba.jbmp.mail.MailAction' />
And here comes some nasty, as you know, your current deployed process needs to take this need parameter, so you have two options:
1. Redeploy your process
2. Update process variables on database
See this url for more information http://www.redhat.com/docs/en-US/JBoss_SOA_Platform/4.3.CP02/html-single/... http://www.redhat.com/docs/en-US/JBoss_SOA_Platform/4.3.CP02/html-single/...
Enjoy!
Juvs
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533535#533535]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 3 months
[JNDI and Naming] - JBoss 5.1 javax.naming.NameNotFoundException: javax.transaction.TransactionManager not bound
by Debopam Poddar
Debopam Poddar [http://community.jboss.org/people/dpoddar] created the discussion
"JBoss 5.1 javax.naming.NameNotFoundException: javax.transaction.TransactionManager not bound"
To view the discussion, visit: http://community.jboss.org/message/533523#533523
--------------------------------------------------------------
I am trying to deploy hibernate application in Jboss 5.1 but whenever it tries to create SessionFactory it gives following error.
2010-03-23 19:15:19,406 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/securityadmin].[jsp]] (http-127.0.0.1-10006-1) Servlet.service() for servlet jsp threw exception
javax.naming.NameNotFoundException: javax.transaction.TransactionManager not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at net.sf.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:23)
at net.sf.hibernate.transaction.JTATransactionFactory.configure(JTATransactionFactory.java:48)
at net.sf.hibernate.transaction.TransactionFactoryFactory.buildTransactionFactory(TransactionFactoryFactory.java:48)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:65)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1091)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:737)
at com.gmacb.blt.common.persistence.SessionFactoryImpl.getSessionFactory(SessionFactoryImpl.java:39)
at com.gmacb.blt.common.persistence.SessionFactoryImpl.newSession(SessionFactoryImpl.java:21)
at com.gmacb.blt.common.persistence.ThreadLocalHolder.getSession(ThreadLocalHolder.java:15)
at com.gmacb.blt.common.persistence.ServiceLocatorImpl$ManagerDelegate.getSession(ServiceLocatorImpl.java:113)
at com.gmacb.blt.common.persistence.ServiceLocatorImpl$ManagerDelegate.invoke(ServiceLocatorImpl.java:91)
at $Proxy261.findUserByUsername(Unknown Source)
at com.gmacb.blt.common.security.UserSecurityContextHibernateImpl.<init>(UserSecurityContextHibernateImpl.java:36)
at com.gmacb.blt.common.security.ISecurityServiceHibernateImpl.authenticateSSO(ISecurityServiceHibernateImpl.java:40)
at com.gmacb.blt.common.security.SecurityService.authenticateSSO(SecurityService.java:70)
at com.gmacb.blt.common.security.SimpleSecurityFilter.doFilter(SimpleSecurityFilter.java:58)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.gmacb.blt.sso.client.client.filter.CASFilter.doFilter(CASFilter.java:103)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
But I checked TransactionManagerService started successfully.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533523#533523]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 3 months
Re: [jboss-user] [jBPM] - JBPM4 connection problem
by Khaled Talaat
Khaled Talaat [http://community.jboss.org/people/egycator] replied to the discussion
"JBPM4 connection problem"
To view the discussion, visit: http://community.jboss.org/message/533520#533520
--------------------------------------------------------------
I have been trying to configure the JBPM to work with my application but I still getting this exception
16:51:30,552 INFO [CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resour
ce.adapter.jdbc.jdk5.WrappedConnectionJDK5@c8ea27
java.lang.Throwable: STACKTRACE
at org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection(CachedConnectionManager.java:
278)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:52
4)
at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseCon
nectionManager2.java:941)
at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
at com.asset.jupiter.jbpm.handlers.MainTaskHandler.excuteQuery(MainTaskHandler.java:169)
at com.asset.jupiter.jbpm.handlers.MainTaskHandler.notify(MainTaskHandler.java:59)
at org.jbpm.pvm.internal.wire.usercode.UserCodeEventListener.notify(UserCodeEventListener.java:39)
at org.jbpm.pvm.internal.model.op.ExecuteEventListener.perform(ExecuteEventListener.java:81)
at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:656)
at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:616)
at org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:217)
at org.jbpm.pvm.internal.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:61)
at org.jbpm.pvm.internal.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:37)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.JtaTransactionInterceptor.executeInExistingTx(JtaTransactionInterceptor.java:70)
at org.jbpm.pvm.internal.tx.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:55)
at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.executeWithoutRetry(JtaRetryInterceptor.java:56)
at org.jbpm.pvm.internal.tx.JtaRetryInterceptor.execute(JtaRetryInterceptor.java:48)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceById(ExecutionServiceImpl.java:50)
at com.asset.jupiter.client.workflow.jbpm.jbpm4.WorkflowV4.startProcessInstanceEx(WorkflowV4.java:93)
at com.asset.jupiter.client.workflow.jbpm.jbpm4.JBPMv4WFHandler.createProcessInstance(JBPMv4WFHandler.java:712)
at com.asset.jupiter.client.workflow.core.WorkflowService.wfCreateProcessInstance(WorkflowService.java:549)
at com.asset.jupiter.client.workflow.ejb.WorkflowEJBBean.createProcessInstance(WorkflowEJBBean.java:357)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.invocation.Invocation.performCall(Invocation.java:386)
at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContainer.java:606)
at org.jboss.ejb.plugins.StatefulSessionSecurityInterceptor.invoke(StatefulSessionSecurityInterceptor.java:84)
at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:228)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:211)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:156)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)
at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:77)
at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:348)
at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:97)
at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invoke(PreSecurityInterceptor.java:81)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:650)
at org.jboss.ejb.Container.invoke(Container.java:1029)
at sun.reflect.GeneratedMethodAccessor300.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)
at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:118)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
at $Proxy348.createProcessInstance(Unknown Source)
at com.asset.jupiter.client.wrapper.JCSynchronizedEJB.createProcessInstance(JCSynchronizedEJB.java:696)
at com.asset.jupiter.client.web.handler.WorkFlowEJBHandler.createAndStartProcessInstance(WorkFlowEJBHandler.java
:1960)
at com.asset.jupiter.client.web.handler.WorkFlowEJBHandler.processEvent(WorkFlowEJBHandler.java:141)
at com.asset.jupiter.client.web.control.RequestProcessor.handleAction(RequestProcessor.java:152)
at com.asset.jupiter.client.web.control.RequestProcessor.processRequest(RequestProcessor.java:87)
at com.asset.jupiter.client.web.control.MainServlet.processRequest(MainServlet.java:333)
at com.asset.jupiter.client.web.control.MainServlet.performTask(MainServlet.java:123)
at com.asset.jupiter.client.web.control.MainServlet.doGet(MainServlet.java:50)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.asset.jupiter.client.web.filter.GZIPFilter.doFilter(GZIPFilter.java:50)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.jav
a:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java
:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
My jbpm.hibernate.cfg.xml
<hibernate-configuration>
<session-factory>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
<property name="hibernate.connection.datasource">java:JbpmDS</property>
<property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
<property name="jta.UserTransaction">UserTransaction</property>
<mapping resource="jbpm.repository.hbm.xml" />
<mapping resource="jbpm.execution.hbm.xml" />
<mapping resource="jbpm.history.hbm.xml" />
<mapping resource="jbpm.task.hbm.xml" />
<mapping resource="jbpm.identity.hbm.xml" />
</session-factory>
</hibernate-configuration>
The JBPM datasource
<xa-datasource>
<jndi-name>JbpmDS</jndi-name>
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
<xa-datasource-property name="URL">jdbc:mysql://localhost:3306/jbpmdb</xa-datasource-property>
<user-name>root</user-name>
<password>a</password>
<!-- reduce isolation from the default level (repeatable read) -->
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<!-- separate connections used with and without JTA transaction -->
<no-tx-separate-pools />
<!-- disable transaction interleaving -->
<track-connection-by-tx />
<!-- leverage mysql integration features -->
<exception-sorter-class-name>
com.mysql.jdbc.integration.jboss.ExtendedMysqlExceptionSorter
</exception-sorter-class-name>
<valid-connection-checker-class-name>
com.mysql.jdbc.integration.jboss.MysqlValidConnectionChecker
</valid-connection-checker-class-name>
<!-- corresponding type-mapping in conf/standardjbosscmp-jdbc.xml -->
<metadata>
<type-mapping>mySQL</type-mapping>
</metadata>
</xa-datasource>
My application datasources are all no-tx-datasource
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533520#533520]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 3 months
Re: [jboss-user] [jBPM] - JBPM & WebApplication (for replace jbpm console)
by r 0
r 0 [http://community.jboss.org/people/rex*05] replied to the discussion
"JBPM & WebApplication (for replace jbpm console)"
To view the discussion, visit: http://community.jboss.org/message/533490#533490
--------------------------------------------------------------
Hello John,
I have solved some of my problems and I think this could interest you too.
I’m using JSF2.0 for my web application and solved the user input problem the following way.
I put a relative path to the input form for the task in the form flied of the task:
<task assignee="alex" form="../forms/userTaskForm1.jsf" g="220,16,92,52" name="task1">
This page contains the following code:
<h:inputText id="input1" value="#{processVariables.hashMap['Zahl1']}">
<f:converter converterId="javax.faces.Long" />
</h:inputText>
<h:inputText id="input2" value="#{processVariables.hashMap['Zahl2']}">
<f:converter converterId="javax.faces.Long" />
</h:inputText>
<h:inputText id="imput3" value="#{processVariables.hashMap['Zahl3']}">
<f:converter converterId="javax.faces.Long" />
</h:inputText>
<h:commandButton value="Setze Variable"
actionListener="#{taskController.setVariables}" />
This stores the data from the input flieds in a HashMap. When the user clicks on the commandButton this HashMap is set as variables for the task.
This works fine but is has two problems.
The first one is that I have to declare the type of the variables in the frontend with the help of converters. If I don’t do this, every variable is stored as a string.
The second one is that I have to set the names for the variables in the frontend “value=+"#{processVariables.hashMap['Zahl3']}"+>” So Zahl3 is the name/key of the variable.
Is there a possibility to predefine variables of a process in the procesdefinition.jpdl.xml?
So that I can readout the names and variables just have to fill a HashMap which already exists?
And Ronald thanks for your advice!
Greetings
Sandro
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533490#533490]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 3 months