The $attrs Parameter cannot be resolved

version “bpmn-js”: “^7.2.0”

itemSubjectref $attrs There are data

itemSubjectRef $attrs No data

image

Can you please give a little more context? It’s hard to understand your problem otherwise.

For further assistance, please share a CodeSandbox that reproduces your issue in a way that we can inspect it.

Please see the

@Niklas_Kiefer

I see dataObject[0].$attrs resolves in an empty object. What do you want to achieve? What is your expected behavior?

I want to get the itemSubjectRef property

itemSubjectRef in attrs resolves in an empty object

@Niklas_Kiefer

The $attrs property is a place for properties not specified in the BPMN specification. Since itemSubjectRef is defined in the spec it can be accessed as a property of the data object. If it’s undefined that’s because the bpmn:ItemDefinition it’s referencing is missing.

Here’s a working example: https://codesandbox.io/s/bpmn-js-dataobject-example-0icm5

1 Like

Hello @philippfromme, now I’m struggling with the same problem (cannot access itemSubjectRef), could you please share your solution once again ? Unfortunately I cannot access your codesandbox link :smiling_face_with_tear: