This content has been marked as final.
Show 3 replies
-
1. Re: ContextInstance of a non-null ProcessInstance is null
coolex Jul 31, 2008 5:27 PM (in response to coolex)Maybe the processdefinition will help:
<process-definition xmlns="" name="Ordering"> <start-state name="start"> <transition to="FirstNode" name="firstNode"></transition> </start-state> <task-node name="FirstNode"> <task name="FirstNode"> <assignment class="org.jboss.seam.drools.DroolsAssignmentHandler"> <workingMemoryName>policyPricingWorkingMemory</workingMemoryName> <assertObjects> <element>#{actor}</element> <element>#{processInstance}</element> <element>#{processManager}</element> </assertObjects> </assignment> </task> <transition to="SecondNode" name="secondNode"></transition> </task-node> ... </process-definition>
-
2. Re: ContextInstance of a non-null ProcessInstance is null
coolex Jul 31, 2008 6:29 PM (in response to coolex)I figured out that the rule (defined in the first Node) is triggered before the process instance was created.
But this does not happen if I define the rule in the second node. In this case everything works fine.
Can I define the process that way that the process-instance will be created before the rule (in the first task is triggered). -
3. Re: ContextInstance of a non-null ProcessInstance is null
kukeltje Aug 1, 2008 1:49 PM (in response to coolex)This assignmenthandler is developed within Seam. I think you might have more success is their forum.