<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: Unknown resource type: null when call kagent.applyChangeSet( resource ) the second time.
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/devilkazuya99">TC ONG</a> in <i>jBPM</i> - <a href="https://community.jboss.org/message/723080#723080">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Here it is:</p><pre><p class="line" style="color: #000000; font-family: monospace; text-align: -webkit-auto;"><span>&lt;change-set<span> <span>xmlns</span>="<span><a class="jive-link-external-small" href="http://drools.org/drools-5.0/change-set" target="_blank">http://drools.org/drools-5.0/change-set</a></span>"</span><span> <span>xmlns:xs</span>="<span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a></span>"</span><span> <span>xs:schemaLocation</span>="<span><a class="jive-link-external-small" href="http://drools.org/drools-5.0/change-set" target="_blank">http://drools.org/drools-5.0/change-set</a><span> </span><a class="jive-link-external-small" href="http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd" target="_blank">http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd</a></span>"</span>&gt;</span></p><p class="line" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="collapsible-content" style="margin-left: 1em; color: #000000; font-family: monospace; text-align: -webkit-auto;"><span class="text"></span></p><div class="collapsible" id="collapsible1"><div class="expanded"><div class="line"><span class="button collapse-button" style="margin-left: -10px; background-position: no-repeat no-repeat;"></span><span>&#160;&#160;&#160; &lt;add&gt;</span><br/><div class="line"><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;resource<span> <span>source</span>="<span><a class="jive-link-external-small" href="http://192.168.10.13/drools/JavaInteractiveFlow.rf" target="_blank">http://192.168.10.13/drools/JavaInteractiveFlow.rf</a></span>"</span><span> <span>type</span>="<span>DRF</span>"</span>/&gt;</span><p><div class="line">&#160;&#160;&#160; &lt;/add&gt;</div></p></div></div></div><span class="text"></span></div><p class="line" style="color: #000000; font-family: monospace; text-align: -webkit-auto;"><span>&lt;/change-set&gt;</span></p>&#160;&#160;&#160;&#160;&#160;</pre><p>Ad the rf file is:</p><pre><p>&lt;?xml version="1.0" encoding="UTF-8"?&gt; </p><p><span>&lt;process xmlns="</span><a class="jive-link-external-small" href="http://drools.org/drools-5.0/process" target="_blank">http://drools.org/drools-5.0/process</a><span>"</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xmlns:xs="</span><a class="jive-link-external-small" href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span>"</span></p><p><span>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; xs:schemaLocation="</span><a class="jive-link-external-small" href="http://drools.org/drools-5.0/process" target="_blank">http://drools.org/drools-5.0/process</a><span> drools-processes-5.0.xsd"</span></p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; type="RuleFlow" name="flow" id="interactiveJava" package-name="com.geneoz.procedureengine" &gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; &lt;header&gt;</p><p>&#160;&#160;&#160; &lt;variables&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;variable name="smart_guy" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;type name="org.drools.process.core.datatype.impl.type.StringDataType" /&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;value&gt;john&lt;/value&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/variable&gt;</p><p>&#160;&#160;&#160; &lt;/variables&gt;</p><p>&#160; &lt;/header&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; &lt;nodes&gt;</p><p>&#160;&#160;&#160; &lt;start id="1" name="Start" x="204" y="12" width="48" height="48" /&gt;</p><p>&#160;&#160;&#160; &lt;end id="2" name="End" x="204" y="314" width="48" height="48" /&gt;</p><p>&#160;&#160;&#160; &lt;actionNode id="3" name="Question" x="45" y="157" width="130" height="48" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;action type="expression" dialect="java" &gt;System.out.println("Current name is " + smart_guy);</p><p>System.out.println("Who is the smartest man in the world?");</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>java.io.BufferedReader br = new java.io.BufferedReader(new java.io.InputStreamReader(System.in));</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>String name = null;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>try {</p><p> name = br.readLine();</p><p>} catch (java.io.IOException e) {</p><p> System.out.println("Error!");</p><p>}</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>kcontext.setVariable("smart_guy", name);</p><p>System.out.println("Got " + name);&lt;/action&gt;</p><p>&#160;&#160;&#160; &lt;/actionNode&gt;</p><p>&#160;&#160;&#160; &lt;split id="4" name="Gateway" x="205" y="229" width="49" height="49" type="2" &gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;constraints&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;constraint toNodeId="2" toType="DROOLS_DEFAULT" name="correct" priority="1" type="code" dialect="java" &gt;return smart_guy.equals("lim");&lt;/constraint&gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;constraint toNodeId="5" toType="DROOLS_DEFAULT" name="incorrect" priority="2" type="rule" dialect="mvel" &gt;eval(true)&lt;/constraint&gt;</p><p>&#160;&#160;&#160;&#160;&#160; &lt;/constraints&gt;</p><p>&#160;&#160;&#160; &lt;/split&gt;</p><p>&#160;&#160;&#160; &lt;actionNode id="5" name="Error message" x="312" y="156" width="123" height="45" &gt;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;action type="expression" dialect="mvel" &gt;System.out.println("Wrong you stupid! Try again.");&lt;/action&gt;</p><p>&#160;&#160;&#160; &lt;/actionNode&gt;</p><p>&#160;&#160;&#160; &lt;join id="6" name="Gateway" x="204" y="96" width="49" height="49" type="2" /&gt;</p><p>&#160; &lt;/nodes&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&#160; &lt;connections&gt;</p><p>&#160;&#160;&#160; &lt;connection from="4" to="2" /&gt;</p><p>&#160;&#160;&#160; &lt;connection from="6" to="3" /&gt;</p><p>&#160;&#160;&#160; &lt;connection from="3" to="4" /&gt;</p><p>&#160;&#160;&#160; &lt;connection from="4" to="5" /&gt;</p><p>&#160;&#160;&#160; &lt;connection from="1" to="6" /&gt;</p><p>&#160;&#160;&#160; &lt;connection from="5" to="6" /&gt;</p><p>&#160; &lt;/connections&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>&lt;/process&gt;</p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 
</pre></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/723080#723080">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>