Set Up of variables and properties of Call Activity

I am trying to add extensionElements to a Call Activity by using modeling.updateProperties() to add my variables and properties:

For debugging purposes I am outputting the xml in the console on each commandStack change. That’s the only way I thought of to confirm that my properties have been added to the diagram.

However, after I drop the draggable “Call Activity” element, I get “undefined” in place of the diagram xml, which makes me think something I am doing during the setting up of the extensionElements is breaking the parsing process.

Can you explain what am I doing worng?

I tested your codesandbox and got following XML after I added Call Activity:

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="" xmlns:bpmndi="" xmlns:dc="" xmlns:camunda="" id="Definitions_12q3h9d" targetNamespace="" exporter="Camunda Modeler" exporterVersion="3.1.0">
  <bpmn:process id="Process_0sckl64" isExecutable="true">
    <bpmn:startEvent id="StartEvent_1" />
    <bpmn:callActivity id="CallActivity_0hnuleb" calledElement="Some Called Element">
        <camunda:in sourceExpression="true" target="variable_xxx" />
        <camunda:in businessKey="#{execution.processBusinessKey}" />
          <camunda:property name="Prop_defaultBpmnActivityId" value="CallActivity_INTR**" />
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_0sckl64">
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
        <dc:Bounds x="179" y="159" width="36" height="36" />
      <bpmndi:BPMNShape id="CallActivity_0hnuleb_di" bpmnElement="CallActivity_0hnuleb">
        <dc:Bounds x="310" y="100" width="100" height="80" />

Can you tell me what the problem is?

I’ve already fixed it and updated the codesandbox after posting the quesiton, so the problem was not reproducible. The bpmn:definitions in the original code was missing references to some schemas.

1 Like