Process BPMN 2.0 XML from JavaScript