Skip to content
Snippets Groups Projects
Commit d57c30a6 authored by Florian Lambers's avatar Florian Lambers
Browse files

added businessruletask resultvariable

parent 3fbc6579
No related branches found
No related tags found
No related merge requests found
......@@ -372,7 +372,9 @@ public class TestService {
} else if (flowElement instanceof ScriptTask) {
return TestgeneratorDSLObjectCreator.createScriptTaskFlowElement(flowElement.getId());
} else if (flowElement instanceof BusinessRuleTask) {
return TestgeneratorDSLObjectCreator.createBusinessRuleTaskFlowElement(flowElement.getId());
String resultVariable = BPMNParseUtils.getResultVariable((BusinessRuleTask) flowElement);
return TestgeneratorDSLObjectCreator.createBusinessRuleTaskFlowElement(flowElement.getId(), resultVariable);
} else if (flowElement instanceof ServiceTask) {
String delegate = getDelegate((ServiceTask) flowElement);
String externalTopicTextual = getExternalTopic((ServiceTask) flowElement);
......
......@@ -10,6 +10,7 @@ import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.camunda.bpm.model.bpmn.BpmnModelInstance;
import org.camunda.bpm.model.bpmn.instance.BusinessRuleTask;
import org.camunda.bpm.model.bpmn.instance.ServiceTask;
import org.camunda.bpm.model.dmn.DmnModelInstance;
......@@ -223,6 +224,11 @@ public class BPMNParseUtils {
return externalTopic;
}
public static String getResultVariable(BusinessRuleTask businessRuleTask) {
String resultVariable = businessRuleTask.getAttributeValueNs(NAMESPACE_URI_BPMN, "resultVariable");
return resultVariable;
}
public static List<VariableDeclaration> getHardcodedVariables(String flowElementId, List<Variable> variables,
BPMNIOParameters bpmnIOParameters) {
List<VariableDeclaration> hardcodedVariables = new ArrayList<>();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment