규칙 종속성 조회

규칙간 링크 및 종속성을 식별하여 규칙을 필터링할 수 있습니다. 규칙 실행이 다른 규칙의 적용 가능성에 어떤 영향을 주는지, 그리고 다른 규칙의 실행에 의해 규칙이 어떤 영향을 받는지 확인할 수 있습니다.

다음 술어를 사용할 수 있습니다.

may select

may select <a rule> 술어는 지정된 규칙을 선택할 수 있는 규칙 태스크와 규칙 플로우를 리턴합니다.

규칙 플로우를 정의하는 경우 명시적으로 또는 필터링 함수를 사용하여 규칙 태스크를 구성하는 규칙을 지정할 수 있습니다. 또한 규칙 오버라이드 메커니즘은 런타임에 실행할 규칙을 선택하는 방법을 판별할 가능성이 높습니다. (자세한 정보는 규칙 오버라이드를 참조하십시오.)

예제

다음 조회는 "규칙 1"을 선택할 수 있는 규칙 태스크 및 규칙 플로우를 리턴합니다.

Find all ruleflows
   such that each ruleflow may select "Rule 1"

may enable rule

may enable rule <a rule> 술어는 지정된 규칙을 적용할 수 있는 규칙을 리턴합니다.

예제

규칙 1:

if the age of the customer is 25
then set the category of the customer to Bronze ;

규칙 2:

if the category of the customer is Bronze
then give Champagne to the shopping cart of the customer with message: "Congratulations" ;

조회:

Find all business rules
   such that each business rule may enable "Rule 2" 

이 조회는 규칙 1을 리턴합니다. 이 규칙은 고객의 카테고리를 브론즈로 정하고 그에 따라 규칙 2의 조건이 유효해지기 때문입니다.

may disable

may disable <a rule> 술어는 지정된 규칙을 적용할 수 없는 규칙을 리턴합니다.

예제

규칙 1:

if the age of the customer is 18
then set the category of the customer to Copper ;

규칙 2:

if the category of the customer is Bronze
then give Champagne to the shopping cart of the customer with message: "Congratulations" ;

규칙 3:

if the age of the customer equals 25 and the category of the customer is Gold
then set the category of the customer to Diamond ;

조회:

Find all business rules
   such that each business rule may disable "Rule 2" 

이 조회는 규칙 1을 리턴합니다. 고객의 카테고리를 코퍼로 정한 경우 브론즈가 될 수 없기 때문입니다. 조회는 규칙 3을 리턴하지 않습니다. 이 조치로 고객의 카테고리가 다이아몬드로 정해지고 카테고리가 브론즈가 아닌 상태에서만 이 규칙을 실행할 수 있기 때문입니다. 따라서 규칙 3은 규칙 1을 사용하지 않도록 설정하지 않습니다.

may be enabled by

may be enabled by <a rule> 술어는 지정된 규칙을 적용할 수 있는 규칙을 리턴합니다.

예제

규칙 1:

if the age of the customer is 25
then set the category of the customer to Bronze ;

규칙 2:

if the category of the customer is not Copper
then set the discount of the shopping cart of the customer to 5;

규칙 3:

if the age of the customer equals 25 and the category of the customer is Bronze
then set the category of the customer to Diamond ;

조회:

Find all business rules
   such that each business rule may be enabled by "Rule 1" 

이 조회는 규칙 2와 규칙 3을 리턴합니다. 고객의 카테고리가 코퍼가 아니고 브론즈인 경우 규칙 2를 리턴합니다. 조건이 고객의 카테고리가 브론즈가 되도록 지정하기 때문에 규칙 3을 리턴합니다.

may be disabled by

may be disabled by <a rule> 술어는 지정된 규칙으로 적용할 수 없는 규칙을 리턴합니다.

예제

규칙 1:

if the age of the customer is 25
then set the category of the customer to Bronze ;

규칙 2:

if the age of the customer equals 25 and the category of the customer is Copper
then set the category of the customer to Gold

조회:

Find all business rules
   such that each business rule may be disabled by "Rule 1" 

이 규칙은 규칙 1로 적용할 수 없기 때문에 이 조회는 규칙 2를 리턴합니다. 규칙 1에서 연령이 25세인 고객의 카테고리는 브론즈로 설정되므로 코퍼일 수 없습니다.

참고:

규칙 탐색기에서 규칙을 마우스 오른쪽 단추로 클릭하고 다음을 클릭하여 이러한 조회를 실행할 수 있습니다.

  • 규칙 종속성 찾기 > 이 규칙을 사용하거나 사용하지 않도록 설정할 수 있는 규칙
  • 규칙 종속성 찾기 > 이 규칙을 통해 사용하거나 사용하지 않도록 설정할 수 있는 규칙
  • 규칙 종속성 찾기 > 이 규칙을 선택할 수 있는 규칙 플로우