[JBoss JIRA] Created: (JBPM-1068) Possibility of UITaskFormButtonBase to use child action tags such as it done with h:commandButton
by Vt Ysh (JIRA)
Possibility of UITaskFormButtonBase to use child action tags such as it done with h:commandButton
-------------------------------------------------------------------------------------------------
Key: JBPM-1068
URL: http://jira.jboss.com/jira/browse/JBPM-1068
Project: JBoss jBPM
Issue Type: Feature Request
Components: Web Interface
Affects Versions: jBPM jPDL 3.2.1
Reporter: Vt Ysh
Assigned To: Tom Baeyens
Priority: Optional
If i am trying to put custom action tags between for example <tf:saveButton value="Save"></tf:saveButton > such as it can be done with h:commandButton i am getting NullPointer exception with the next stack trace:
java.lang.NullPointerException
at org.jbpm.jsf.taskform.ui.UITaskFormButtonBase.getEnclosingForm(UITask
FormButtonBase.java:30)
at org.jbpm.jsf.taskform.ui.UITaskFormButtonBase.addActionListener(UITas
kFormButtonBase.java:44)
at org.jbpm.jsf.core.handler.AbstractHandler.apply(AbstractHandler.java:
64)
at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentH
andler.java:314)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java
:169)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHa
ndler.java:47)
at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentH
andler.java:314)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java
:169)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHa
ndler.java:47)
at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentH
andler.java:314)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java
:169)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHa
ndler.java:47)
at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentH
andler.java:314)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java
:169)
at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentH
andler.java:314)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java
:169)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHa
ndler.java:47)
at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentH
andler.java:314)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java
:169)
at com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:58)
at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.j
ava:128)
at com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(Def
aultFaceletContext.java:306)
at com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(Default
FaceletContext.java:279)
at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHa
ndler.java:47)
at test.facelets.IfHandler.apply(IfHandler.java:33)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHa
ndler.java:47)
at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.jav
a:49)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHa
ndler.java:47)
at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:
25)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFac
eletContext.java:143)
at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.j
ava:113)
at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.jav
a:49)
at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:
25)
at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java
:503)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.jav
a:546)
at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrap
per.java:178)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePha
se.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(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
kerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Seems that problem can be in HtmlCommandButton.getParent() method. Is there any suggestions how to fix this issue?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 7 months
[JBoss JIRA] Created: (JBPM-1067) token.getAvailableTransitions() -- need equivalent that returns ordered list.
by s b (JIRA)
token.getAvailableTransitions() -- need equivalent that returns ordered list.
-----------------------------------------------------------------------------
Key: JBPM-1067
URL: http://jira.jboss.com/jira/browse/JBPM-1067
Project: JBoss jBPM
Issue Type: Feature Request
Components: Core Engine
Affects Versions: jBPM jPDL 3.2.2
Environment: All OS
Reporter: s b
Assigned To: Tom Baeyens
This feature request is requesting:
1) API which adds a version of token.getAvailableTransitions() which returns an ordered List that preserves the order of the transitions as defined in the processdefinition.xml file for the node, rather than returning an unordered Set object.
2) Also request that TaskInstance.getAvailableTransitions() be modified to return an ordered list rather than a randomly ordered list by calling the new method.
For example:
------------------------
public class TaskInstance extends VariableContainer implements Assignable {
...
public List getAvailableTransitions() {
List transitions = null;
if ( (! isLast())
&& (token!=null)
) {
transitions = token.getAvailableTransitionsList(); // using new method
}
return transitions;
}
...
----------------------------------------
Problem:
node.getLeavingTransitions() appears to preserve the order, but the order is apparently lost when the transistions are added to the Set which is returned by token.getAvailableTransitions().
Preserving the ordering is highly useful when implementing a minimal data-driven interface which presents the user with the transitions to choose from. The designer could exercise some control over the presentation of the choices if only the order were preserved as defined in the processdefinition.xml file.
Solution:
Make a clone of "token.getAvailableTransitions()", name it "token.getAvailableTransitionsList()", and add the filtered transitions to a List instead of to a Collection, and return the list. Make sure the order is preserved the same as the transitions were defined in the "processdefinition.xml" file.
Modify "TaskInstance.getAvailableTransitions()" to call token.getAvailableTransitionsList().
Summary:
Although workarounds exist with existing code, it would be very helpful (and consistent I think) to provide an API that retrieves a list of the "available transitions" that is ordered as defined in the processdefinition.xml file instead of an unordered Set or List as is currently available.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 7 months
[JBoss JIRA] Created: (JBRULES-1220) Integration with jBPM does not work
by Jiri Pechanec (JIRA)
Integration with jBPM does not work
-----------------------------------
Key: JBRULES-1220
URL: http://jira.jboss.com/jira/browse/JBRULES-1220
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.0.1
Reporter: Jiri Pechanec
Assigned To: Mark Proctor
Priority: Minor
We had a code that intgrates JBoss Rules Global Resolver with jBPM variable pool
workingMemory.setGlobalResolver(new GlobalResolver() {
private static final long serialVersionUID = 1L;
public Object resolveGlobal(String identifier) {
System.out.println("!!!!!!!!!! resolve " + identifier);
return ci.getVariable(identifier);
}
public void setGlobal(String identifier, Object value) {
System.out.println("!!!!!!!!!! set " + identifier);
ci.setVariable(identifier, value);
}
});
And a rule file that serves as test
package org.jbpm.action
import org.jbpm.resolveraction.Customer;
import org.jbpm.resolveraction.Order;
import org.jbpm.context.exe.ContextInstance;
global java.lang.String shipper
rule "Determine Shipper"
when
Customer( region >= 1 )
Order( totalAmount >= 0 )
then
System.out.println(shipper);
drools.getWorkingMemory().setGlobal( "shipper", "FEDX" );
System.out.println("ship via FEDX " );
end
The output of the test is as expected
11:50:51,226 INFO [STDOUT] !!!!!!!!!! resolve shipper
11:50:51,227 INFO [STDOUT] None
11:50:51,227 INFO [STDOUT] !!!!!!!!!! set shipper
11:50:51,227 INFO [STDOUT] ship via FEDX
But if we modify the rule file to
package org.jbpm.action
import org.jbpm.resolveraction.Customer;
import org.jbpm.resolveraction.Order;
import org.jbpm.context.exe.ContextInstance;
global java.lang.String shipper
rule "Determine Shipper"
when
eval ("None".equals(shipper))
Customer( region >= 1 )
Order( totalAmount >= 0 )
then
System.out.println(shipper);
drools.getWorkingMemory().setGlobal( "shipper", "FEDX" );
System.out.println("ship via FEDX " );
end
then nothing is printed - no attempt to resolve shipper global variable
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 7 months
[JBoss JIRA] Created: (JBPM-1065) com.sun.facelets.compiler.TagLibraryConfig loadImplicit errors reported when jBPM console is accessed
by Len DiMaggio (JIRA)
com.sun.facelets.compiler.TagLibraryConfig loadImplicit errors reported when jBPM console is accessed
-----------------------------------------------------------------------------------------------------
Key: JBPM-1065
URL: http://jira.jboss.com/jira/browse/JBPM-1065
Project: JBoss jBPM
Issue Type: Bug
Components: Web Interface
Environment: soa-standalone.zip (oct 1 2007)
RHEL5
java
version "1.5.0_12" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04) Java HotSpot(TM) Server VM (build 1.5.0_12-b04, mixed mode)
Reporter: Len DiMaggio
Assigned To: Tom Baeyens
Priority: Minor
These errors are reported when the jBPM console is accessed - the console seems to run however.
10:31:47,121 ERROR [STDERR] Oct 2, 2007 10:31:47 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/SOA-standalone/server/default/tmp/deploy/tmp47297jbpm-console-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
10:31:47,142 ERROR [STDERR] Oct 2, 2007 10:31:47 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/SOA-standalone/server/default/tmp/deploy/tmp47297jbpm-console-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
10:31:47,173 ERROR [STDERR] Oct 2, 2007 10:31:47 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/SOA-standalone/server/default/tmp/deploy/tmp47297jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf.jar!/META-INF/tfl.taglib.xml
10:31:47,186 ERROR [STDERR] Oct 2, 2007 10:31:47 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/SOA-standalone/server/default/tmp/deploy/tmp47297jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf.jar!/META-INF/tf-compat.taglib.xml
10:31:47,971 ERROR [STDERR] Oct 2, 2007 10:31:47 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/SOA-standalone/server/default/tmp/deploy/tmp47297jbpm-console-exp.war/WEB-INF/lib/gravel.jar!/META-INF/gravel-data.taglib.xml
10:31:47,992 ERROR [STDERR] Oct 2, 2007 10:31:47 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/SOA-standalone/server/default/tmp/deploy/tmp47297jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf.jar!/META-INF/identity.taglib.xml
10:31:48,030 ERROR [STDERR] Oct 2, 2007 10:31:48 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/SOA-standalone/server/default/tmp/deploy/tmp47297jbpm-console-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
10:31:48,036 ERROR [STDERR] Oct 2, 2007 10:31:48 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/SOA-standalone/server/default/tmp/deploy/tmp47297jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf.jar!/META-INF/tfl-compat.taglib.xml
10:31:48,058 ERROR [STDERR] Oct 2, 2007 10:31:48 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/SOA-standalone/server/default/tmp/deploy/tmp47297jbpm-console-exp.war/WEB-INF/lib/gravel.jar!/META-INF/gravel-action.taglib.xml
10:31:48,064 ERROR [STDERR] Oct 2, 2007 10:31:48 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/SOA-standalone/server/default/tmp/deploy/tmp47297jbpm-console-exp.war/WEB-INF/lib/gravel.jar!/META-INF/gravel-nav.taglib.xml
10:31:48,074 ERROR [STDERR] Oct 2, 2007 10:31:48 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/SOA-standalone/server/default/tmp/deploy/tmp47297jbpm-console-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
10:31:48,103 ERROR [STDERR] Oct 2, 2007 10:31:48 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/SOA-standalone/server/default/tmp/deploy/tmp47297jbpm-console-exp.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
10:31:48,109 ERROR [STDERR] Oct 2, 2007 10:31:48 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/SOA-standalone/server/default/tmp/deploy/tmp47297jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf.jar!/META-INF/tf.taglib.xml
10:31:48,163 ERROR [STDERR] Oct 2, 2007 10:31:48 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/SOA-standalone/server/default/tmp/deploy/tmp47297jbpm-console-exp.war/WEB-INF/lib/gravel.jar!/META-INF/gravel-simple.taglib.xml
10:31:48,211 ERROR [STDERR] Oct 2, 2007 10:31:48 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/SOA-standalone/server/default/tmp/deploy/tmp47297jbpm-console-exp.war/WEB-INF/lib/jbpm4jsf.jar!/META-INF/core.taglib.xml
10:31:48,226 ERROR [STDERR] Oct 2, 2007 10:31:48 AM com.sun.facelets.compiler.TagLibraryConfig loadImplicit
INFO: Added Library from: jar:file:/opt/SOA-standalone/server/default/tmp/deploy/tmp47297jbpm-console-exp.war/WEB-INF/lib/gravel.jar!/META-INF/gravel-compat.taglib.xml
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 7 months
[JBoss JIRA] Created: (JBRULES-1223) Concurrent problem in MVEL
by Ramses Gomez (JIRA)
Concurrent problem in MVEL
--------------------------
Key: JBRULES-1223
URL: http://jira.jboss.com/jira/browse/JBRULES-1223
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Drl Parser/Builder
Environment: Jboss 4.0.5 GA
Reporter: Ramses Gomez
Assigned To: Mark Proctor
Fix For: 4.0.2
java.util.ConcurrentModificationException: concurrent access to HashMap attempted by Thread[WorkManager(3)-6,5,JBoss Pooled Threads]
at java.util.HashMap.onExit(HashMap.java:217)
at java.util.HashMap.transfer(HashMap.java:514)
at java.util.HashMap.resize(HashMap.java:500)
at java.util.HashMap.addEntry(HashMap.java:800)
at java.util.HashMap.put(HashMap.java:441)
at org.mvel.AbstractParser._loadLanguageFeaturesByLevel(AbstractParser.java:1360)
at org.mvel.AbstractParser.setLanguageLevel(AbstractParser.java:1291)
at org.drools.rule.builder.dialect.mvel.MVELDialect.init(MVELDialect.java:127)
at org.drools.compiler.DialectRegistry.initAll(DialectRegistry.java:49)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:137)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:104)
at com.accenture.adsj.soa.spf.brp.BusinessRuleProcessor.createPackage(BusinessRuleProcessor.java:65)
at com.accenture.adsj.soa.spf.brp.BusinessRuleProcessor.getStatefulSession(BusinessRuleProcessor.java:53)
at com.accenture.adsj.soa.spf.brp.BusinessRuleProcessor.registerBO(BusinessRuleProcessor.java:115)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 7 months