Events in wrong order - will it cause problems?
by Alexander Wolf
I used to let drools set the timestamp of events automatically, but a new requirement forces me to use @timestamp for my events.
Normally my events should come in the right order, but sometimes (as the events origin from mobile devices) it can occur that the order is incorrect.
I tested with "wrong" timestamps and it seems like they would work alright - but I think I read somewhere, that events inserted in a wrong order might be ignored in some circumstances (especially by CEP rules).
How can events in wrong order cause problems?
11 years, 3 months
Guvnor 5.5 pkg compile error - Unable to build expression for action
by pritispin
Hi All,
I'm not able to compile an imported pkg from eclipse inside guvnor. The
package is imported into defaultPackage and the process definition of the
imported packages has tns:package:defaultPackage.
I'm runnnig the jbpm-fullinstaller 5.5 which starts jBossAS7. The errors,
when I compile the package after the process is being imported, are
following:
1) Unable to analyze expression ClientTaskDetail clientTaskDetail = new
ClientTaskDetail();
2) Unable to build expression for action ClientTaskDetail
Now in the process definiton, there is an import of the business class which
works fine in eclipse.
Seems like guvnor is not finding the business jar in the classpath.
So I packaged the business jar inside the drools-guvnor.war and redeployed
it (followed ant stop.demo; ant start.demo) but still keep getting the same
error.
Can someone please point me to a tool that will suggest what jars are being
loaded into the runtime or a possible resolution for this classpath issue
when it is not finding the business jar that is being reference inside the
process definition.
BTW, this process definiton does not have any rules inside it - it just have
bunch of script tasks that references business service jars.
Thanks you for your time.
~Priti
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-5-5-pkg-compile-error-Unable-to-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 3 months
Guvnor REST api, compile package
by anchi
Hi!
I have some difficulties using Guvnor REST API, I'm using version 5.3.5. I
would appreciate your help or guides how to achieve what I need.
1. I need a way to trigger package compilation remotely (and if possible to
get compile errors if they occur). Is there any way to do this? (Doesn't
matter if api could get deprecated, we don't plan migrating to newer version
in the near future.) I want to start compilation on request, just like I
would do from Guvnor console.
2. If I create a new snapshot at
/.../rest/packages/{packageName}/snapshot/{snapshotName}/ does it also
compile a package?
3. How to make Guvnor to update package version? When I update assets
through the rest api the package version is unchanged. I found an
information that a PUT request to /.../rest/packages/{packageName}/ would
update the version, but when I tried it, it created a new empty package with
the same name. I don't want to change any package information, I just want
to save the current version, with all the assets it contains. How to do
this?
3.a. Actually, I tried the PUT request to
/.../rest/packages/defaultPackage/, which for some reason created a new
'defaultPackage', so I had two defaultPackages in my repository. After I
deleted the newly added defaultPackage I couldn't get the contents of my
original 'defaultPackage' through REST api, although I could see all the
assets in Guvnor console. It behaves just as the defaultPackage is empty.
How to fix this??
Thanks!
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-REST-api-compile-package-tp40257...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 3 months
Integrate Drools with Java application, need recommendations
by srikanthmalli
Hi,
I am trying Drools/Guvnor for very first time, we are planned to do Rule
Authoring in Guvnor, compile, build and download the package to “Rule
Package Directory”.
Now the question I am having is, what is the best way to integrate Drools
with our Java application?
Option 1) Build the knowledge agent and start inserting the facts into
memory for rule evaluation in our application. In this case Drools engine
use JVM same as application JVM.
Option 2) Have a Drools Server which builds the knowledge agent, and
application can send the requests to Drools Server for rule evaluation using
REST API. Rules will be executed in separate JVM than application JVM.
I also wondering is there any performance (in terms of execution time)
difference between the options mentioned above?
Could you please also let me know if I am thinking in the right direction?
-Sri
--
View this message in context: http://drools.46999.n3.nabble.com/Integrate-Drools-with-Java-application-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 3 months
Potential Bug in Guvnor with usage of "from collection" and "Any of the following are true"
by Sean Su
I found that the statement generated from "from collection" is not correct
when it is used in combination with "Any of the following are true"
feature. There is ">" being generated in frond of the statement which is
causing the compilation error.
Here is the code being generated from the guided editor:
java.util.Collection( size >= 1 ) from collect ( ProcedureEvent( elements
contains 4658 ))
( >java.util.Collection( size == 1 ) from collect ( ProcedureEvent(
elements contains 7788 , eval( contiguousDays.createNewWithPaddedTime(1,
DateTimeUnit.DAY).intersectsButNotAdjacent($diagnosticEvent.contiguousDays)
)))
or >java.util.Collection( size >= 2 ) from collect ( DrugEvent(
elements contains 4146 ))
)The code above was from the item 8 and 9 in the attached screen. As shown,
the collection statement is correct when there is no "any of the following
are true" involved.
This seems to be a bug in Guvnor.
Please let me know if this needs to be reported.
Sean
11 years, 3 months
Guvnor error when compiling imported process
by pritispin
guvnor-error.png
<http://drools.46999.n3.nabble.com/file/n4025853/guvnor-error.png>
Hi Guvnor Team,
I am having a process definition in Eclipse and it runs fine. But we want to
use Guvnor as the repository so I imported the process definition from
Eclipse to Guvnor but I get following error when trying the build the
package.
Can someonep lease give me some clues based on the attachement. I have no
logs as it does not write anything to serbver.log
I'm runnnig latest jbpm-full installer 5.5 which starts the jBoss AS 7.0
server. The process definiton has tns:defaultPackage and I also included
some of the jars (business related classes that are used in the script task)
in the drools-guvnor.war->lib and repackage it and restarted the server but
I still keep getting the same error.
I don't know is it not finding the business classes/jars or is this error
related to something else?
How can I see more logs related to guvnor in jBoss.
Thanks,
Priti
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-error-when-compiling-imported-pr...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 3 months