[JBoss jBPM] - Re: Problem using jbpm server with fuzzy logic library
by jfrancoisl
The XML file:
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition
| xmlns="urn:jbpm.org:jpdl-3.1" name="EmergencyWorkflow">
| <swimlane name="swimlane1"></swimlane>
| <start-state name="Emergency Situation">
| <task name="Emergency" swimlane="swimlane1">
| <controller>
| <variable name="Event" access="read,write,required"></variable>
| </controller>
| </task>
| <transition name="Go to Mayor" to="AlertMayor"></transition>
| </start-state>
| <task-node name="Analyse Gravity">
| <task name="Get Details" swimlane="swimlane1">
| <controller>
| <variable name="Wounded" access="read,write,required"></variable>
| <variable name="Proximity of residence" access="read,write,required"></variable>
| <variable name="Accessibility" access="read,write,required"></variable>
| <variable name="Hazmats" access="read,write,required"></variable>
| <variable name="Temperature" access="read,write,required"></variable>
| <variable name="Size of fire" access="read,write,required"></variable>
| <variable name="Fire state (under control?)" access="read,write,required"></variable>
| </controller>
| </task>
| <transition name="" to="Get %"></transition>
| </task-node>
| <state name="Fix Locally">
| <transition name="" to="Gather Information"></transition>
| </state>
| <state name="Call Prefet">
| <transition name="" to="end1"></transition>
| </state>
| <end-state name="end1"></end-state>
| <task-node name="Gather Information">
| <task name="Gather Info" swimlane="swimlane1">
| <controller>
| <variable name="Other info..." access="read"></variable>
| </controller>
| </task>
| <transition name="tr6" to="fork1"></transition>
| </task-node>
| <task-node name="Results">
| <transition name="" to="end1"></transition>
| </task-node>
| <task-node name="Get %">
| <task name="Recommended decision" swimlane="swimlane1">
| <controller>
| <variable name="Keep Local" access="read"></variable>
| <variable name="Contact Préfet" access="read"></variable>
| </controller>
| </task>
| <event type="node-enter">
| <action name="action1" class="evalFuzzy.ActionButton"></action>
| </event>
| <transition name="Keep Local" to="Fix Locally"></transition>
| <transition name="Contact higher authorities" to="Call Prefet"></transition>
| </task-node>
| <node name="AlertMayor">
| <transition name="Go To Gravity" to="Analyse Gravity"></transition>
| </node>
| <task-node name="Police">
| <transition name="" to="join1"></transition>
| </task-node>
| <task-node name="Médias">
| <transition name="" to="join1"></transition>
| </task-node>
| <task-node name="Samu">
| <transition name="" to="join1"></transition>
| </task-node>
| <task-node name="Firefighters">
| <transition name="" to="join1"></transition>
| </task-node>
| <task-node name="Civil Security">
| <transition name="" to="join1"></transition>
| </task-node>
| <join name="join1">
| <transition name="" to="Results"></transition>
| </join>
| <fork name="fork1">
| <transition name="" to="Police"></transition>
| <transition name="tr2" to="Médias"></transition>
| <transition name="tr3" to="Samu"></transition>
| <transition name="tr4" to="Firefighters"></transition>
| <transition name="tr5" to="Civil Security"></transition>
| </fork>
| </process-definition>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041297#4041297
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041297
17 years, 8 months
[JBoss jBPM] - Re: Problem using jbpm server with fuzzy logic library
by jfrancoisl
Sorry all, i just realised that I posted stuff about the FuzzyJToolkit class while this forum is about JBPM.
However i was still wrong in my assessment, I still have the same problem whenever i just try to instantiate that class...
here is an example:
public static void blahblah(){
FuzzyVariable temp;
try {
temp = new FuzzyVariable("temperature", 0, 100, "C");
} catch (InvalidFuzzyVariableNameException e) {
e.printStackTrace();
} catch (InvalidUODRangeException e) {
e.printStackTrace();
}
}
That function will crash if i access it from the action handler, but not if i access it myself from a small main executable that i create...
The problem seems to be when i instantiate :
temp = new FuzzyVariable("temperature", 0, 100, "C");
If i remove it, it runs ok...
Is there a restriction to the kind of classes you can access with the action handler?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041296#4041296
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041296
17 years, 8 months