Can't reload a saved BPMN2 process file...
by bob.breitling
I am running DROOLS 5.2.0-M1 with the latest designer war from 2.9.2011.
When I try to reload a saved BPMN2 process, I get this error in my jboss log
and the diagram does not display:
Cannot find the declaration of element 'bpmn2:definitions'.
By the way, the xmlns URIs are missing from the omg website.
If I access the guvnor from webdav I can see the BPMN file and I can open it
with a text editor, so the file is definitely there.
Also are there any examples of using BPMN2 with DROOLS? Everything I have
found uses Rule Flow and not BPMN.
Thanks,
Bob
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Can-t-reload-a-saved-...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 9 months
Unterminated String Literal error
by StormeHawke
I'm getting an error as follows:
Error: Unable to build expression for 'consequence': [Error: unterminated
string literal]
[Near : {... label, priceValue);
}
} ....}]
I've combed the file looking for any stray quote characters, did a ctrl + f
and verified that all my string literals are closed, all my lines of code
have their appropriate ; terminations... I'm sure I'm probably missing
something obvious, but can somebody take a look for me?
I'm using Drools version 5.1.0; my rule file is below.
package net.intellidata.pricing.rules
import net.intellidata.pricing.data.model.PriceDataRecord;
import net.intellidata.pricing.PriceRequest;
import net.intellidata.pricing.result.PriceResult;
import net.intellidata.pricing.result.ValueType;
import net.intellidata.pricing.result.PriceValue;
import net.intellidata.pricing.data.InputType;
rule "someclient-default rule"
dialect "mvel"
when
$priceRequest : PriceRequest( )
$priceDataRecord : PriceDataRecord( )
then
PriceResult result = new PriceResult($priceRequest.getClient(),
$priceRequest.getRequestedPn());
for(InputType inputType : $priceDataRecord.keyset())
{
String label = inputType.getPropertyName();
Object value = $priceDataRecord.get(inputType);
ValueType valueType = null;
String valueDisplay = null;
switch(inputType)
{
//Don't add ID and PN to the result - ID is unnecessary and PN is
included as a separate property
case ID:
case PN:
break;
case PACKAGE_UNIT:
valueType = ValueType.INTEGER;
valueDisplay = value.toString();
break;
case MOQ_1:
case MOQ2:
valueType = ValueType.INTEGER;
valueDisplay = value.toString();
break
case PRICE_1:
case PRICE_2:
valueType = ValueType.BIG_DECIMAL;
valueDisplay = value.toString();
break;
case LEAD_TIME:
valueType = ValueType.DOUBLE;
valueDisplay = value.toString();
break;
default:
throw new IllegalArgumentException("InputType " + InputType.toString()
+ " is not defined for " + $priceRequest.getClient().getName());
}
if(valueType != null)
{
PriceValue priceValue = new PriceValue(label, value, valueType,
valueDisplay);
result.put(label, priceValue);
}
}
end
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Unterminated-String-L...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 9 months
Migrating from one environment to another
by Chris Selwyn
I am aware of the Guvnor export/import mechanism to move an entire
repository and the method of importing a DRL to create a package.
But what I have been looking for is a mechanism to move the entire
contents of a Guvnor package (DSL, model, DSLR file, DRL files etc) from
one Guvnor instance to another, so far without luck.
Is there such a mechanism?
Chris Selwyn
13 years, 9 months
Sliding time windows and interval-based events
by OlliSee
Hi there,
I can't seem to find a hint in the documentary about WHEN an event is
considered to be recognized by a sliding time window.
I tried it out myself with an event with a duration of 5000 (= 5s) and a
rule with a sliding time window of just 1s. So the event can never be
completely situated in the window, only the end or start time can be. As it
turns out, the rule fires once as soon as the event is inserted.
Personally, I don't like this behaviour. But why isn't this documented
somehow?
Kind regards
Oliver
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Sliding-time-windows-...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 9 months
Expose JBoss rules as webservice
by Vkishore_Kumar
Hello,
I am developing a java based stand alone logger framework to plug in to my integration applications. After logging the messages, the framework need to forward the message to a notification service (a Java based SOAP/HTTP web service) . The business logic of this notification service now needs to be implemented using JBoss Business Rules Management System. Since my integration applications run on WebSphere server, I would be using the WebSphere SOAP engine for logger framework to invoke the notification web service. I am new to the JBoss suite of integration products. Could you please help me with the below
1. To build some rules, say if-else or decision tables, is JBoss BRMS alone sufficient?
2. Once the business rules are developed, is there a way to expose these rules as a SOAP/HTTP web service?
3. What are the set of products needed to develop and deploy this rule service as a SOAP/HTTP web service? I assume it is JBoss BRMS and JBoss Enterprise SOA Platform.
[cid:image001.png@01CBCDF2.1C66A5E0]
Any help/guidance on the above queries are greatly appreciated.
Thanks & Regards
Kishore
________________________________
DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
13 years, 9 months
how to stop rule execution
by Sathya Prakash
Hi,
How to stop rule execution in technical rule,
Example
rule "Error Check"
salience 100
when
error condition check
then
System.Out.Println("Response has errors");
XXXXXXXXXXXXXXXXXXXXXXXX to exit from rule execution
end
rule "Rule-01"
salience 99
when
repsonse.getxx()
then
end.
if first rule then part executed means the response is error hence we should
not execute second.
Is there any way to exit rule execution.
Regards,
Sathya Prakash.
13 years, 9 months
Drools - behaviour
by Bala
Hi,
I am using drools - 5.0.1. In my application, knowledge session is created
each time for each user request. After server startup when the user request
for the first time, it's taking too much time to respond. But on subsequent
request, the response time is good.
Whether it could be beacause of drools classes dynamically loaded when user
request it for the first time??
Seriously i am clueless in this regard... can anyone help?????
Thanks in advance...
-Bala
-----
Thanks,
Bala
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-behaviour-tp25...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 9 months