You are here

business_rules_condition.schema.yml in Business Rules 8

Same filename and directory in other branches
  1. 2.x config/schema/business_rules_condition.schema.yml
config/schema/business_rules_condition.schema.yml

File

config/schema/business_rules_condition.schema.yml
View source
  1. business_rules.condition.*:
  2. type: config_entity
  3. label: 'Condition config'
  4. mapping:
  5. id:
  6. type: string
  7. label: 'ID'
  8. label:
  9. type: label
  10. label: 'Label'
  11. uuid:
  12. type: string
  13. type:
  14. type: string
  15. label: 'Type'
  16. reverse:
  17. type: boolean
  18. label: 'Reverse'
  19. description:
  20. type: text
  21. label: 'Description'
  22. target_entity_type:
  23. type: string
  24. label: 'Entity type'
  25. target_bundle:
  26. type: string
  27. label: 'Bundle'
  28. success_items:
  29. type: sequence
  30. label: 'Items to execute if condition success'
  31. sequence:
  32. type: business_rules.item
  33. fail_items:
  34. type: sequence
  35. label: 'Items to execute if condition fail'
  36. sequence:
  37. type: business_rules.item
  38. tags:
  39. type: sequence
  40. label: 'Tags'
  41. sequence:
  42. type: string
  43. label: 'Tag'
  44. settings:
  45. type: business_rules.condition.type.[%parent.type]
  46. # Check views result count Condition.
  47. business_rules.condition.type.check_views_result_count:
  48. type: mapping
  49. label: 'Check the number of results in a view'
  50. mapping:
  51. view:
  52. type: string
  53. label: 'View'
  54. arguments:
  55. type: string
  56. label: 'Arguments'
  57. comparison:
  58. type: integer
  59. label: 'Minimum number of results'
  60. # Compare results between two views Condition.
  61. business_rules.condition.type.compare_results_of_two_views:
  62. type: mapping
  63. label: 'Compare the number of results between two views'
  64. mapping:
  65. view_1:
  66. type: string
  67. label: 'View 1'
  68. arguments_1:
  69. type: string
  70. label: 'Arguments 1'
  71. operator:
  72. type: string
  73. label: 'Operator'
  74. view_2:
  75. type: string
  76. label: 'View 2'
  77. arguments_2:
  78. type: string
  79. label: 'Arguments 2'
  80. # Data comparison Condition.
  81. business_rules.condition.type.data_comparison:
  82. type: mapping
  83. label: 'Data Comparison'
  84. mapping:
  85. field:
  86. type: string
  87. label: 'Field'
  88. data_to_compare:
  89. type: string
  90. label: 'Data to compare'
  91. operator:
  92. type: string
  93. label: 'Operator'
  94. value_to_compare:
  95. type: string
  96. label: 'Value(s) to Compare'
  97. # Logical AND Condition.
  98. business_rules.condition.type.logical_and:
  99. type: mapping
  100. label: 'AND conditions'
  101. mapping:
  102. items:
  103. type: sequence
  104. label: 'Items'
  105. sequence:
  106. type: business_rules.item
  107. # Logical OR Condition.
  108. business_rules.condition.type.logical_or:
  109. type: mapping
  110. label: 'OR conditions'
  111. mapping:
  112. items:
  113. type: sequence
  114. label: 'Items'
  115. sequence:
  116. type: business_rules.item
  117. # User has role Condition.
  118. business_rules.condition.type.user_has_role:
  119. type: mapping
  120. label: 'Check if user has hole'
  121. mapping:
  122. roles:
  123. type: sequence
  124. label: 'Roles'
  125. sequence:
  126. type: string
  127. label: 'Role'
  128. criteria:
  129. type: string
  130. label: 'Criteria' #all|one
  131. # User Variable has role Condition.
  132. business_rules.condition.type.user_variable_has_role:
  133. type: mapping
  134. label: 'Check the number of results in a view'
  135. mapping:
  136. user_variable:
  137. type: string
  138. label: 'User variable'
  139. roles:
  140. type: sequence
  141. label: 'Roles'
  142. sequence:
  143. type: string
  144. label: 'Role'
  145. criteria:
  146. type: string
  147. label: 'Criteria' #all|one
  148. # Variable data comparison Condition.
  149. business_rules.condition.type.variable_data_comparison:
  150. type: mapping
  151. label: 'Compare value between two variables'
  152. mapping:
  153. value_1:
  154. type: string
  155. label: 'Value 1'
  156. operator:
  157. type: string
  158. label: 'Operator'
  159. value_2:
  160. type: string
  161. label: 'Value 2'