org.jboss.seam.drools
Class DroolsDecisionHandler

java.lang.Object
  extended by org.jboss.seam.drools.DroolsHandler
      extended by org.jboss.seam.drools.DroolsDecisionHandler
All Implemented Interfaces:
java.io.Serializable, org.jbpm.graph.node.DecisionHandler

public class DroolsDecisionHandler
extends DroolsHandler
implements org.jbpm.graph.node.DecisionHandler

A jBPM DecisionHandler that delegates to a Drools WorkingMemory held in a Seam context variable. The decision outcome is returned by setting the outcome attribute of the global named "decision".

Author:
Gavin King
See Also:
Serialized Form

Field Summary
 java.util.List<java.lang.String> assertObjects
           
 java.util.List<java.lang.String> retractObjects
           
 java.lang.String startProcessId
           
 java.lang.String workingMemoryName
           
 
Constructor Summary
DroolsDecisionHandler()
           
 
Method Summary
 java.lang.String decide(org.jbpm.graph.exe.ExecutionContext executionContext)
           
 
Methods inherited from class org.jboss.seam.drools.DroolsHandler
getWorkingMemory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

assertObjects

public java.util.List<java.lang.String> assertObjects

retractObjects

public java.util.List<java.lang.String> retractObjects

workingMemoryName

public java.lang.String workingMemoryName

startProcessId

public java.lang.String startProcessId
Constructor Detail

DroolsDecisionHandler

public DroolsDecisionHandler()
Method Detail

decide

public java.lang.String decide(org.jbpm.graph.exe.ExecutionContext executionContext)
                        throws java.lang.Exception
Specified by:
decide in interface org.jbpm.graph.node.DecisionHandler
Throws:
java.lang.Exception


Copyright © 2011 Seam Framework. All Rights Reserved.