Created
March 21, 2018 18:57
-
-
Save beardedtim/7f8bdd7fb3677fe0e771591c19d4222c to your computer and use it in GitHub Desktop.
Graph goal output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Contact has Contact Information that | |
| has Contact Type equal to Person | |
| and | |
| Contact has Relationship to {Licensee} that | |
| has Type equal to Customer or Prospect | |
| is with Org Item that | |
| has Field equal to Commercial | |
| has Net Worth greater than $2 | |
| and/or | |
| Contact has Relationship to {Licensee} that | |
| has Type equal to Vendor | |
| is with Org Item that | |
| has Field equal to Consumer | |
| has Field 2 equal to Awesomesauce | |
| has Org Group equal to Branch | |
| */ | |
| const criteria = { | |
| subject: 'Contact', | |
| evaluator: { | |
| conjunction: 'AND', | |
| evaluator: 'Meets All' | |
| }, | |
| sentences: [ | |
| { | |
| evaluator: { | |
| conjunction: 'AND', | |
| evaluator: 'Meets All', | |
| }, | |
| clauses: [ | |
| { | |
| object: 'Contact Information', | |
| verb: 'has', | |
| clauses: [ | |
| { | |
| verb: 'has', | |
| object: 'Contact Type', | |
| comparator: 'equal to', | |
| value: 'Person' | |
| } | |
| ] | |
| }, | |
| { | |
| object: 'Relationship to Bob', | |
| verb: 'has', | |
| clauses: [ | |
| { | |
| verb: 'has', | |
| object: 'Type', | |
| comparator: 'equal to', | |
| value: 'Customer or Prospect' | |
| }, | |
| { | |
| verb: 'is with', | |
| object: 'Org Item', | |
| clauses: [ | |
| { | |
| verb: 'has', | |
| object: 'Field', | |
| value: 'Commercial', | |
| comparator: 'equal to' | |
| } | |
| ] | |
| }, | |
| { | |
| verb: 'has', | |
| object: 'Net Worth', | |
| comparator: 'greater than', | |
| value: '$2' | |
| } | |
| ] | |
| }, | |
| { | |
| object: 'Relationship to Jim', | |
| verb: 'has', | |
| clauses: [ | |
| { | |
| verb: 'has', | |
| object: 'Type', | |
| value: 'Vendor', | |
| }, | |
| { | |
| verb: 'is with', | |
| object: 'Org Item', | |
| clauses: [ | |
| { | |
| verb: 'has', | |
| object: 'Field', | |
| value: 'Commercial', | |
| comparator: 'equal to' | |
| }, | |
| { | |
| verb: 'has', | |
| object: 'Field 2', | |
| value: 'Awesomesauce', | |
| comparator: 'equal to' | |
| }, | |
| { | |
| verb: 'has', | |
| object: 'Org Group', | |
| value: 'Branch', | |
| comparator: 'equal to' | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment