Skip to content
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

DMN BusinessRuleTask with "asyncBefore" wants me to declare "waitsAtBusinessRuleTask" #93

Open
stephanpelikan opened this issue Sep 28, 2022 · 0 comments

Comments

@stephanpelikan
Copy link

Actual behavior

If one has a BusinessRuleTask and this task uses the asyncBefore flag then this is a wait-state. If the implemenation of the task is e.g. external then the mocked behavior can be defined by using waitsAtBusinessRuleTask.

In my situation the BusinessRuleTask is implemented by DMN, so actually there is no need to define any mocked behavior because DMN is execute by Camunda. But due to the asyncBefore flag camunda-platform-scenario is aborting and asks me to use waitsAtBusinessRuleTask for that task.

So, I need to add this

myScenario.waitsAtBusinessRuleTask("MyDMNTask").thenReturn(task -> task.complete());

to make camunda-platform-scenario run through it.

Expected behavior

camunda-platform-scenario recognizes this special situation for BusinessRuleTasks using DMN as implemenation and does not ask to configure the scenario using waitsAtBusinessRuleTask.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant