Open tlhosep opened 9 months ago
it doesnt work this way. You need to add it to your composer.local.json and run composer update to get it into composer autoloader
Thanks it-spiderman, I tried but…
ComposerHookHandler::onPreUpdate Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.
Problem 1
Root composer.json requires hallowelt/cognitiveprocessdesigner, it could not be found in any version, there may be a typo in the package name.
Potential causes:
Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems. Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.
/var/lib/mediawiki $ cat composer.local.json { "require": { "mediawiki/semantic-media-wiki": "^4.2.0", "mediawiki/semantic-result-formats": "~4.2", "hallowelt/cognitiveprocessdesigner": "3.0.9" } }
What would be the correct statement to get it running? Why has this not been included in the documentation?
I am trying to save a bmpn diagram using the CognitiveProcessDesigner. The diagram gets saved somehow but at the step where the app tries to save the elements it fails currently: I have added some output to SaveDiagramElementsApi to get it working: First: I needed to add an include:
include(dirname(__FILE__).'/../../vendor/mwstake/mediawiki-component-processmanager/src/ManagedProcess.php');
Otherwise the Class could not be found... Then I have made some debugging in SaveDiagramElementsApi:
I can't reach the last log-entry ("Fetched Processmanager"), and I would expect that the service could not be found.... How has your code to be deployed to get it running?
I also had problems with the background task:
php extensions/CognitiveProcessDesigner/vendor/mwstake/mediawiki-component-processmanager/maintenance/processRunner.php maintenance/Maintenance.php --wait
1) Database had not been updated 2) Some includes had to be inserted in order to find the classes3) getRunnerId faced a problem:
Was wrong, needs being corrected in my eyes:
This all seems mostly related to a bad deployment, as the functionalities seem to be there...
Any help would be appreciated. I am running this mediawiki:
MediaWiki | 1.35.13 PHP | 7.4.33 (apache2handler) MariaDB | 10.5.21-MariaDB-0+deb11u1
NB: Yes, I had run composer install in the root of the processmanager but that did not help I guess :(
Thanks, Thomas