[rules-users] Problem with Uploading a Rule File into Guvnor

ramram8 ramram858 at gmail.com
Thu Nov 26 06:18:03 EST 2009


Hi All 

I have the following problem:
When uploading a rule file into Guvnor and this rule file dont contain any
split or join the file is uploaded successfully but once I have uploaded a
rule file with split and join there is an error in the guvnor telling me
unable to generate action invoker.

Please to help in this issue
Below is my rule file: 

<?xml version="1.0" encoding="UTF-8"?> 
<process xmlns="http://drools.org/drools-5.0/process"
         xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
         xs:schemaLocation="http://drools.org/drools-5.0/process
drools-processes-5.0.xsd"
         type="RuleFlow" name="flow" id="com.fp.userTask"
package-name="com.fp" >

  <header>
    <variables>
      <variable name="createUser" >
        <type
name="org.drools.process.core.datatype.impl.type.BooleanDataType" />
        <value>false</value>
      </variable>
      <variable name="user" >
        <type
name="org.drools.process.core.datatype.impl.type.StringDataType" />
        <value></value>
      </variable>
      <variable name="endProcess" >
        <type
name="org.drools.process.core.datatype.impl.type.BooleanDataType" />
        <value>true</value>
      </variable>
      <variable name="index" >
        <type
name="org.drools.process.core.datatype.impl.type.IntegerDataType" />
      </variable>
    </variables>
  </header>

  <nodes>
    <end id="16" name="End" x="586" y="58" width="48" height="48" />
    <start id="1" name="Start" x="9" y="160" width="48" height="48" />
    <humanTask id="3" name="User Task" x="410" y="58" width="75" height="44"
>
      <work name="Human Task" >
        <parameter name="ActorId" >
          <type
name="org.drools.process.core.datatype.impl.type.StringDataType" />
          <value>#{user}</value>
        </parameter>
        <parameter name="Comment" >
          <type
name="org.drools.process.core.datatype.impl.type.StringDataType" />
          <value>This is the SubFlow task #{user} </value>
        </parameter>
        <parameter name="Content" >
          <type
name="org.drools.process.core.datatype.impl.type.StringDataType" />
          <value>Task after the log process</value>
        </parameter>
        <parameter name="Priority" >
          <type
name="org.drools.process.core.datatype.impl.type.StringDataType" />
        </parameter>
        <parameter name="Skippable" >
          <type
name="org.drools.process.core.datatype.impl.type.StringDataType" />
          <value>false</value>
        </parameter>
        <parameter name="TaskName" >
          <type
name="org.drools.process.core.datatype.impl.type.StringDataType" />
          <value>SubFlow Task</value>
        </parameter>
      </work>
    </humanTask>
    <split id="5" name="Gateway" x="329" y="160" width="49" height="49"
type="2" >
      <constraints>
        <constraint toNodeId="13" name="End Process" priority="2"
type="code" dialect="java" >return endProcess;</constraint>
        <constraint toNodeId="3" name="constraint" priority="1" type="code"
dialect="java" >return createUser;</constraint>
      </constraints>
    </split>
    <join id="6" name="Gateway" x="72" y="160" width="49" height="49"
type="2" />
    <end id="13" name="End" x="446" y="249" width="48" height="48" />
    <workItem id="14" name="Log" x="182" y="163" width="80" height="42" >
      <work name="Log" >
        <parameter name="Message" >
          <type
name="org.drools.process.core.datatype.impl.type.StringDataType" />
          <value>ReSet the Value of createUser to TRUE</value>
        </parameter>
      </work>
      <mapping type="in" from="index" to="indexParam" />
      <mapping type="out" from="createUser" to="createUser" />
      <mapping type="out" from="index" to="index" />
      <mapping type="out" from="user" to="user" />
    </workItem>
    <split id="15" name="Gateway" x="517" y="56" width="49" height="49"
type="2" >
      <constraints>
        <constraint toNodeId="16" name="End Process" priority="2"
type="code" dialect="java" >return endProcess;</constraint>
        <constraint toNodeId="6" name="Create New Task" priority="1"
type="code" dialect="java" >return true;</constraint>
      </constraints>
    </split>
  </nodes>

  <connections>
    <connection from="15" to="16" />
    <connection from="5" to="3" />
    <connection from="14" to="5" />
    <connection from="1" to="6" />
    <connection from="15" to="6" bendpoints="[541,30;95,30]" />
    <connection from="5" to="13" />
    <connection from="6" to="14" />
    <connection from="3" to="15" />
  </connections>

</process>
-- 
View this message in context: http://old.nabble.com/Problem-with-Uploading-a-Rule-File-into-Guvnor-tp26525704p26525704.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list