[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, 2 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, 2 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, 2 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, 2 months
[JBoss JIRA] Created: (JBRULES-1212) Rete throws NoClassDefFoundError when asserting facts with classess loaded by inaccessible classloader.
by Alexander Gavrilov (JIRA)
Rete throws NoClassDefFoundError when asserting facts with classess loaded by inaccessible classloader.
--------------------------------------------------------------------------------------------------------
Key: JBRULES-1212
URL: http://jira.jboss.com/jira/browse/JBRULES-1212
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Reteoo
Affects Versions: 4.0.1
Reporter: Alexander Gavrilov
Assigned To: Mark Proctor
We using drools as part of security enfocement engine in our application, based on Tapestry4 framework. Tapestry4 pages and components is abstract classes with some abstract methods, for which tapestry generates implementation at runtime. For example, if i declare page
public abstract SomePage extends BasePage {
}
Tapestry will generate class in default package like
public SomePage$_0 extends BasePage {
}
On page loading whe using instantiated page objects ans Drools Facts to ensure, that current user has permissions to load this page. In the previos verions we used (3.0.6) all worked fine. After update to version 4.0.1 whe got the NoClassDefFoundError when triyng to assert Page object into working memory.
This is becouse tapestry creates classes for pages in private classloader, which is child of the application classloader. When Drools tries to generate shadowing proxy for generated Page class it generate code like
public class SomePage$_0ShadowProxy extends SomePage$_0 {
}
Later, when it tries to load this class with MapBackedClassLoader, it can not find definition for class SomePage$_0 and throws NoClassDefFoundError. This type of error does not handled correctly by drools.
--
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, 2 months