Handling Processes and Tasks

Sir I have found the answer here: https://forum.bpmn.io/t/can-i-use-bpmn-js-to-parse-an-bpmn-file-for-its-tasks/1254/4
Now, could you tell me please how to work with a gateway?