https://github.com/cleverage/processuibundle
https://github.com/cleverage/processuibundle
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cleverage/processuibundle
- Owner: cleverage
- Archived: true
- Created: 2022-01-19T13:50:11.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T13:55:42.000Z (over 1 year ago)
- Last Synced: 2025-10-05T08:22:28.799Z (6 months ago)
- Language: PHP
- Size: 292 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
 
## CleverAge/ProcessUIBundle
This bundle is deprecated, use [CleverAge/UiProcessBundle](https://github.com/cleverage/ui-process-bundle) instead
A simple UX for cleverage/processbundle using EasyAdmin
**Installation**
* Import routes
```yaml
#config/routes.yaml
process-ui:
resource: '@CleverAgeProcessUiBundle/Resources/config/routes.yaml'
```
* Run doctrine migration
* Create an user using cleverage:process-ui:user-create console.
Now you can access Process UI via http://your-domain.com/process
**Indexing logs**
You can index logs line into database to perform search on ****Process > History**** page.
See configuration section.
When indexation is enabled you can perform it async.
```yaml
#config/messenger.yaml
framework:
messenger:
transports:
log_index: 'doctrine://default'
routing:
CleverAge\ProcessUiBundle\Message\LogIndexerMessage: log_index
```
Then you have to consume messages by running (use a supervisor to keep consumer alive)
```
bin/console messenger:consume log_index --memory-limit=64M
```
See official symfony/messenger component documentations for more informations https://symfony.com/doc/current/messenger.html
**Integrate CrudController**
Of course you can integrate ProcessUI CRUD into your own easy admin Dashboard
```php
public function configureMenuItems(): iterable
{
/* ... your configuration */
yield MenuItem::linkToCrud('History', null, ProcessExecution::class);
}
```
**Configuration**
```yaml
clever_age_process_ui:
index_logs:
enabled: false
level: ERROR #Minimum log level to index. Allowed values are DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY
```