You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following very basic rule which matches against all tables in a parent topic which have exactly 2 columns and a specific status:
ruleHello{when{
$topic : Topic$topic.Id=="1";
$t : Table$t.Status==="unknown"&&$t.Columns.length===2from$topic.Tables;}then{console.log($t.Id+" is found with column count: "+$t.Columns.length+" and Status: "+$t.Status);modify($t,function(){this.Status="invalid";});}}
When I attempt to modify the matched fact's string property in working memory, i get the following error:
"msg":"Error: the fact to modify does not exist\n at declare.instance.modifyFact
Why is the matched fact not "modify-albe"? What am I doing wrong here? The console statement is able to correctly output the matched fact's properties.
The text was updated successfully, but these errors were encountered:
bbarvish
changed the title
Unable to modify fact matched used from
Unable to modify fact matched using from
Feb 1, 2016
I have the following very basic rule which matches against all tables in a parent topic which have exactly 2 columns and a specific status:
When I attempt to modify the matched fact's string property in working memory, i get the following error:
"msg":"Error: the fact to modify does not exist\n at declare.instance.modifyFact
Why is the matched fact not "modify-albe"? What am I doing wrong here? The console statement is able to correctly output the matched fact's properties.
The text was updated successfully, but these errors were encountered: