[jboss-user] [jBPM] - Create asset using Rest API

out sider do-not-reply at jboss.com
Thu Apr 19 10:01:11 EDT 2012


out sider [https://community.jboss.org/people/out_sider] created the discussion

"Create asset using Rest API"

To view the discussion, visit: https://community.jboss.org/message/731087#731087

--------------------------------------------------------------
I've seen this  https://community.jboss.org/thread/196919 https://community.jboss.org/thread/196919 (Create WID Using Rest API).

But what I want is using the atom xml mehtod not sending the byte stream.

I need to do a POST to the packages/{packageName}/assets with the atom-xml payload, as it stated in the documentation:


> | Creates an asset in package {packageName} from the Atom Entry provided. Following info are required from the input Atom Entry: asset name, asset description, asset initial category, asset format. |
> 
> 
#

But how exactly should I do the POST request so after it I get a costum Work Item Definition in a specific package?

I don't want to send the file because I don't have one...I have the WID parameters holded in variables and I want to do a WID whose parameters has those values.

Thanks in advance
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/731087#731087]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120419/b2eac076/attachment-0001.html 


More information about the jboss-user mailing list