mixinExecutionListener.js 597 B

123456789101112131415161718192021222324
  1. import executionListenerDialog from '../components/nodePanel/property/executionListener'
  2. export default {
  3. components: {
  4. executionListenerDialog
  5. },
  6. data() {
  7. return {
  8. executionListenerLength: 0,
  9. dialogName: null
  10. }
  11. },
  12. methods: {
  13. computedExecutionListenerLength() {
  14. this.executionListenerLength = this.element.businessObject.extensionElements?.values?.length ?? 0
  15. },
  16. finishExecutionListener() {
  17. if (this.dialogName === 'executionListenerDialog') {
  18. this.computedExecutionListenerLength()
  19. }
  20. this.dialogName = ''
  21. }
  22. }
  23. }