Resmanipulation provides a REST-Service to automatically alter processmodels based on a resources requirements.
A Demo of RDPM is hosted on cpee.org.
To start the demo, clone this repository and run either the file: open_model.py
or open_model.ruby
Add one of the example use cases from the folder "use_cases" as argument.
Drill Example:
- run:
-
python3 open_model.py use_cases/Drill.xml
OR
-
ruby open_model.rb use_cases/Drill.xml
- A new process instance is opened on the cpee.org demo server.
- Choose the Arguments in the section "Properties" to your liking
- go to the tab "Execution"
- click "Start"
- Allocation will be done, Allocated resources are shown under "Resources"->"allocated_to"
Python or Ruby must be installed to run examples
In Python requests
package is required to run open_model.py
- run
pip install -r requirements.txt
to get all dependencies for RDPM orpip install requests
to get requests package.
- Please open a new instance everytime the allocation is done
- Please "abandon" an instance after successfull allocation
- Sometimes a refresh is needed to show the allocation
- pip install -r requirements.txt
- change endpoints "allocation" and "resources" in cpee model
- Add your server config in
server_config
- python3 rest_api.py