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.