Skip to content

Commit

Permalink
Interim commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Sep 20, 2017
1 parent 2082e92 commit 429c515
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
Expand Up @@ -105,6 +105,9 @@ private <F extends FocusType> EvaluatedPolicyRuleTrigger<?> evaluateForObject(St
if (!filter.match(object.getValue(), matchingRuleRegistry)) {
match = false;
}
}
if (match && constraint.getExecuteScript() != null) {

}
if (match && constraint.getExpression() != null) {
match = evaluatorHelper.evaluateBoolean(constraint.getExpression(), evaluatorHelper.createExpressionVariables(ctx),
Expand Down
34 changes: 34 additions & 0 deletions model/model-impl/src/test/resources/lens/policy/role-student.xml
Expand Up @@ -415,4 +415,38 @@
</policyActions>
</policyRule>
</inducement>
<inducement>
<policyRule>
<name>no-task-for-this-object</name>
<policyConstraints>
<not>
<objectState>
<name>task-for-this-object-exists</name>
<executeScript>
<search>
<type>TaskType</type>
<query>
<q:filter>
<q:ref>
<q:path>objectRef</q:path>
<expression>
<script>
<code>

</code>
</script>
</expression>
</q:ref>
</q:filter>
</query>
</search>
</executeScript>
</objectState>
</not>
</policyConstraints>
<policyActions>
<!-- none -->
</policyActions>
</policyRule>
</inducement>
</role>

0 comments on commit 429c515

Please sign in to comment.