Solved...
Went for a more direct approach (via JavaDocs), I made this my action body:
insert(context.getVariable("levelInstanceID"));
And wrote my rule accordingly, and things worked.
Thanks for your help.
Bob
--
View this message in context:
http://drools-java-rules-engine.46999.n3.na
I little bit of a situation (maybe)...
I am trying to access a variable from a ForEach loop in my process. Here is
the code that seems to be called by the ForEach component:
for (Object o: collection) {
String variableName = getForEachNode().getVariableName();
CompositeNodeInstance node
I think latest flows default notation(skin) is BPMN2 and "Action" node has
name "Script task"
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Rules-and-process-variables-tp1616599p1631202.html
Sent from the Drools - User mailing list archive at Nabble.com.
__
Ivan,
Thanks for the information.
I am trying to use the Eclipse 5.1.1 plugin in MyEclipse. I see the various
nodes in the Drools preference windows, but in the actual Drools Flow GUI,
the Action component is not there. I am beginning to think the plugin and
MyEclipse are not playing well toge
http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-flow/html_single/index.html#d0e1348
In flow action insert instance:
insert( context.getProcessInstance());
In rules:
processInstance : WorkflowProcessInstance()
Person( name == ( processInstance.getVariable("name") ) )
Regards,
I
How do you or, even, can you access process variables in rules?
I did this sort of thing in my rules consequences:
ProcessInstance pi = drools.getWorkingMemory().getProcessInstance(1);
((VariableScopeInstance)
pi.getContextInstance("VariableScope")).setVariable("x", x);
In my test, the process