How i can analyse Bonita process ?

1
0
-1

Hi;
I create two projects (two processes) with bonita version 9.
Are there any way to analyse these processes ? to compared their execution ?

Comments

Submitted by antoine.mottier on Wed, 10/16/2019 - 10:54

Can you be a little bit more precise about the expected outcome of this analyse? Do you want for example to compare execution duration? Something else?

Also if you can provide a little bit more details about your processes that can be helpful to provide an accurate answer (e.g. did they include human tasks, connectors...).

I guess your are using Bonita 7.9 as version 9 does not exists :-)

Submitted by maouachria on Wed, 10/16/2019 - 11:06

I want to compare how they change the messages to their partners. To detect the incompatibility and prevent what message each partner must have to make the collaboration. For example: customer and supplier. Knowing that these messages have been defined in the data model with a standard format.

Submitted by maouachria on Wed, 10/16/2019 - 11:38

no connector but human tasks, service tasks, scripts, messages exchanged.

Submitted by antoine.mottier on Wed, 10/16/2019 - 17:25

So if I sum up you want to make sure that the processes defined in your project that receive messages only try to access message content that actually exist. Is that right?

Submitted by maouachria on Mon, 04/05/2021 - 19:33
Submitted by maouachria on Wed, 10/16/2019 - 17:52

for this i want to compare thier logs or data base to detecte these mismatchs (if they exist). because they used the same format of message (standard =same name+..... ).
the standard format of message contains information which may be help me to detecte these mismatchs.

Submitted by maouachria on Thu, 10/17/2019 - 11:59

Antoine, in which bonita version we can do it (process analyse )? more information please !!!!

Submitted by maouachria on Wed, 10/16/2019 - 17:51

for this i want to compare thier logs or data base to detecte these mismatchs (if they exist). because they used the same format of message (standard =same name+..... ).
the standard format of message contains information which may be help me to detecte these mismatchs.

1 answer

1
0
-1

If you want to make sure that BPMN messages sent from one process to another are actually consumed (i.e. received and use by the target process) you can monitor the content of MESSAGE_INSTANCE table in Bonita Engine database.

If you want to perform validation before deploying the processes on a server you probably want to do some analysis on process definition. You can use the Java class BusinessArchiveFactory (create using a process bar file) to get the DesignProcessDefinition. You can then use getFlowElementContainer to access information about element in the process and then try for example to look for flow node of type IntermediateThrowEventDefinition to get the information about a throw message event.

Comments

Submitted by maouachria on Wed, 11/20/2019 - 14:30

both are important.
1- Do you mean to use the Bonita BPM Engine APIs to access the MESSAGE_INSTANCE table?
If this is the case, can we do it in the bonita environment ? or we can just do it outside bonita, with eclipse for example?

Submitted by antoine.mottier on Wed, 11/20/2019 - 15:43

As far as I know Bonita Engine does not provide APIs to access waiting messages information. So the only solution I can recommend for now is to directly query the Bonita Engine database (MESSAGE_INSTANCE table). You can do that with any database client tool such as DBeaver.

In order to analyse the process definition you would need to create a small Java standalone application that would use bonita-client library to use BusinessArchiveFactory class to get process design definition information. Note that if process is already deployed you can use processAPI.getDesignProcessDefinition() to retrieve design information instead of using BusinessArchiveFactory.

Submitted by maouachria on Wed, 11/20/2019 - 15:50

i search in bonita repository, but i can 't find MESSAGE_INSTANCE table ?
where I can find this table ?

Submitted by antoine.mottier on Wed, 11/20/2019 - 16:35

If you are using Bonita Studio, the Engine database use for testing is located in BonitaStudioCommunity-7.9.4/workspace/<project directory>/h2_database/bonita_journal.db.

You can connect to it using the following JDBC URL: jdbc:h2:/home/antoine/studio/BonitaStudioCommunity-7.9.4/workspace/my-project/h2_database/bonita_journal.db;AUTO_SERVER=TRUE (this is a path to the file on Linux, it need to be adapt to your installation).

Submitted by maouachria on Wed, 11/20/2019 - 17:47

1- url I have juste this three files:
bonita_journal.db.lock
bonita_journal.db.mv
bonita_journal.db.trace
I have not complete the execution of my process, we can find this file?

2- this is the url modèle:
jdbc:h2:tcp://{host}[:{port}]/{database}

what i can put in :
host
port
database
?

Submitted by maouachria on Wed, 04/07/2021 - 19:19

I found the message instance table, but it does not contain any data, the WAITING_EVENT table contains some messages?
Can I have these instances of messages as well as the other instances of tasks with the community version?

Notifications