Hi Kris,
Thanks for your information.
Actually i have an action, which is common to a couple of splits, so in my
action i need to log(log4j - file appender) that from which split request is
coming from.
I mean to say, on based on incoming split request, different message need to
be log.
http://www.nabble.com/file/p17802310/Action.JPG Action.JPG
http://www.nabble.com/file/p17802310/Action.jpg
Thanks,
Ravi Thalupula
Kris Verlaenen wrote:
> it seems that current released version of drools, supporting only MVEL
> code
The action node allows you to simply execute a piece of code. While
Drools
4.0.7 only allows you to use mvel fragments, the upcoming Drools 5.x
release
also allows you to use the Java dialect. It will also allow you to access
globals or workingMemory etc.
> How can i read the incoming connection of my action ? using MVEL code.
An action node currently does not have direct access to information about
the previous node that triggered the action. Could you clarify why you
would need this? In Drools5, sharing of information between nodes using
globals or the working memory will be possible. But if you could provide
a
good use case on why you would need access to this information, I could
see
whether it would be possible to expose this kind of information in the
action code as well.
Kris
>
> for example:
>
> Start-->RuleGroup --> Split --> Action --> End
>
> in above example i need to read the name of "Split" in Action using MVEL
> code.
>
> in Action. If it is possible through the JAVA, plz let me know how i can
> write java code in Action( any configurations?).
>
>
> Thanks,
> Ravi Thalupula
> --
> View this message in context:
>
http://www.nabble.com/Reading-incoming-connection-in-Action---Rule-flow-t...
> Sent from the drools - user mailing list archive at
Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
View this message in context:
http://www.nabble.com/Reading-incoming-connection-in-Action---Rule-flow-t...
Sent from the drools - user mailing list archive at
Nabble.com.