Command 'monitoring'

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (1)

View Page History
{code}

h4. {anchor:petals-se-activiti-process-definition-coutners}Process definition counters

Coutners about process definitions are available through the sub function '{{process-definitions-count}}' of the monitored object '{{petals-se-activiti}}'. It's usage is:
{code}
-n <component-name> [--list-process-definitions] | [--query-process-definitions [NAME] | [ACTIVE|SUSPENDED|ENDED <index>]] | [-t]
{code}
where '{{<component-name>}}' is the unique name of the Petals SE Activiti with which it was deployed.

\\
'{{--list-process-definitions}}' returns the list of all process definitions that are deployed on the Activiti engine in a logical point of view.
{code}
>./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c -- monitoring -o petals-se-activiti -f process-definitions-count -- -n petals-se-activiti --list-process-definitions
vacationProcess
{code}

\\
'{{--query-process-definitions}}' returns query result about process definition:
|| Query argument || Description ||
| {{NAME}} | returns process-definition names by index. It is used to known which process definition is associated to index. The output format is: {{<index>!<process-definition>}}, one operation per line. |
| {{ACTIVE}} | returns the number of *active* process instances per process definition. The process definition is expressed by its index. The output format is: {{<index>!<value>}}, one process definition per line. If an index value is set on the command line, the output is limited to the provided index. |
| {{SUSPENDED}} | returns the number of *suspended* process instances per process definition. The process definition is expressed by its index. The output format is: {{<index>!<value>}}, one process definition per line. If an index value is set on the command line, the output is limited to the provided index. |
| {{ENDED}} | returns the number of *ended* process instances per process definition. The process definition is expressed by its index. The output format is: {{<index>!<value>}}, one process definition per line. If an index value is set on the command line, the output is limited to the provided index. |

{code}
>./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c -- monitoring -o petals-se-activiti -f process-definitions-count -- -n petals-se-activiti --query-process-definitions ENDED
vacationProcess!639
{code}

\\
'{{-t}}' displays a human readable table of all values about process definition coutners:
{code}
> ./petals-cli.sh -h localhost -n 7700 -u petals -p petals -c -- monitoring -o petals-se-activiti -f process-definitions-count -- -n petals-se-activiti -t
| Process definition || State | Active | Suspended | Ended |
------------------------------------------------------------
| vacationRequest || 0 | 0 | 0 | 4 |
{code}

h2. Petals Container