camunda-modeler-plugin/main/bpmndt/PathFinder.js
/**
   * Finds all elements with a sequence flow that is coming from the given embedded sub process.
   * 
   * @param {String} subProcessId ID of an embedded sub process.
   * 
   * @returns The found elements.
   */
Finds all elements with a sequence flow that is coming from the given embedded sub process.

@param {String} subProcessId ID of an embedded sub process.

@returns The found elements.
Finds all elements with a sequence flow that is coming from the given embedded sub process . @param { String } subProcessId ID of an embedded sub process . @returns The found elements .
_findIncoming(subProcessId) {
    return this.elementRegistry.find(element => {
      const { incoming } = element.businessObject;
      if (incoming) {
        return incoming.find(sequenceFlow => sequenceFlow.sourceRef.id === subProcessId);
      } else {
        return false;
      }
    });
  }
_findIncoming ( subProcessId ) { return this . elementRegistry . find ( element => { const { incoming } = element . businessObject ; if ( incoming ) { return incoming . find ( sequenceFlow => sequenceFlow . sourceRef . id === subProcessId ) ; } else { return false ; } } ) ; }
Finds all elements with a sequence flow that is coming from the given embedded sub process.
Finds all elements with a sequence flow that is coming from the given embedded sub process .