[JBoss jBPM] - Re: Problem using jbpm server with fuzzy logic library
by jfrancoisl
Ok so i've been able to further down isolate the problem.
It is created by a call to the FuzzySet class.
When i do something like the example:
double xHot[] = {25, 35};
double yHot[] = {0, 1};
double xCold[] = {5, 15};
double yCold[] = {1, 0};
FuzzyValue fval = null;
FuzzyVariable temp = new FuzzyVariable("temperature", 0, 100, "C");
temp.addTerm("hot", xHot, yHot, 2);
temp.addTerm("cold", xCold, yCold, 2);
Everything works fine, but if i do something like ;
FuzzyVariable temp = new FuzzyVariable("temperature", 0, 100, "C");
temp.addTerm("hot", PIFuzzySet(5,0.5));
I get an error, because i use PIFuzzySet (a subclass of FuzzySet) instead of FuzzySet...
So why would this work when running locally on a custom executable program, but not when deployed and accessed through the webserver?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041007#4041007
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041007
17 years, 8 months
[JBoss Seam] - Possible new heature in Remoting?
by rlhr
Hello,
I'd like to be able to associate a context to the callback method.
At this point, we perform a remote call as:
| Seam.Component.getInstance("myComponent").myMethod(param1, myCallback);
|
I have the need for something like:
| Seam.Component.getInstance("myComponent").myMethod(param1, myCallback, myCallbackContext);
|
Where myCallbackContext is an object that has a method named myCallback (which is a string is that case).
myCallback would be call this way: myCallbackContext[myCallback]
I'm not sure I'm very clear here... So let me know :)
So looking at the Remote.js, I think this should be a faily simple change.
First, Seam.Remoting.createCall should become:
| Seam.Remoting.createCall = function(component, methodName, params, callback, callbackContext) {
| ...
| return {data: data, id: callId, callback: callback, callbackContext: callbackContext};
| }
|
Then Seam.Remoting.processResult should become:
| Seam.Remoting.processResult = function(result, context){
| ...
| if(call.callbackContext){
| call.callbackContext[call.callback](value, context);
| } else {
| call.callback(value, context);
| }
| }
|
There might be some other changes in some other places. I didn't look carefully at all the code, but I think that should be it.
Making that change would allows more "object oriented" javascript code to make call within there context.
Let me know if it makes sense to you. That would make my code much cleaner.
Regards,
Richard
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041002#4041002
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041002
17 years, 8 months
[JBoss Seam] - OneToMany List refresh after insert
by damianharvey
Hi,
I have a page where a header/detail set of data is entered. There is a relationship between the entities handled like so:
| @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "parentObject")
| public List<childObject> getChildObjects() {
| return this.childObjects;
| }
|
| | When I insert header & detail data the action returns to the same page that the insert was done. This page also has a dataTable showing header data. One of these fields is based on the List above and is used to show the first child Objects start date.
| |
| | The problem is that this List is not updated until the user navigates away and back. Is there anyway to force this List to update at the time that the records are created?
| |
| | I have tried setting the FetchType to EAGER but this had no effect.
| |
| | Thanks,
| |
| | Damian.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040998#4040998
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040998
17 years, 8 months