[rules-users] Problem when uploading a rule file with XOR into Guvnor

ramram ramram858 at gmail.com
Wed Dec 16 02:40:51 EST 2009


Hi All,

 I have a rule file (testProcess.rf) in this rule file I have the following
in the:
 <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="Create User" priority="1" type="code"
dialect="java" >return createUser;</constraint>
      </constraints>
    </split>

When I remove the type and dialect  the process could be uploaded with no
problems. But I need this in the process so what can be done?????

I have tried to use the process as a FLUENT API inside the console but I
have a problem:
How can I define the LOG as a fluent API. IS this correct:

             factory
		.workItemNode(3).name("Log") 
		        .workName("Log") 
		        .inMapping("index", "index")
				.outMapping("createUser", "createUser")
				.outMapping("index", "index")
				.outMapping("endProcess", "endProcess")
				.outMapping("user", "user").done()

I am having the following exception:
Exception in thread "main" java.lang.ClassCastException:
org.drools.workflow.core.node.ActionNode cannot be cast to
org.drools.workflow.core.node.WorkItemNode
	at
org.drools.ruleflow.core.factory.WorkItemNodeFactory.getWorkItemNode(WorkItemNodeFactory.java:52)
	at
org.drools.ruleflow.core.factory.WorkItemNodeFactory.workName(WorkItemNodeFactory.java:76)
	at com.fp.scenarios.CreateProcess.createProcessRami(CreateProcess.java:183)
	at com.fp.scenarios.CreateProcess.main(CreateProcess.java:30)




-- 
View this message in context: http://n3.nabble.com/Problem-when-uploading-a-rule-file-with-XOR-into-Guvnor-tp91956p91956.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list