
| Current Path : /home/ift/52_procpy/dataninja/docs/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //home/ift/52_procpy/dataninja/docs/old_procpy_userguide.md |
ProcPy - the Python Message Based Modeler
-----------------------------------------
- Easy to use
- Pure Python
- Define your workflows simply by graphics editor
- Overview by graphic representation
- Forecast: how much resources (tie and effort) will have to be used
- Simple interaction model by E-mail
1. What is ProcPy
-----------------
a) ProcPy - the Modeler
=======================
ProcPy is a Modeler --- that means, it is able to describe
Business Processes. This is easy to be done, by drawing a simple
graphics: the Process Image.
[picture 1]
Use a common graphics editor for doing so. In this Tutorial
we use as an example the famous editor yEd. But any other
editor which gives output from graphml/gml can be used.
a) ProcPy - the Forecaster
==========================
ProcPy is a Modeler --- that means, it is able to describe
Business Processes. This is easy to be done, by drawing a simple
graphics: the Process Image.
[picture 1]
Use a common graphics editor for doing so. In this Tutorial
we use as an example the famous editor yEd. But any other
editor which gives output from graphml/gml can be used.
1. Installation
---------------
Install Python 2.7 from www.python.org.
Add C:\Python27 to the path (Systemeinstellungen -\> Umgebungsvariablen)
Copy the files in C:\Python27\Scripts to C:\Python27
Create directory C:\Python27\Lib\procpy
Copy the content of the procpy.zip into C:\Python27\Lib\procpy
Copy the files scripts\o* to C:\Python27
Install JAVA 7
Put yed.jar from www.ift-intern.de/ift-intern-tools/11\_yed/yed.jar onto your Desktop.
2. Create your own Business Process
-----------------------------------
- Use rectangle blocks and arrows between them
- Edit block label by setting variables:
$EFFORT = <number> $TIME = <number>
Also ordinary python code can be used.
- Labeling of the arrows for branch choosig can be used additionally:
a) as an ordinary python condition statement (e.g.: \$TEMP \> 40)
b) as a percentage statement (e.g.: 20 %)
- Be aware that you have one unique block which is no target of any
other block. This block will be the starting block of the Business
Procoess Model
Store that .gml-File in a certain directory.
=============================================================
3. The ProcPy Evaluator
-----------------------
Check your Business Process Model by a forecast --- with the ProcPy
Evaluator:
- Start a console and go to the folder with your .gml-file
- Under Windows: set PYTHONPATH=.
- Start it in the directory where you have the .gml-File of your
process
- Run: oap g <business_process_file>.gml
The <business_process_file>.gml then will be transformed to a
ProcPy-Python module <business_process_file>.py
The ProcPy Evaluator shows a sketch of the Business Process Model.
You can run forecasts and speed up the velocity.
If you change the .gml-file on the fly, the process sketch in the
evaluator will also change on the fly. Hence, you can work with yEd and
ProcPy Evaluator in parallel.
=============================================================
4. Implement the Business Process Model
---------------------------------------
By the use of the ProcPy Evaluator your Business Process Model in
.gml-Format is converted to a ProcPy-Python-Module with the ending .py
(It can be also manually transformed into a Procpy-Python-Module with:
oap y <file>.gml )
Start a Business-Process with:
oap <file> run
Continue it with:
oap <file>.<nr> continue where <nr> is the number of the continued process
Automatic continuation:
oap x