How to store and display a process variables in a form?

1
0
-1

Hi Everyone,

I am using Bonita Community 7.2.3. I have some questions and I hope you can help me.

Scenario 1: How to store content of xml/json document to process variables?
Scenario 2: I saved the list values to a process variable by querying the database. How to display process variable which holds List values in a form? Do I have to use Custom REST API Ext? Is there any other way to achieve this as I am using community?

My form should display process variables list and also process variable values obtained from document content.
Please help me by providing some examples to above scenarios. I have tried for almost 2 weeks. Please do the needful.

Thanks,
Varshini

1 answer

1
0
-1

Hi Varshini,

Scenario 1: You can store documents in Bonita. There are not under the same category than process variables, but they do have the same lifecycle. Here is some documentation about it: http://documentation.bonitasoft.com/bonitabpm/?page=documents

Scenario 2: I would say that if you can store this list of values in the BDM, the engine will provide you with REST Api endpoint to retrieve it easily. It it's not an option, then I would say yes, you should look into the custom REST Api.

Cheers

Comments

Submitted by varshini.maddipati on Wed, 07/20/2016 - 15:27

Hi Lio,

Thanks for your reply.
Scenario 1: I want to store document(xml) content into process variables. Is that possible? In the above url you provided doesn't explain how to extract content from a document. Can you please provide me some examples.

Scenario 2: Can you explain how to add list values to BDM with small example.
Thanks for the help.

Thanks,
Varshini

Submitted by varshini.maddipati on Wed, 07/20/2016 - 19:56

Hi Lio,

I want to update on my previous comment. I tried scenario 2 to store my queried list values to BDM. I added my resultset to BDM. I am able to display the bdm values in the form but it creates new entry in the database with same list values. Do you have any idea on how to avoid duplication of record?

Thanks,
Varshini

Submitted by Lionel Palacin on Thu, 07/21/2016 - 20:27

Hi,

For the Scenario 2, you can find an example here: https://github.com/Bonitasoft-Community/aggregated-bdm-example

For the next post, I would suggest to create one post per question, it will make easier to follow the answers :-)

Cheers

Submitted by varshini.maddipati on Tue, 07/26/2016 - 17:42

Hi Lio,

Thanks for the suggestion and I will do that next time. Can you please provide an example on Scenario 1 i.e storing values into process variables extracted from a document.

Thanks,
Varshini

Notifications