Getting all the properties of the particular task

Hi,

How to get all the properties of the particular task like we have input/output, general tab properties.

If you have an element available (e.g. via elementRegistry) you will find all properties inside its business object which is a representation of the underlying BPMN 2.0 XML and what the properties panel is taken as data.

const elementRegistry = modeler.get('elementRegistry');

const element = elementRegistry.get('Task_1'); // get via element id

const businessObject = element.businessObject;
2 Likes