<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi Nicolas,
<div><br>
</div>
<div>I think you're referring to&nbsp;<a href="https://issues.jboss.org/browse/GUVNOR-1995">https://issues.jboss.org/browse/GUVNOR-1995</a> &nbsp;?</div>
<div><br>
</div>
<div>Assuming I had that setup, I'm still not sure what type of curl request would submit it.</div>
<div><br>
</div>
<div>I'm looking at the code in Reply #4 on:</div>
<div><a href="https://community.jboss.org/thread/213665">https://community.jboss.org/thread/213665</a></div>
<div><br>
</div>
<div>The &quot;slug header&quot; stuff is related to Atom feeds, and I know Guvnor does support that. &nbsp;I'm wondering if I must use that format, and how to simulate that with plain curl or Java (I'm going to try to find the library that code uses)<br>
<div apple-content-edited="true"><br>
--<br>
Mark Bennett / LucidWorks: Search &amp; Big Data /&nbsp;<a href="mailto:mark.bennett@lucidworks.com">mark.bennett@lucidworks.com</a><br>
Office: 408-898-4201 / Telecommute: 408-733-0387 / Cell: 408-829-6513 </div>
<br>
<div>
<div>On Aug 16, 2013, at 9:14 AM, Nicolas Héron &lt;<a href="mailto:nicolas.heron.java@gmail.com">nicolas.heron.java@gmail.com</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">
<div>
<div>Hi,<br>
</div>
Yes it is possible to upload a pojo jar over rest. There were commits in the 5.5.x branch&nbsp; so you have to compile it yourself.<br>
</div>
<div>Contact me in direct if you need more info : nicolas dot heron at pymma dot com<br>
</div>
<div>Cheers<br>
</div>
<div>Nicolas<br>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">2013/8/16 Mark Bennett [via Drools] <span dir="ltr">&lt;<a href="x-msg://6/user/SendEmail.jtp?type=node&amp;node=4025583&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span><br>
<blockquote style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote">
<div class="HOEnZb">
<div class="h5">Hi guys, <br>
<br>
I'm using 5.5, and I've looked around and around on Google, and although I've seen a few claims that this might work, so far I haven't had any luck. &nbsp;I'm getting various errors, 404 no such page, also &quot;service not available&quot;.
<br>
<br>
I do pass in the authentication header. &nbsp;I'm also making sure to generate Java 1.6 classes, and the UI accepts the JAR without complaint and exposes it in the UI.
<br>
<br>
I saw one post claiming to upload as an asset, but there was some code change required to Drools/Guvnor to get it to treat it as a model, so that's not an option.
<br>
<br>
<br>
Let me try a few simple questions that might narrow this down: <br>
<br>
* Would you expect to use the REST API or the Webdav API to upload? <br>
<br>
* What would the URL look like? &nbsp;(I've tried a bunch, looks simple enough online, and I'm able to download the DRLs)
<br>
<br>
* I downloaded the combo pack of JBoss and Drools/Guvnor 5.5. &nbsp;Is there maybe some config change needed to enable the additional REST or Webdav URLs?
<br>
<br>
* When you submit a JAR interactively, I know GWT is involved, but does it hand over the request to either the REST or Webdav API? &nbsp;OR does it have some other special entrance into the system, some third way in? &nbsp;And if so, could I use that?
<br>
<br>
* Would I use a POST or a PUT? &nbsp;The theory seems to be use POST if it's new, or PUT if it's an update, but neither has worked.
<br>
<br>
* What mime type would you use? &nbsp;The 3 ideas were octet-stream, multipart or java jar (not the exact syntax)
<br>
<br>
* Would I shove just the bytes of the jar file, or do I need multipart and also include some type of XML file as well?
<br>
<br>
* Is it OK to just write the raw bytes of the jar, or do I need to encode them? <br>
<br>
* Assuming I could upload a JAR, would I then also need to issue some type of &quot;commit&quot;, the way the UI does?
<br>
<br>
* Do you agree that this should be possible to test with curl? &nbsp;(to eliminate Java coding and library differences as the problem)
<br>
<br>
* Instead of a JAR, is there some other fact model / syntax that I can automatically generate and upload? &nbsp;I get the impression there is, but neither the doc nor the 3 books seem very specific, I haven't seen a full example of this.
<br>
<br>
* Generally, for dynamic models driven by external systems, what is the &quot;Best Practice&quot; for telling the Guvnor UI about the model? &nbsp;Maybe I'm going about this all wrong?
<br>
<br>
* Does Drools 6 and the new Guvnor replacement suddenly make this much easier? <br>
<br>
<br>
I've been looking around and experimenting for about a week now so I'm running out of ideas.
<br>
<br>
Thanks, <br>
Mark <br>
<br>
-- <br>
</div>
</div>
Mark Bennett / LucidWorks: Search &amp; Big Data / <a href="http://user/SendEmail.jtp?type=node&amp;node=4025580&amp;i=0" rel="nofollow" link="external" target="_blank">
[hidden email]</a> <br>
<div class="im">Office: 408-898-4201 / Telecommute: 408-733-0387 / Cell: 408-829-6513
<br>
<br>
<br>
_______________________________________________ <br>
rules-users mailing list <br>
</div>
<a href="http://user/SendEmail.jtp?type=node&amp;node=4025580&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" rel="nofollow" link="external" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
<br>
<hr noshade="" size="1">
<div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
<a href="http://drools.46999.n3.nabble.com/rules-users-So-can-you-automatically-upload-a-POJO-JAR-Model-or-not-tp4025580.html" target="_blank" rel="nofollow" link="external">http://drools.46999.n3.nabble.com/rules-users-So-can-you-automatically-upload-a-POJO-JAR-Model-or-not-tp4025580.html</a>
</div>
<div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To start a new topic under Drools: User forum, email <a href="x-msg://6/user/SendEmail.jtp?type=node&amp;node=4025583&amp;i=1" target="_top" rel="nofollow" link="external">
[hidden email]</a> <br>
To unsubscribe from Drools, <a href="x-msg://6/" target="_blank" rel="nofollow" link="external">
click here</a>.<br>
<a href="http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
</div>
</blockquote>
</div>
<br>
</div>
<div class="signature" style="margin-top:1em;color:#666666;font-size:11px;">Nicolas Héron
</div>
<br>
<hr align="left" width="300">
View this message in context: <a href="http://drools.46999.n3.nabble.com/Re-rules-users-So-can-you-automatically-upload-a-POJO-JAR-Model-or-not-tp4025583.html">
Re: [rules-users] So can you automatically upload a POJO JAR Model or not?</a><br>
Sent from the <a href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html">
Drools: User forum mailing list archive</a> at <a href="http://Nabble.com">Nabble.com</a>.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
https://lists.jboss.org/mailman/listinfo/rules-users</blockquote>
</div>
<br>
</div>
</body>
</html>