On 2013/3/25 17:34, Viktor Chekh wrote:

It is hard to say what the problem is without seeing your code. For example, can be sth wrong with your content type (if u send XML, u need to set content type to application/xml) or sth wrong with the xml you are sending out. One way to find out is to take a look into unit tests included in guvnor and try them out. For example, u can find both example codes updating asset using Atom and XML from this test: https://github.com/droolsjbpm/guvnor/blob/5.5.x/guvnor-webapp-drools/src/test/java/org/drools/guvnor/server/jaxrs/AssetPackageResourceIntegrationTest.java

Cheers,
Jervis

Hi guys! 

I am quite new to Guvnor so i would like to ask you for some assistance. 
I need to change Guvnor asset metadata property by using REST Api. I am sending XML 

<asset>
<author>test</author>
<binaryContentAttachmentFileName/>
<binaryLink>
http://localhost:8080/guvnor-5.5.0.Final-tomcat-6.0/rest/packages/mortgages/assets/bobik/binary
</binaryLink>
<description/>
<metadata>
<checkInComment>disabled</checkInComment>
<created>2013-03-20T18:53:55.253+02:00</created>
<disabled>false</disabled>
<format>brl</format>
<note></note>
<state>Draft</state>
<uuid>5c8b1767-d9ee-42fa-bb4d-ab0e2b37aff5</uuid>
<versionNumber>43</versionNumber>
</metadata>
<published>2013-03-22T11:41:52.018+02:00</published>
<refLink>
http://localhost:8080/guvnor-5.5.0.Final-tomcat-6.0/rest/packages/mortgages/assets/bobik
</refLink>
<sourceLink>
http://localhost:8080/guvnor-5.5.0.Final-tomcat-6.0/rest/packages/mortgages/assets/bobik/source
</sourceLink>
<title>bobik</title>
</asset>

to my url : 

http://localhost:8080/guvnor-5.5.0.Final-tomcat-6.0/rest/packages/mortgages/assets/bobik

via HTTP PUT and nothing exept version number of the asset is changed. 

Do you have any ideas why is that?

--
Best regards,
Viktor



_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users