[rules-users] Guvnor Rest API

Jervis Liu jliu at redhat.com
Mon Apr 16 22:12:42 EDT 2012


On 2012/4/14 13:41, Amin Mohammed-Coleman wrote:
> Hi
>
> I am trying to use the Guvnor Rest API to upload rules and BPMN process definitions to a remote Guvnor installation.  So far I am able to update the binary content of the asset using:
>
> /drools-guvnor/rest/packages/myPackage/assets/myAsset/binary
>
> However when I look at the history for the asset, the current version does not point to the version I have uploaded using the API.  Is there a separate API I have to call in order to set the current version to be the one I've uploaded or is there an example which I can reference?
What is the latest version? What does the check in comment say?

There are plenty of examples in this test: 
https://github.com/droolsjbpm/guvnor/blob/master/guvnor-webapp-drools/src/test/java/org/drools/guvnor/server/jaxrs/BasicPackageResourceIntegrationTest.java. 
Take a look at testCreateAndUpdateAndGetBinaryAsset.

Cheers,
Jervis
>
> I'm using Guvnor 5.4.0-CR1
>
> Any help would be appreciated.
>
> Thanks
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users




More information about the rules-users mailing list