bpmnServer / bpmn-server

BPMN 2.0 server for Node.js , providing modeling, execution, persistence and monitoring for Workflow. along with sample UI. Intended to be developers workbench for BPMN 2.0
MIT License
186 stars 48 forks source link

Import Error #228

Closed MaheshkumarSundaram closed 1 month ago

MaheshkumarSundaram commented 1 month ago

Hi @ralphhanna

Using version 2.2.13

Neither remote import through bpmn-client nor normal import through webapp is working anymore because of an error.

redirecting to: /api/definitions/import/PrstPathway
File [PrstPathway.bpmn] got 61298 bytes
File [PrstPathway.svg] got 4074 bytes
File [PrstPathway.bpmn] done
File [PrstPathway.svg] got 65536 bytes
File [PrstPathway.svg] got 65536 bytes
File [PrstPathway.svg] got 33434 bytes
File [PrstPathway.svg] done
error in save TypeError: Cannot read properties of undefined (reading 'length')
    at IOBehaviour.init (F:\Programming\myApp\node_modules\bpmn-server\src\elements\behaviours\IOBehaviour.ts:157:33)
    at new Behaviour (F:\Programming\myApp\node_modules\bpmn-server\src\elements\behaviours\Behaviour.ts:43:14)
    at new IOBehaviour (F:\Programming\myApp\node_modules\bpmn-server\src\elements\behaviours\IOBehaviour.ts:151:1)
    at Object.funct (F:\Programming\myApp\node_modules\bpmn-server\src\elements\behaviours\BehaviourLoader.ts:54:24)
    at F:\Programming\myApp\node_modules\bpmn-server\src\elements\behaviours\BehaviourLoader.ts:175:61
    at Array.forEach (<anonymous>)
    at F:\Programming\myApp\node_modules\bpmn-server\src\elements\behaviours\BehaviourLoader.ts:173:44
    at Array.forEach (<anonymous>)
    at Function.load (F:\Programming\myApp\node_modules\bpmn-server\src\elements\behaviours\BehaviourLoader.ts:172:47)
    at new Node (F:\Programming\myApp\node_modules\bpmn-server\src\elements\Node.ts:43:25)
error in api.ts import  Cannot read properties of undefined (reading 'length') TypeError: Cannot read properties of undefined (reading 'length')
    at IOBehaviour.init (F:\Programming\myApp\node_modules\bpmn-server\src\elements\behaviours\IOBehaviour.ts:157:33)
    at new Behaviour (F:\Programming\myApp\node_modules\bpmn-server\src\elements\behaviours\Behaviour.ts:43:14)
    at new IOBehaviour (F:\Programming\myApp\node_modules\bpmn-server\src\elements\behaviours\IOBehaviour.ts:151:1)
    at Object.funct (F:\Programming\myApp\node_modules\bpmn-server\src\elements\behaviours\BehaviourLoader.ts:54:24)
    at F:\Programming\myApp\node_modules\bpmn-server\src\elements\behaviours\BehaviourLoader.ts:175:61
    at Array.forEach (<anonymous>)
    at F:\Programming\myApp\node_modules\bpmn-server\src\elements\behaviours\BehaviourLoader.ts:173:44
    at Array.forEach (<anonymous>)
    at Function.load (F:\Programming\myApp\node_modules\bpmn-server\src\elements\behaviours\BehaviourLoader.ts:172:47)
    at new Node (F:\Programming\myApp\node_modules\bpmn-server\src\elements\Node.ts:43:25)

Could I please humbly request you to fix this ASAP? Thank you so much.

MaheshkumarSundaram commented 1 month ago

Sorry @ralphhanna. There was a mistake in BPMN file.