Help BpmnProcess

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BigBoss
    Member
    • Nov 2023
    • 86

    Help BpmnProcess

    I can't understand why the process failed during scheduled execution, but when I access the record and start it, it runs without any problems.

    Click image for larger version

Name:	image.png
Views:	201
Size:	11.9 KB
ID:	107874


    Click image for larger version

Name:	image.png
Views:	149
Size:	55.1 KB
ID:	107875​​
    [2024-06-27 21:37:46] ERROR: Process 667ddbaacc1fb7131 element 2rjof5yloq: Workflow: Send Request action: 0 response.


    Click image for larger version

Name:	image.png
Views:	149
Size:	37.1 KB
ID:	107876
    but when I access the record and start it, it runs without any problems.
    Click image for larger version

Name:	image.png
Views:	143
Size:	12.4 KB
ID:	107877​​
  • yuri
    Member
    • Mar 2014
    • 8455

    #2
    When you start manually, it executes by a webserver process. When it's started by cron, it's executed not by a webserver. Maybe that is is reason. Maybe it's a CURL request timeout. You can set DEBUG mode and see more info in the log.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • BigBoss
      Member
      • Nov 2023
      • 86

      #3
      [2024-06-28 11:27:57] DEBUG: Start workflow rule [667e9cf1e4f71b759].
      [2024-06-28 11:27:57] DEBUG: Workflow\Actions: Start [startBpmnProcess] with cid [0] for entity [User, 1].
      [2024-06-28 11:27:57] DEBUG: BPM: startProcess, flowchart 667ac8b6d092ffeb4, target 1.
      [2024-06-28 11:27:57] DEBUG: BPM: prepareFlow, process 667e9e3d2ffd80bd1, element djxnm63uad.
      [2024-06-28 11:27:57] NOTICE: E_DEPRECATED: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero {"code":8192,"message":"usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero","file":"C:\\wamp\\www\\intra\\custom\\Espo\\ Modules\\Advanced\\Entities\\BpmnProcess.php","lin e":108}
      [2024-06-28 11:27:57] DEBUG: BPM: prepareFlow, process 667e9e3d2ffd80bd1, element 3j563dvfgo.
      [2024-06-28 11:27:57] NOTICE: E_DEPRECATED: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero {"code":8192,"message":"usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero","file":"C:\\wamp\\www\\intra\\custom\\Espo\\ Modules\\Advanced\\Entities\\BpmnProcess.php","lin e":108}
      [2024-06-28 11:27:57] DEBUG: Workflow\Actions: Start [sendRequest] with cid [0] for entity [User, 1].
      [2024-06-28 11:27:57] DEBUG: Workflow: Send request: payload:{}
      [2024-06-28 11:27:57] DEBUG: Workflow\Actions: End [sendRequest] with cid [0] for entity [User, 1].
      [2024-06-28 11:27:57] DEBUG: Workflow\Actions: Start [executeFormula] with cid [1] for entity [User, 1].
      [2024-06-28 11:27:57] DEBUG: Workflow\Actions: End [executeFormula] with cid [1] for entity [User, 1].
      [2024-06-28 11:27:57] DEBUG: BPM: prepareFlow, process 667e9e3d2ffd80bd1, element 6w26971xo6.
      [2024-06-28 11:27:57] DEBUG: BPM: prepareFlow, process 667e9e3d2ffd80bd1, element 9c1tadz455.
      [2024-06-28 11:27:57] DEBUG: BPM: prepareFlow, process 667e9e3d2ffd80bd1, element 57q5687jz0.
      [2024-06-28 11:27:57] DEBUG: BPM: prepareFlow, process 667e9e3d2ffd80bd1, element vsqf2srs8v.
      [2024-06-28 11:27:57] NOTICE: E_DEPRECATED: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero {"code":8192,"message":"usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero","file":"C:\\wamp\\www\\intra\\custom\\Espo\\ Modules\\Advanced\\Entities\\BpmnProcess.php","lin e":108}
      [2024-06-28 11:27:57] DEBUG: Workflow\Actions: Start [sendRequest] with cid [0] for entity [User, 1].
      [2024-06-28 11:27:57] DEBUG: Workflow: Send request: payload:
      [2024-06-28 11:27:57] ERROR: Process 667e9e3d2ffd80bd1 element vsqf2srs8v: Workflow: Send Request action: 0 response.
      [2024-06-28 11:27:57] NOTICE: E_DEPRECATED: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero {"code":8192,"message":"usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero","file":"C:\\wamp\\www\\intra\\custom\\Espo\\ Modules\\Advanced\\Entities\\BpmnProcess.php","lin e":108}
      [2024-06-28 11:27:57] DEBUG: BPM: endProcessWithError, process 667e9e3d2ffd80bd1.
      [2024-06-28 11:27:57] DEBUG: BPM: rejectActiveFlows, process 667e9e3d2ffd80bd1.
      [2024-06-28 11:27:57] INFO: BPM: triggerError
      [2024-06-28 11:27:57] NOTICE: E_DEPRECATED: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero {"code":8192,"message":"usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero","file":"C:\\wamp\\www\\intra\\custom\\Espo\\ Modules\\Advanced\\Entities\\BpmnProcess.php","lin e":108}
      [2024-06-28 11:27:57] DEBUG: BPM: tryToEndProcess, process 667e9e3d2ffd80bd1.
      [2024-06-28 11:27:57] DEBUG: Workflow\Actions: End [startBpmnProcess] with cid [0] for entity [User, 1].
      [2024-06-28 11:27:57] DEBUG: End workflow rule [667e9cf1e4f71b759].​

      Comment

      Working...