英文:
Camunda and Drupal Integration File Not found
问题
我正在使用Drupal Camunda集成工作。
我已经使用DDEV来设置Drupal。我的系统版本如下:
- Drupal版本10.1.1
- Web服务器Nginx/1.22.1
- PHP版本8.1.16
- 数据库版本10.4.28-MariaDB-1:10.4.28+maria~ubu2004-log。
我使用以下命令添加了Camunda Drupal模块,然后进行了安装。
ddev composer require 'drupal/camunda:^1.0'
完成后,我按照Drupal官方文档的步骤来集成Drupal和Camunda。
逐步进行Drupal Camunda集成的步骤
步骤1:
从Drupal站点导出模板
ddev drush eca:export:templates
步骤2:
文件需要在Camunda中可用。要么转到Camunda程序目录,要么转到Camunda配置目录的根目录。在Linux上,后者可以在~/.config/camunda-modeler中找到。创建一个子目录resources/element-templates,以便您拥有~/.config/camunda-modeler/resources/element-templates。将上面的模板文件复制到该目录中。
mkdir -p ~/.config/camunda-modeler/resources/element-templates
然后将bpmn文件移动到element-templates文件夹中。
步骤3:将您的模型导入Drupal
当我在Drupal中导入模型时,它会出现错误:
>[错误]此文件不存在。
- 我已经按照eca:import文档中提到的绝对路径提供了路径。
- BPMN版本是2.0文件,因为Drupal仅接受BPMN 2.0文件。
- 已经为文件提供了所有权限。
但仍然收到此错误。
>[错误]此文件不存在。
我使用以下命令添加文件。
ddev drush eca:import camunda /home/jadi/my-process.bpmn
我该如何解决这个错误?
英文:
I am working with drupal camunda integration.
I have used DDEV for the setup of Drupal. my system version are:
- Drupal version 10.1.1,
- Web Server Nginx/1.22.1,
- PHP Version 8.1.16
- Database Version 10.4.28-MariaDB-1:10.4.28+maria~ubu2004-log.
I have added camunda drupal module using this command and then installed it.
ddev composer require 'drupal/camunda:^1.0'
Once that is done I have followed the official documentation of drupal of how to integrate drupal and Camunda.
Step Up Drupal Camunda Integration Step by Step
Step1:
Export the templates from your Drupal site
ddev drush eca:export:templates
Step2:
File needs to be made available to Camunda. Either go to the Camunda program directory or to the root of Camunda's config directory. On Linux, the latter can be found in ~/.config/camunda-modeler. Create a subdirectory resources/element-templates so that you have ~/.config/camunda-modeler/resources/element-templates. Copy the template file from above into that directory.
mkdir -p ~/.config/camunda-modeler/resources/element-templates
Then moved the bpmn file in the element-templates folder.
Step3: Import your model into Drupal
When I import the model in drupal it gives error:
>[ERROR] This file does not exist.
- I have provided the absolute path as mentioned in the eca:import documentation.
- BPMN version is a 2.0 file as drupal accepts only BPMN 2.0 files.
- Given all the permissions to the file.
But still got this error.
>[ERROR] This file does not exist.
I used this command to add file.
ddev drush eca:import camunda /home/jadi/my-process.bpmn
How could I solve this Error?
答案1
得分: 1
看起来你遇到的问题是不理解DDEV Web容器内部的文件系统(Drupal和Web服务器运行的地方)与你的主目录不同。你的项目以/var/www/html的形式挂载在容器内,但你的主目录没有挂载进去。我认为如果你将文件/home/jadi/my-process.bpmn
复制到项目中,可能是项目的根目录,然后你可以使用ddev drush eca:import camunda /var/www/html/my-process.bpmn
来导入它。
英文:
It looks like the problem you're having is not understanding that the filesystem inside the DDEV web container (where Drupal and your webserver are operating) is a different filesystem. Your project is mounted in there, as /var/www/html, but your home directory is not. I think if you copy your file /home/jadi/my-process.bpmn
into the project, maybe to the root of your project, then you can import it with ddev drush eca:import camunda /var/www/html/my-process.bpmn
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论