[jBPM] New message: "Re: Decision table"
by tamisier laure
User development,
A new message was posted in the thread "Decision table":
http://community.jboss.org/message/527225#527225
Author : tamisier laure
Profile : http://community.jboss.org/people/lauretamisier
Message:
--------------------------------------------------------------
In fact i have do it ... transform my decision table to a rule file .. is very simple :
InputStream stream = null;
try {
stream = new FileInputStream(file);
SpreadsheetCompiler sCompiler = new SpreadsheetCompiler();
String drl = sCompiler.compile(stream, InputType.XLS);
File out = new File("toto.drl");
PrintWriter pw = new PrintWriter(out);
pw.append(drl);
pw.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527225#527225
16 years, 4 months
[jBPM] New message: "Use local variable in process"
by tamisier laure
User development,
A new message was posted in the thread "Use local variable in process":
http://community.jboss.org/message/527224#527224
Author : tamisier laure
Profile : http://community.jboss.org/people/lauretamisier
Message:
--------------------------------------------------------------
Hy,
I try to use a rule and a decision node with a local variable :
<start g="14,195,48,48" name="start1">
<transition g="-33,-26" name="soumettre" to="soumettre"/>
</start>
<rules g="97,195,92,52" name="soumettre">
<fact var="candidat"/>
<transition g="-68,-18" name="to exclusive1" to="exclusive1"/>
</rules>
<decision g="251,191,48,48" name="exclusive1">
<transition g="-29,-18" name="to ok" to="ok">
<condition expr="#{candidat.getPlop() == true}"/>
</transition>
<transition g="-29,-18" name="to ko" to="ko"/>
</decision>
<state g="303,86,92,52" name="ok">
</state>
<state g="340,290,92,52" name="ko">
</state>But if i have just the rule, there is no problem but when i add the decision node i have the following error :
Exception in thread "main" java.lang.NoClassDefFoundError: javax/el/ELException
at org.jbpm.pvm.internal.script.JuelScriptEngineFactory.getScriptEngine(JuelScriptEngineFactory.java:185)
at javax.script.ScriptEngineManager.getEngineByName(Unknown Source)
at org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:111)
at org.jbpm.pvm.internal.script.ScriptManager.evaluateExpression(ScriptManager.java:90)
at org.jbpm.pvm.internal.model.ExpressionCondition.evaluate(ExpressionCondition.java:41)
at org.jbpm.jpdl.internal.activity.DecisionConditionActivity.findTransitionUsingConditions(DecisionConditionActivity.java:61)
at org.jbpm.jpdl.internal.activity.DecisionConditionActivity.execute(DecisionConditionActivity.java:46)
at org.jbpm.jpdl.internal.activity.DecisionConditionActivity.execute(DecisionConditionActivity.java:42)
at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
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.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:65)
at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:38)
at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
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.RetryInterceptor.execute(RetryInterceptor.java:55)
at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:70)
at Deployer.main(Deployer.java:39)
Do you have an idea in order to correct this problem ?
Thanks and regards
Laure
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527224#527224
16 years, 4 months
[Spring Integration] New message: "Using JBoss(4.2.0) with Spring and AspectJ"
by Bala krishnan
User development,
A new message was posted in the thread "Using JBoss(4.2.0) with Spring and AspectJ":
http://community.jboss.org/message/527222#527222
Author : Bala krishnan
Profile : http://community.jboss.org/people/adreamer
Message:
--------------------------------------------------------------
I have an application in which I'm trying to use AspectJ with Spring and deploy it in JBoss 4.2.0.
AspectJ is integrated with spring and is loaded via
<context:load-time-weaver />
in spring xml file. When I run the application in standalone, it works fine -- aspects are getting called.
However, when I deploy the application (as a war) in JBoss, aspects are not called. I think that the classes are also not weaved -- I've have enabled debug in aop.xml,
<aspect>
<weaver options="-debug -verbose -showWeaveInfo">
....
</weaver>
....
</aspect>
and logs(weaving related logs) are not printed when I run the application as war. However, I do get message that aop.xml files are loaded and aspects areregistered.
What should I do to make aspects called in this environment? I tried disabling tomcat specific classloader (setting UseJBossWebLoader and Java2ClassLoadingCompliance to "true" in jboss-service.xml of tomcat, but that also didn't work. I have also given "-javaagent" to jboss startup.
When I searched, one option given was to use application specific "context.xml" for tomcat and copy spring-tomcat-weaver.jar to tomcat classpath. However, I got a exception, saying logger class is available in two class hierarchies, when I tried this. Is this(having a context.xml) the correct way to solve the issue? How the whole thing will work if I have an EAR and a WAR inside that EAR (assuming that I want to weave classes inside and outside war)?
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/527222#527222
16 years, 4 months