[JBoss jBPM] - Re: Round trip process to task variable mapping
by msandoz
heres an example of one of the things im trying to do - is there a better way to get the variables into the process context from the xml? also it doesnt seem to be pulling them in the EL further down in the script.
the action is pretty basic - just jython-executes the code.
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| xmlns="urn:jbpm.org:jpdl-3.2"
| name="simple">
| <swimlane name="automated"></swimlane>
| <event type="process-start">
| <script>token.getProcessInstance().getContextInstance().createVariable("reusableCode", "print 'foo';");</script>
| </event>
| <start-state name="start">
| <transition name="" to="jython"></transition>
| </start-state>
| <node name="jython">
| <action class="com.nexusbpm.services.jython.JythonService">
| <jythonCode>#{contextInstance.variable[reusableCode]}</jythonCode>
| </action>
| <transition name="j2" to="jython2">
| </transition>
| </node>
| <node name="jython2">
| <action class="com.nexusbpm.services.jython.JythonService">
| <jythonCode>#{contextInstance.variable[reusableCode]}</jythonCode>
| </action>
| <transition name="toEnd" to="end"></transition>
| </node>
| <end-state name="end"></end-state>
| </process-definition>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050186#4050186
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050186
17 years, 6 months
[Installation, Configuration & Deployment] - Re: Configuring virtual host in jboss-4.2.0.GA?
by tgarcia
Hi Mike. Are you setting up a virtual host for local development where you have entered the virtual host in your hosts file or were you successful at setting up the virtual host that relies on the DNS server to resolve the IP address? The latter is the problem that I'm having. I can setup the virtual host for my local development environment but I'm having problems with 4.2.0 resolving the IP from the DNS server when trying to access the site from a remote machine.
Below is one of my < Host > entries in server.xml:
| <Server>
| <Service name="jboss.web">
|
| <Connector port="80" address="${jboss.bind.address}"
| maxThreads="250" maxHttpHeaderSize="8192"
| emptySessionPath="true" protocol="HTTP/1.1"
| enableLookups="false" redirectPort="8443" acceptCount="100"
| connectionTimeout="20000" disableUploadTimeout="true" />
|
| <!-- Define an AJP 1.3 Connector on port 8009 -->
| <Connector port="8009" address="${jboss.bind.address}" protocol="AJP/1.3"
| emptySessionPath="true" enableLookups="false" redirectPort="8443" />
|
| <Engine name="jboss.web" defaultHost="localhost">
|
| ........
|
| <Host name="epic-test"
| autoDeploy="false" deployOnStartup="false" deployXML="false"
| configClass="org.jboss.web.tomcat.security.config.JBossContextConfig"
| >
| <Alias>epic-test.mydomain.com</Alias>
| <Valve className="org.jboss.web.tomcat.service.jca.CachedConnectionValve"
| cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager"
| transactionManagerObjectName="jboss:service=TransactionManager" />
| </Host>
|
| </Engine>
| </Service>
| </Server>
|
As mentioned previously, my virtual hosts work fine when using 4.0.5.
Thanks,
Tom
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050182#4050182
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050182
17 years, 6 months
[EJB 3.0] - java.lang.RuntimeException: Cannot find FacesContext
by ruchi123456
I am new to EJB 3.0 and jboss sever. Am really stuck. Would appreciate any help.
I am using JSF + ejb3.0 + jboss 4.2
My jsf was running fine on jboss 4.0.5 GA, but in jboss 4.2 i get the below Exception, when i try to access jsf from ie
Cannot find FacesContext
java.lang.RuntimeException: Cannot find FacesContext
at javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1797)
at javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1614)
at org.apache.jsp.welcome_jsp._jspx_meth_f_005fview_005f0(welcome_jsp.java:106)
at org.apache.jsp.welcome_jsp._jspService(welcome_jsp.java:83)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
---------------------------------------
Below is the listener in my web.xml
<listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
-------------------------------------------
Also i have placed myfaces library jars in web-inf/lib folder of my application
Please suggest
Regards,
Ruchika
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050171#4050171
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050171
17 years, 6 months
[JBoss Portal] - Re: About JBoss Portal 2.6 ...
by thomas.heute@jboss.com
"fquimbay" wrote :
| 1. Is JBoss Portal 2.6 sufficiently stable for a production project ?
|
JBoss Portal 2.4 is used in production in many places, 2.6 will be final late in June and is already used in production on jboss.org
"fquimbay" wrote :
| 2. Is possible separate the portal tables and bussiness tables in diferent databases required for JBoss Portal Project ? This is advisable ?
|
Sure, as any web application, create any number of datasource you want.
"fquimbay" wrote :
| 3. If we need to modify the behaviour of add users and roles (more or less fields in the form), any problem with the initial and stable behaviour of the JBoss Portal ?
|
You can add remove any number of user properties (those are Strings). For the form, just modify the form of the user portlet and the backend to take them into account.
You can store those porperties in LDAP or database out of the box (or anywhere if you implement some interfaces)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050165#4050165
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050165
17 years, 6 months