-
Notifications
You must be signed in to change notification settings - Fork 659
In the model API, a business rule task can reference a DMN decision #8060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
kind/feature
Categorizes an issue or PR as a feature, i.e. new behavior
scope/broker
Marks an issue or PR to appear in the broker section of the changelog
version:1.3.0
Marks an issue as being completely or in parts released in 1.3.0
Milestone
Comments
This was referenced Oct 26, 2021
This was referenced Nov 8, 2021
9 tasks
10 tasks
ghost
pushed a commit
that referenced
this issue
Feb 14, 2022
8755: Business rule task can evaluate a DMN decision r=korthout a=korthout ## Description This adds the ability to process business rule tasks that refer to a called decision (see #8060). Business rule tasks that refer to a [task definition](https://docs.camunda.io/docs/components/modeler/bpmn/business-rule-tasks/business-rule-tasks/#defining-a-task) instead of a called decision work like they did before, i.e. by creating a job for job workers. On activation of a business rule task with called decision, the decision specified by `decisionId` is retrieved from the deployed decisions state. If present, the engine uses the `dmn` module to evaluate the decision. If that is successful, the decision result's output is stored in a result variable (defined by `resultVariable`). The result variable stores the decision result's output according to the following rules: - if the business rule task defines no output mappings, the result variable is [propagated](https://docs.camunda.io/docs/components/concepts/variables/#variable-propagation) - if there are [output mappings](https://docs.camunda.io/docs/components/concepts/variables/#output-mappings) defined on the business rule task, the result variable is set as a [local variable](https://docs.camunda.io/docs/components/concepts/variables/#local-variables) of the business rule task If any of this fails, Zeebe raises an incident on the business rule task. For example, if the decision was not deployed yet, then an incident is raised. This allows you to: 1. deploy the decision to fix the problem 2. retry activating the business rule task by resolving the incident ## Related issues <!-- Which issues are closed by this PR or are related --> closes #8080 Co-authored-by: Nico Korthout <nico.korthout@camunda.com>
ghost
pushed a commit
that referenced
this issue
Feb 14, 2022
8755: Business rule task can evaluate a DMN decision r=korthout a=korthout ## Description This adds the ability to process business rule tasks that refer to a called decision (see #8060). Business rule tasks that refer to a [task definition](https://docs.camunda.io/docs/components/modeler/bpmn/business-rule-tasks/business-rule-tasks/#defining-a-task) instead of a called decision work like they did before, i.e. by creating a job for job workers. On activation of a business rule task with called decision, the decision specified by `decisionId` is retrieved from the deployed decisions state. If present, the engine uses the `dmn` module to evaluate the decision. If that is successful, the decision result's output is stored in a result variable (defined by `resultVariable`). The result variable stores the decision result's output according to the following rules: - if the business rule task defines no output mappings, the result variable is [propagated](https://docs.camunda.io/docs/components/concepts/variables/#variable-propagation) - if there are [output mappings](https://docs.camunda.io/docs/components/concepts/variables/#output-mappings) defined on the business rule task, the result variable is set as a [local variable](https://docs.camunda.io/docs/components/concepts/variables/#local-variables) of the business rule task If any of this fails, Zeebe raises an incident on the business rule task. For example, if the decision was not deployed yet, then an incident is raised. This allows you to: 1. deploy the decision to fix the problem 2. retry activating the business rule task by resolving the incident ## Related issues <!-- Which issues are closed by this PR or are related --> closes #8080 Co-authored-by: Nico Korthout <nico.korthout@camunda.com>
ghost
pushed a commit
that referenced
this issue
Feb 14, 2022
8755: Business rule task can evaluate a DMN decision r=korthout a=korthout ## Description This adds the ability to process business rule tasks that refer to a called decision (see #8060). Business rule tasks that refer to a [task definition](https://docs.camunda.io/docs/components/modeler/bpmn/business-rule-tasks/business-rule-tasks/#defining-a-task) instead of a called decision work like they did before, i.e. by creating a job for job workers. On activation of a business rule task with called decision, the decision specified by `decisionId` is retrieved from the deployed decisions state. If present, the engine uses the `dmn` module to evaluate the decision. If that is successful, the decision result's output is stored in a result variable (defined by `resultVariable`). The result variable stores the decision result's output according to the following rules: - if the business rule task defines no output mappings, the result variable is [propagated](https://docs.camunda.io/docs/components/concepts/variables/#variable-propagation) - if there are [output mappings](https://docs.camunda.io/docs/components/concepts/variables/#output-mappings) defined on the business rule task, the result variable is set as a [local variable](https://docs.camunda.io/docs/components/concepts/variables/#local-variables) of the business rule task If any of this fails, Zeebe raises an incident on the business rule task. For example, if the decision was not deployed yet, then an incident is raised. This allows you to: 1. deploy the decision to fix the problem 2. retry activating the business rule task by resolving the incident ## Related issues <!-- Which issues are closed by this PR or are related --> closes #8080 Co-authored-by: Nico Korthout <nico.korthout@camunda.com>
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
kind/feature
Categorizes an issue or PR as a feature, i.e. new behavior
scope/broker
Marks an issue or PR to appear in the broker section of the changelog
version:1.3.0
Marks an issue as being completely or in parts released in 1.3.0
Description
In the BPMN model API, a business rule task should be able to reference a DMN decision.
calledDecision
withdecisionId
that references the id of the decision to evaluateresultVariable
that defines the variable name to store the decision result incalledDecision
ortaskDefinition
but not bothSample XML with static
decisionId
:Sample XML with
decisionId
expression:The text was updated successfully, but these errors were encountered: