1

I am currently trying to work with NxBRE rule engine https://github.com/ddossot/NxBRE

What I am trying to do is to create a rule in .XBRE file in which I call a method in my .CS file with passing an object as argument(not primitive type like integer,string...).

I tried this: 1

my method is testChild and it's in FlowEngineExample.Program class, and takes as argument an object of type FlowEngineExample.Problem that i passed to the rule Context with ID Problem. But this doesn't work since argument only accept types like Integer,string ...

What do i have to do ??

safa
  • 33
  • 6

1 Answers1

0

Just use:

<Argument valueId="Problem"/>

to provide a reference to the context ID Problem.

David Dossot
  • 33,403
  • 4
  • 38
  • 72
  • 1
    thank you!! i didn't know that i can delete the type attribute of Argument element. it works now. – safa Feb 17 '17 at 09:15