Hey,
I am able to access the working Memory from an action node. But when I check for the objects its giving me errors ---

line 2:60 mismatched character '<EOF>' expecting '\n'
Exception in thread "main" java.lang.RuntimeException: unable to execute Action
at org.drools.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:56)
at org.drools.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:111)
at org.drools.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:141)
at org.drools.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:128)
at org.drools.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49)in here lol

at org.drools.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41)
at org.drools.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:111)
at org.drools.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:16)
at org.drools.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:185)
at org.drools.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:230)
at org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1639)
at com.sample.RuleFlowTest.main(RuleFlowTest.java:42)
Caused by: java.lang.UnsupportedOperationException: this is implementedby StatefulKnowledgeImpl
at org.drools.reteoo.ReteooWorkingMemory.getObjects(ReteooWorkingMemory.java:371)
at com.sample.Process_com_sample_0.action1(Process_com_sample_0.java:18)
at com.sample.Process_com_sample_0Action1Invoker.execute(Process_com_sample_0Action1Invoker.java:20)
at org.drools.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:54)
... 11 more
---------

All I used is this... inside an action node..

System.out.println(drools.getWorkingMemory().getObjects());

I am just checking as for now, that whatever is written in the documentation of drools flow actually works or not. This I am doing without any purpose of a project. If i get to know of each and every functionality, then I may be able to continue with some project.

And yes, help on how to use the Event node in drools flow is also needed. I tried passing a map while calling the startProcess from my java class. But inside the process its not able to access it.

Please any help  is welcome. 

On Fri, Jul 9, 2010 at 5:59 PM, Pavel Tavoda <pavel.tavoda@gmail.com> wrote:
But for this you don't need drools flow. Normal rule-set is enough.

Pavel

2010/7/9 santosh mukherjee <sam.sensation@gmail.com>:
> Sorry,
> but in the documentation, it was written that an internal event can be
> raised over the actions of an Action Node.
> Anyways, Then when and where to raise the event. Actually I want my process
> to be in such a way, that whenever a certain event comes , it executes a set
> of actions.
> Thanks.
>
> 2010/7/9 Mauricio Salatino <salaboy@gmail.com>
>>
>> what are you trying to achieve exactly? An event will not work over an
>> action node.
>> Greetings.
>>
>> 2010/7/8 santosh mukherjee <sam.sensation@gmail.com>
>>>
>>> Hi,
>>> I am a newbie to Drools flow. I am trying to generate a sample string
>>> event in the action node using the snippet -->
>>> context.getProcessInstance().signalEvent("java.lang.String", "hiii");
>>> But they event is not getting generated.
>>> Any suggestions are welcome.
>>> Thank You.
>>> Santosh Mukherjee
>>> _______________________________________________
>>> rules-users mailing list
>>> rules-users@lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/rules-users
>>>
>>
>>
>>
>> --
>> - CTO @ http://www.plugtree.com
>> - MyJourney @ http://salaboy.wordpress.com
>> - Co-Founder @ http://www.jbug.com.ar
>>
>> - Salatino "Salaboy" Mauricio -
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users@lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users