You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most of the time you will add a definition like the one above and just alter the "extJsClass" + "name".
38
-
The "name" should be unique and the "extJsClass" have to be loaded by your own extension.
40
+
41
+
Just replace "example" with a unique identifier of your callback window.
39
42
40
43
The ExtJs Class should extend the pimcore.plugin.processmanager.executor.callback.abstractCallback and implement a "getFormItems" method which returns the configuration fields.
41
44
Please take a look at the [callback/example.js](../src/Resources/public/js/executor/callback/example.js) file which should give you a good starting point.
Copy file name to clipboardexpand all lines: doc/components.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,6 @@ The bundle consists of 6 main components.
26
26
27
27
| Class| Description |
28
28
| ----- | ----------- |
29
-
| \Elements\Bundle\ProcessManagerBundle\Executor\CliCommand | Executes a custom cli command |
30
29
|\Elements\Bundle\ProcessManagerBundle\Executor\PimcoreCommand | Executes a pimcore command |
31
30
|\Elements\Bundle\ProcessManagerBundle\Executor\ClassMethod | Initializes a Class and calls a method |
32
31
@@ -35,6 +34,8 @@ The bundle consists of 6 main components.
35
34
| Class| Description |
36
35
| ----- | ----------- |
37
36
| \Elements\Bundle\ProcessManagerBundle\Executor\Action\Download| Provide a download after a job has finished |
37
+
| \Elements\Bundle\ProcessManagerBundle\Executor\Action\OpenItem| Adds a button to open an item (object/document/asset) after a job has finished |
38
+
| \Elements\Bundle\ProcessManagerBundle\Executor\Action\JsEvent| Executes a custom JavaScript event after a job has finished |
38
39
39
40
40
41
### Callback Classes
@@ -50,5 +51,6 @@ The bundle consists of 6 main components.
50
51
| \Elements\Bundle\ProcessManagerBundle\Executor\Logger\File | Logs the messages to a file. If no file path is specified, the logs are written to /website/var/log/process-manager/(MonitoringItem-ID).log |
51
52
|\Elements\Bundle\ProcessManagerBundle\Executor\Logger\Console | The messages are logged to the php stdout (for cli execution) |
52
53
|\Elements\Bundle\ProcessManagerBundle\Executor\Logger\Application | The messages are logged to the Application-Logger. The name of the Configuration is used as component name |
54
+
|\Elements\Bundle\ProcessManagerBundle\Executor\Logger\Email | The messages are sent per email to the recipient (one email with all logs)|
53
55
54
56
If "Simple log format" is checked, the Context-Information is omitted (cleaner log messages -> useful for File and Console Logger)
The [default configuration file](../src/Resources/install/plugin-process-manager.php) gets copied to `<Pimcore root folder>/var/config/plugin-process-manager.php`. You can change those settings either directly in the file or by overriding it in a new file called `<Pimcore root folder>/app/config/pimcore/plugin-process-manager.php`.
If you want that the migrations of the ProcessManagerBundle are automatically executed when you do a "composer update elements/process-manager-bundle;", please add
* ExecuteShellCmdCommand executor has been removed
48
48
* ExportToolkit executor has been removed
49
-
* Configuration is now done with .yml files (instead of the plugin-process-manager.php)
50
-
Please change the settings manually
49
+
***Configuration is now done with .yml files (instead of the plugin-process-manager.php)
50
+
Please change the settings manually**
51
51
* Executor classes / actions / loggers are now defined as services
52
-
53
-
54
-
## Migration from Pimcore 4 to Pimcore 5
55
-
56
-
* Create a backup of the following tables:
57
-
- plugin_process_manager_callback_setting
58
-
- plugin_process_manager_configuration
59
-
- plugin_process_manager_monitoring_item
60
-
* Update to Pimcore 5 first
61
-
* Install the bundle
62
-
* The location of the plugin configuration file has changed.
63
-
If you can't find it at var/config/plugin-process-manager.php then copy your existing version to that directory or place the config file in /app/config/pimcore/plugin-process-manager.php
64
-
65
-
* The location of file log files has changed. If you want to rescue them copy them from
66
-
/website/var/log/process-manager to /var/logs/process-manager
67
-
68
-
* The tmp directory has changed. It is now located at /var/tmp
69
-
Please note that you may have to adapt your configurations.
70
-
71
-
* The last step is to migrate the process mananager tables stored in the database.
72
-
Execute the "process-manager:migrate" console command. If you need additional mappings just adapt the Migrator class to your needs.
Copy file name to clipboardexpand all lines: doc/restApi.md
+3-18
Original file line number
Diff line number
Diff line change
@@ -2,25 +2,10 @@
2
2
3
3
The Process Manager also provides a rest service to start jobs...
4
4
If you want to use the Rest Service you have to define the Pimcore users which should be allowed to execute/list... jobs in the "plugin-process-manager.php" config file.
5
-
Therefore add an array "restApiUsers" to the config as shown in the example below
6
-
```php
7
-
return [
8
-
"general" => [
9
-
"archive_treshold_logs" => 7,
10
-
"executeWithMaintenance" => false,
11
-
"processTimeoutMinutes" => 30
12
-
],
13
-
"restApiUsers" => [
14
-
[
15
-
"username" => "ckogler",
16
-
'apiKey' => "secret"
17
-
]
18
-
],
19
-
20
-
...
21
-
]
5
+
Therefore add an array "restApiUsers" to the config.
6
+
A example is shown [here](./configuration.md)
7
+
22
8
23
-
```
24
9
You have to pass the "username" and "apiKey" parameter on each request.
Copy file name to clipboardexpand all lines: doc/usageParallelization.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
The Processmanager allows you to execute multiple child processes. Before you use the multiprocessing option please make sure
4
4
that you have read the [Basic usage guide](/doc/usage.md).
5
5
6
-
To get started please take a look at the [Sample Command](/doc/sample/src/AppBundle/Command/MultiprocessingSampleCommand.php) which shows how to use the feature.
6
+
To get started please take a look at the [Sample Command](sample/src/App/Command/MultiprocessingSampleCommand.php) which shows how to use the feature.
7
7
8
8
When a child process is executed the parameter "--monitoring-item-parent-id" is passed so you have to support this parameter in your command.
9
9
Depending on the paremeter you can execute different methods... it's up to you.
0 commit comments